Justtechjobs.com Find a programming school near you






Online Campus Both


php-db | 2001062

[PHP-DB] problems connecting to remote oracle database From: phil <email protected>
Date: 06/30/01

Hi folks,

I'm having difficulties getting php4 to connect to a remote oracle
database.

I have an entry in tnsnames.ora, along the lines of

shorthostname = (etc, etc)

and I can use "sqlplus user/name <email protected>" to connect just fine, as
a regular user. Even without ORACLE_SID set, since I have it set in
tnsnames.ora for that entry

But when I try
 ocilogin("user","name","shorthostname");

on a php page, I get a printout of oracle error 01017: authentication
failed.
The listener log on that oracle machine confirms that I am actually
attempting to connect. But no details on what's going wrong.

Any suggestions?

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-db-unsubscribe <email protected>
For additional commands, e-mail: php-db-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>