Oracle DB

From DreamFactory
Jump to: navigation, search
(Created page with "The oci8.so driver for Oracle is already included with your DreamFactory Bitnami stack. However, you will need to download and configure the Oracle Instant Client for this dri...")
 
(No difference)

Latest revision as of 15:42, 7 November 2016

The oci8.so driver for Oracle is already included with your DreamFactory Bitnami stack. However, you will need to download and configure the Oracle Instant Client for this driver to function properly.

  1. Download the Instant Client package
    • You can download the package from this link.
    • Be sure to get the 11.2 Basic file for Linux x86_64.
  2. Copy the instant client to your home directory (~) on your DreamFactory server
  3. Unzip the instant client package to /opt/
    • $ cd ~
    • $ sudo unzip instantclient-basic-linux.x64-11.2.0.4.0.zip -d /opt/
  4. Enable oci8 in php.ini
    • $ sudo nano /opt/bitnami/php/etc/php.ini
    • Locate the line that says ;extension=oci8.so
    • Uncomment this line by removing the semicolon (;) extension=oci8.so
    • Save and exit the file
  5. Configure the instant client path for the Bitnami stack
    • $ sudo nano /opt/bitnami/scripts/setenv.sh
    • At the end of the file, just before the last line (which says . /opt/bitnami/scripts/build-setenv.sh) add the following 2 lines:
      • LD_LIBRARY_PATH=/opt/instantclient_11_2:$LD_LIBRARY_PATH
      • export LD_LIBRARY_PATH
    • Save the file and exit
  6. Restart the bitnami stack
    • $ sudo /opt/bitnami/ctlscript.sh restart