php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7811 connection failure
Submitted: 2000-11-14 10:19 UTC Modified: 2001-02-18 06:19 UTC
From: ti dot gmastrantonio at nbn dot it Assigned:
Status: Closed Package: OCI8 related
PHP Version: 4.0.3pl1 OS: WIN NT 4.0
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: ti dot gmastrantonio at nbn dot it
New email:
PHP Version: OS:

 

 [2000-11-14 10:19 UTC] ti dot gmastrantonio at nbn dot it
Trying to connect to ORACLE 8 (oracle client 8.1.5.0.0) Data Base I always obtain
this error:
Warning:  _oci_open_server: ORA-12154: TNS:could not resolve service name.

Using php3 no problem arise.

Here is the code:

$user          =   "user";
$password  =   "password";
$dbName    =   "oracle instance";
$conn = OCIPlogon ($user, $password, $dbName);

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-02-18 06:19 UTC] thies@php.net
setup problem: once you get sqlplus user/password@instance 
working as the user that runs apache - php will work as 
well.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 27 10:01:28 2024 UTC