Oracle DB

From DreamFactory
Jump to: navigation, search

The 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 -d /opt/
  4. Enable oci8 in php.ini
    • $ sudo nano /opt/bitnami/php/etc/php.ini
    • Locate the line that says ;
    • Uncomment this line by removing the semicolon (;)
    • Save and exit the file
  5. Configure the instant client path for the Bitnami stack
    • $ sudo nano /opt/bitnami/scripts/
    • At the end of the file, just before the last line (which says . /opt/bitnami/scripts/ 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/ restart