OCISessionBegin: ORA-01017: invalid user

admin

Administrator
Staff member
Hi ,

I am able to connect to oracle and successfully retrieve the values.

I want to trap error . I am using OCI functions.

Suppose if the supplied parameters to connection string is wrong i want to get oracle error message as follows

OCISessionBegin: ORA-01017: invalid user

My code goes like this

$db = "tww";
$conn = OCILogon('system', 'manger', $db);
if ($conn == false){
echo OCIError();
exit;
} else {
echo "logged on succefully";

}

Mine is PHP 4 ON windows 2000 professional

thank you,
 
Back
Top