Link to home
Start Free TrialLog in
Avatar of harwantgrewal
harwantgrewalFlag for Australia

asked on

PHP oracle

Hi
I am using PHP and Oracle 8i on win2000Server I set up oracle fine. Everything is running in SQLplus and even in the coldfusion using the ODBC connection. But when I use the oci8.dll and oracle.dll and odbc function it gives me error like


Warning: Oracle: Connection Failed: ORA-12638: Credential retrieval failed in c:\inetpub\wwwroot\php\oracle.php on line 3

I had already set the env variables ORACLE_HOME< ORECLE_SID etc.

Please Help me

harry
Avatar of kimcheng
kimcheng

maybe you should try  oci function in php instead of ODBC.
Avatar of harwantgrewal

ASKER

But when I use the oci8.dll and oracle.dll and
odbc function it gives me error like


I think this line indicates that I use both of the functions.

Harry
odbc and oci8 are different sets of functions.
anyway, can you post your code for connect oracle then?
<?php
$db="harry.deepblue";
$user="system";
$pass="manager";
OCIlogon($user,$pass,$db);

?>


Harry
ASKER CERTIFIED SOLUTION
Avatar of kimcheng
kimcheng

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Got myself anyway thanks !

Harry