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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
45 + 30 = ?
Subscribe to this entry?

 
 [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: Thu Dec 08 06:05:52 2022 UTC