|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-08-26 15:00 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Mon Feb 09 16:00:01 2026 UTC |
Description: ------------ I am trying to get Oracle 10g to work with php5 on win2kas running IIS5. I have successfully installed all components and tested each. I have also installed oracle client, tested sqlplus and 3rd party products and ora-connect and ODBC are all working. I have set environment variables ORACLE_HOME, ORACLE_SID, ORACLE_BASE and TNS_ADMIN, and verified (printed) these from within a php program. The php_oci8.dll loaded successfully. The tnsnames.ora, sqlnet.ora and listener.ora are all configured and contain the correct SID and naming. I have tried to connect (see below) using both TNSNAMES and EZCONNECT methods, neither work. I have read and read and read on how to set this up, and all looks fine on my end - but no connect. Reproduce code: --------------- $db_connoci = ocilogon("username", "password", $db_db); where $db_db = ORACLE_SID (which has been verified correctly). also tried with $db_db = "\\hostname\Oracle_SID" (for EZCONNECT) Expected result: ---------------- Connection to Oracle Actual result: -------------- ORA-12154