Installing OCI8 on the CentOS

Download the RPM instant client package from oracle website. Since it is Linux environment, use the this oracle linkInstall the RPMs as the root user rpm –ivh  oracle-instantclient12.1-basic-12.1.0.2.0-1.x86_64.rpm rpm –ivh  oracle-instantclient12.1-devel-12.1.0.2.0-1.x86_64.rpm rpm –ivh oracle-instantclient12.1-sqlplus-12.1.0.2.0-1.x86_64.rpm Install some prerequisite yum install php-pear yum install php-devel Set environment variables ORACLE_HOME and LD_LIBRARY_PATH# ORACLE_HOME=/usr/lib/oracle/12.1/client64; export ORACLE_HOME # LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATHYou should also add the […]