Oracle

Apache 2.4 + PHP 5.4 + PDO_OCI on Ubuntu 12.04 HOWTO

This simple HOWTO will guide you about how to setup Apache2.4 + PHP5.4 + PDO_OCI from sketch. Compile all package from tarball can give you the maximum flexibility of functionality, e.g. you can enable both mysql/mysqli/pgsql/oci8/pdo_mysql/pdo_pgsql/pdo_oci within single installation.

Before start, I will assume you have Ubuntu 12.04 and Oracle 11gR2 installed correctly, which will not detail within this document. If you really need some help for that, please refer to my other article for more indeed guideline.

Oracle Database 11g Release 2 on Ubuntu 12.04 HOWTO

This HOWTO will guide you though installation of Oracle Database 11g Release 2 on Ubuntu 12.04.

Before start I will assume you have a clean Ubuntu Server 12.04 installed with minimal packages requirement. It is strongly recommend to install on a new host, as it will modify a lot of default settings ;-)

Oracle Database 11g Release 2 + Apache 2.2 + PHP5.3 on Debian Squeeze HOWTO (Part 3)

This simple HOWTO will guide you about how to setup Apache2.2 + PHP5.3 + OCI8/PDO_OCI from sketch. Compile all package from tarball can give you the maximum flexibility of functionality, e.g. you can enable both mysql/mysqli/pgsql/oci8/pdo_mysql/pdo_pgsql/pdo_oci within single installation.

Before start, I will assume you have Debian Squeeze and Oracle 11gR2 installed correctly, which will not detail within this document. If you really need some help for that, please refer to my other article for more indeed guideline.

Oracle Database 11g Release 2 + Apache 2.2 + PHP5.3 on Debian Squeeze HOWTO (Part 2)

This HOWTO will guide you though installing Oracle Database 11g Release 2 + Apache2.2 + PHP5.3 on Debian Squeeze.

But why we need this HOWTO? Since Oracle only officially support Red Hat Enterprise Linux, SUSE Enterprise Linux and other enterprise level Linux distribution; BTW, there shouldn't be any problem if you hope to use with other distribution, which just need some special configuration and install required dependent packages.

Before start you will need to prepare your Debian with:

  • A complete Debian Squeeze installation with X11.
  • Static public IP address (or you may bind to localhost during installation).
  • Functional hostname, e.g. hardcode it within /etc/hostname and /etc/hosts.

In case of Debian Squeeze you don't need to install too much package by default, but I would like to recommand at least install "SSH server" and "Standard system utilities" during installation, after reboot install a very basic X11 + Gnome as below:

apt-get install gnome-core xorg iceweasel

Then test your X11 with startx ;-)

Oracle Database 11g Release 2 + Apache 2.2 + PHP5.3 on Debian Squeeze HOWTO (Part 1)

This HOWTO will guide you though installing Oracle Database 11g Release 2 + Apache2.2 + PHP5.3 on Debian Squeeze.

In this part 1, we will first install a Debian Squeeze with minimal package requirement. Well, so if you are expert or Debian, please simply skip this part ;-)

Here I will demonstrate the installation based on a KVM client, build by virt-manager, AMD64 CPU architecture, 2GB Ram. This shouldn't be the key point for installation, but just note as your reference.

After this section we will have a Debian Squeeze with:

  • Minimal installation
  • A functional X11 for Oracle installation
  • Static public IP address (or you may bind to localhost during installation).
  • Functional hostname, e.g. hardcode it within /etc/hostname and /etc/hosts.

Drupal reserved word conflict with Oracle

accesslog.pathaccesslog.pathansi
accesslog.timestampaccesslog.timestampansi
accesslog.uidaccesslog.user_idoci
actions.typeactions.typewell-know
aggregator_item.timestampaggregator_item.timestampansi
authmap.moduleauthmap.moduleansi
authmap.uidauthmap.user_idoci
batch.timestampbatch.timestampansi

Drupal 7.x Oracle driver development quick checklist

This is a quick checklist for develop Drupal 7.x Oracle driver. They need to be solved before Oracle slip into Drupal core.

Reserved word conflict (integrate with siren)

dev note: update text fields as nullable and no default

Prepare schema:
  1. Check target fields (http://edin.no-ip.com/node/166). a. No default + NOT NULL => can't accept NULL so valid value only (1 status only) b. Default with '' => remove
  2. Update schema with "NOT NULL => FALSE, (remove default)".
  3. Running update.php. Ensure schema is valid.
  4. Run related simpletest.
Once schema ready for expert install:
  1. ORACLE_NULL => NULL
  2. Before insert: check '' => NULL (!?)
  3. Before normal variable binding: '' => NULL

Oracle basic test (Part 1)

Create testing table "test" as Drupal 7.x, with auto increment sequence + trigger (http://www.databaseanswers.org/sql_scripts/ora_sequence.htm):

CREATE TABLE "test" (
  "id" INT NOT NULL CHECK ("id" >= 0),
  "name" VARCHAR2(255) DEFAULT '' NOT NULL,
  "age" INT DEFAULT 0 NOT NULL CHECK ("age" >= 0),
  "job" VARCHAR2(255) DEFAULT 'Undefined' NOT NULL
);

CREATE SEQUENCE "test_id_seq" MINVALUE 1 INCREMENT BY 1 START WITH 1 NOCACHE NOORDER NOCYCLE;

CREATE OR REPLACE TRIGGER "test_id_tgr"

Drupal 6.x + PDO_OCI: finally work together

After put down my multiple database backend research for Drupal among past 4 months, now finally get Drupal 6.x and PDO_OCI working together... It is all about my incorrect pdo_oci driver implementation... The progress is now available in here.

What is the bottleneck?

Pages

Subscribe to RSS - Oracle