note 105297 added to oci8.installation
| From: | P dot D dot Mallinson at liv dot ac dot uk | Date: | Mon, 08 Aug 2011 13:03:24 +0000 |
| Subject: | note 105297 added to oci8.installation | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-182314@lists.php.net to get a copy of this message | ||
Platform: Solaris 10, Apache 2.2, Oracle 11 client
It is well known that the Oracle Instant Client 11g libraries conflict with the OpenLDAP ones.
If features of the 11g client libraries are vital (e.g. needing SQLNET timeouts to work and/or
needing to get Oracle service names from directory servers via LDAP - both required in my
organisation) then in order to achieve a working oci8 and OpenLDAP setup it is necessary to preload
the instant client library in the Apache startup script - e.g.:
# Setup for Oracle 11 instant client
ORACLE_HOME=/usr/local/oracle/instantclient_11_2
export ORACLE_HOME
#
LD_LIBRARY_PATH=/usr/local/oracle/instantclient_11_2:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH
#
LD_PRELOAD=/usr/local/oracle/instantclient_11_2/libclntsh.so.11.1
export LD_PRELOAD
----
Server IP: 69.147.83.197
Probable Submitter: 138.253.65.12
----
Manual Page -- http://www.php.net/manual/en/oci8.installation.php
Edit -- https://master.php.net/note/edit/105297
Del: integrated -- https://master.php.net/note/delete/105297/integrated
Del: useless -- https://master.php.net/note/delete/105297/useless
Del: bad code -- https://master.php.net/note/delete/105297/bad+code
Del: spam -- https://master.php.net/note/delete/105297/spam
Del: non-english -- https://master.php.net/note/delete/105297/non-english
Del: in docs -- https://master.php.net/note/delete/105297/in+docs
Del: other reasons-- https://master.php.net/note/delete/105297
Reject -- https://master.php.net/note/reject/105297
Search -- https://master.php.net/manage/user-notes.php