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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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-2022 The PHP Group
All rights reserved.
Last updated: Sat Sep 24 23:05:52 2022 UTC