note 87174 modified in function.oci-connect by sixd

From: Date: Wed, 09 Dec 2009 23:52:45 +0000
Subject: note 87174 modified in function.oci-connect by sixd
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-163797@lists.php.net to get a copy of this message
Hi, I use Oracle Database 10g Express Edition Release 10.2.0.1.0 on a Linux workstation for dev purposes, along with Apache 2 and PHP5. So far I have used it on Kubuntu 8.04. To get things working on a recently installed notebook with openSUSE 11.0 was a bit more complicated. So I hope someone will be able to benefit from our experiences. Here is our howto: # Use the package manager to install the packages php5-pear and php5-dev, if not installed yet. # Download the instantclient_11_1, zip files basic, sdk, sqlplus from the Oracle web site # Switch to user root here, since not all commands to some work sudo # Unzip these files to /opt/oracle/. # As a result you will see a dir instantclient_11_1 appearing. ln -s /opt/oracle/instantclient_11_1/libclntsh.so.11.1 \ /opt/oracle/instantclient_11_1/libclntsh.so ln -s /opt/oracle/instantclient_11_1/libclntsh.so.11.1 \ /usr/lib/libclntsh.so ln -s /opt/oracle/instantclient_11_1/libnnz11.so \ /usr/lib/libnnz11.so ldconfig # to make sure the system will be able to find the libs pecl install oci8 # interactively enter option 1, # then instantclient,/opt/oracle/instantclient_11_1, # then enter # if needed, add extension=oci8.so to your php.ini /etc/init.d/apache2 reload # finished! Kind regards, Nico den Boer --was-- Hi, I use Oracle Database 10g Express Edition Release 10.2.0.1.0 on a Linux workstation for dev purposes, along with Apache 2 and PHP5. So far I have used it on Kubuntu 8.04. To get things working on a recently installed notebook with openSUSE 11.0 was a bit more complicated. So I hope someone will be able to benefit from our experiences. Here is our howto: # Use the package manager to install the packages php5-pear and php5-dev, if not installed yet. # Download the instantclient_11_1, zip files basic, sdk, sqlplus from the Oracle web site # Switch to user root here, since not all commands to some work sudo # Unzip these files to /opt/oracle/. # As a result you will see a dir instantclient_11_1 appearing. ln -s /opt/oracle/instantclient_11_1/libclntsh.so.11.1 \ /opt/oracle/instantclient_11_1/libclntsh.so ln -s /opt/oracle/instantclient_11_1/libclntsh.so.11.1 \ /usr/lib/libclntsh.so ln -s /opt/oracle/instantclient_11_1/libnnz11.so \ /usr/lib/libnnz11.so ldconfig # to make sure the system will be able to find the libs pecl install oci8 # interactively enter option 1, # then instantclient,/opt/oracle/instantclient_11_1, # then enter # if needed, add extension=oci8.so to your php.ini /etc/init.d/apache2 reload # finished! Kind regards, Nico den Boer http://php.net/manual/en/function.oci-connect.php

« previous php.notes (#163797) next »