Install Oracle Client on Ubuntu (PHP)

Download Instant Client on:
http://www.oracle.com/technetwork/database/features/instant-client/index-097480.html
- oracle-instantclient11.2-basic-11.2.0.3.0-1.i386.rpm
- oracle-instantclient11.2-devel-11.2.0.3.0-1.i386.rpm

Install alien to convert to rmp to deb package:

sudo apt-get install alien

Convert Packages:

sudo alien oracle-instantclient11.2-basic-11.2.0.3.0-1.i386.rpm
sudo alien oracle-instantclient11.2-devel-11.2.0.3.0-1.i386.rpm

Install client:

sudo dpkg -i oracle*.deb

Install Lib for PHP:

sudo pecl install oci8
sudo apt-get install libaio1

Refs:
https://help.ubuntu.com/community/Oracle%20Instant%20Client
http://vinteum.com/instalando-oci8-e-oracle-instant-client-no-ubuntu/
http://www.oracle.com/technetwork/topics/linuxsoft-082809.html

Add ” extension=oci8.so” to your php.ini

Leave a Comment

NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>