|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #8673 ora-01034 when accessing remote SID
Submitted: 2001-01-12 07:28 UTC Modified: 2001-02-18 06:34 UTC
From: christoph dot hofstetter at bit dot admin dot ch Assigned:
Status: Closed Package: OCI8 related
PHP Version: 4.0.4 OS: aix433
Private report: No CVE-ID: None
 [2001-01-12 07:28 UTC] christoph dot hofstetter at bit dot admin dot ch
I get an ora-01034 trying to connect to a remote oracle database. everything works fine for local databases. I can access the remote database with sqlplus, but not with php.

configure line:

./configure --with-oracle=$ORACLE_HOME   \
--with-oci8                                             \
--enable-discard-path                                   \
--without-mysql                                         \

code from the script:

PutEnv "ORACLE_HOME=$ORACLE_HOME");                        
PutEnv "ORACLE_SID=$ORACLE_SID");                                       
$connection = OCILogon "scott","tiger");                               
if ($connection == false){                                              
  echo OCIError($connection;   exit;                                                                 


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-01-14 17:27 UTC]
User update:
I found a workaround for the ora-01034 problem: I specify the SID as the third argument to
Now I get ora-01005 (no password given). 

this only happens when accessing a remote db!

Please, only one report per bug.

 [2001-01-30 04:49 UTC]

 [2001-02-18 06:34 UTC]
please set all oracle-specific env-vars before you start 

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 23 09:01:32 2024 UTC