Skip to content

Instantly share code, notes, and snippets.

@kurtisdunn
Last active September 22, 2024 09:42
Show Gist options
  • Save kurtisdunn/319885d58c56da947596 to your computer and use it in GitHub Desktop.
Save kurtisdunn/319885d58c56da947596 to your computer and use it in GitHub Desktop.
Oracle Client Install for DB Layer

###Oracle client install for NodeJS, JAVA, PHP, etc.

Download and install Oracle Instant Client from here:

http://www.oracle.com/technetwork/database/features/instant-client/index-097480.html

Instant Client Package - Basic or Basic Lite: All files required to run OCI, OCCI, and JDBC-OCI applications Instant Client Package - SDK: Additional header files and an example makefile for developing Oracle applications with Instant Client

  • Once installed set the following environment variables
export OCI_HOME=<directory of Oracle instant client>
export OCI_LIB_DIR=$OCI_HOME
export OCI_INCLUDE_DIR=$OCI_HOME/sdk/include
export OCI_VERSION=<the instant client major version number> # Optional. Default is 11.
export NLS_LANG=AMERICAN_AMERICA.UTF8
  • Create the following symbolic links
cd $OCI_LIB_DIR
ln -s libclntsh.so.11.1 libclntsh.so
ln -s libocci.so.11.1 libocci.so
  • The libaio library is required on RedHat/CentOS:
sudo yum install libaio
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment