php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #3946 Cannot connect to Oracle 7.3 via ODBC
Submitted: 2000-03-28 11:27 UTC Modified: 2000-03-29 02:24 UTC
From: p dot g dot mckay at salford dot ac dot uk Assigned:
Status: Closed Package: ODBC related
PHP Version: 4.0 Beta 4 Patch Level 1 OS: Windows 98
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: p dot g dot mckay at salford dot ac dot uk
New email:
PHP Version: OS:

 

 [2000-03-28 11:27 UTC] p dot g dot mckay at salford dot ac dot uk
I am running a Xitami Webserrver on my Windows 98 machine.
I connect via ODBC to an ORacle 7.3 server running on Windows NT.

After installing php 4 Release Candidate 1 (to  take advantage of sessions). And with no change to the php code,

the following error is produced on doing an odbc_connect:

Warning: SQL error: [Oracle][ODBC Oracle Driver][Oracle OCI]ORA-12154: TNS:could not resolve service name., SQL state S1000 in SQLConnect in C:/XITAMI/webpages/query.php on line 11

Warning: SQL error: , SQL state 00000 in SQLConnect in C:/XITAMI/webpages/query.php on line 11


I have reverted to using php3, and wait with eager anticipation for a final version of php 4.

Hope this helps out.



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-03-29 02:24 UTC] kara at cvs dot php dot net
Please check that the "usual" Oracle environment 
(ORACLE_HOME, ORACLE_SID, ...) is available to PHP and that
you have set up your TNS file correctly. 
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Thu Jun 18 06:00:02 2026 UTC