If you are using Oracle database and you want to connect, in here you can find how to install module php-oci8. In this how to you can use Oracle’s Instant Client and php oci8 module from pear.
Download the Linux Basic and the SDK packages from here. At the time of this writing, filename are instantclient-basic-linux-11.2.0.3.0.zip (58,502,865 bytes) (cksum – 2164488682) and instantclient-sdk-linux-11.2.0.3.0.zip (639,306 bytes) (cksum – 3741058433)
PHP-oci8 you can download here. At the time of this writing, filename are oci8-1.4.6.tgz (163.3kB)
Unzip all file to /opt/oracle or anything path you want.
mkdir /opt/oracle
unzip instantclient-basic-linux-11.2.0.3.0.zip /opt/oracle
unzip instantclient-sdk-linux-11.2.0.3.0.zip /opt/oracle
rename instantclient_11_2 to instantclient for easy way when compile php, and create symlink
cd /opt/oracle
mv instantclient_11_2 instantclient
cd instantclient
ln -s libclntsh.so.11.1 libclntsh.so
ln -s libocci.so.11.1 libocci.so
Now we configure php pear and make sure you have php-pear and php-devel packages if you using RPM or .dep
tar zxvf oci8-1.4.6.tgz
cd oci8-1.4.6
phpize
./configure –with-oci8=share,instantclient,/opt/oracle/instantclient/
make
make install
now you can add on your php.ini
extension=oci8.so
Check your phpinfo hope you can find oci8
enjoy..
Kutu kupret katanya om, yang punya hajat pusing tujuh turunan
tapi teteb lah.. dewa oracle di grup kan Pak Isa :)…