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 this is not your bug, you can add a comment by following this link.
If this is your bug, but 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

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 01 21:05:53 2022 UTC