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- rpm –ivh  oracle-instantclient12.1-devel- rpm –ivh oracle-instantclient12.1-sqlplus- 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 […]