note 109022 added to function.oci-pconnect
| From: | gotankersley at NOSPAM dot com | Date: | Wed, 13 Jun 2012 14:29:30 +0000 |
| Subject: | note 109022 added to function.oci-pconnect | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-188555@lists.php.net to get a copy of this message | ||
Installed on CentOS 6.2, and had lots of trouble getting it to recognize tnsnames.ora. The fix for
me was:
1. Make sure apache is getting the TNS_ADMIN env variable by putting it in the /etc/init.d/httpd
file:
TNS_ADMIN=/usr/lib/oracle/11.2/client64/network/admin
export PATH TNS_ADMIN
This can be debugging in PHP by <?php echo system('env'); ?> and by verifying that
TNS_ADMIN is there.
2. Make sure to use the name at the beginning of the tnsnames.ora file - not the SID (although
ideally they should match. However, if the name at the beginning is XXXX.world then pconnect will
expect this - not the SID)
----
Server IP: 69.147.83.197
Probable Submitter: 192.133.129.4
----
Manual Page -- http://www.php.net/manual/en/function.oci-pconnect.php
Edit -- https://master.php.net/note/edit/109022
Del: integrated -- https://master.php.net/note/delete/109022/integrated
Del: useless -- https://master.php.net/note/delete/109022/useless
Del: bad code -- https://master.php.net/note/delete/109022/bad+code
Del: spam -- https://master.php.net/note/delete/109022/spam
Del: non-english -- https://master.php.net/note/delete/109022/non-english
Del: in docs -- https://master.php.net/note/delete/109022/in+docs
Del: other reasons-- https://master.php.net/note/delete/109022
Reject -- https://master.php.net/note/reject/109022
Search -- https://master.php.net/manage/user-notes.php