OCILogon failing at one of my sites. [message #304496] |
Wed, 05 March 2008 07:17 |
stockton
Messages: 10 Registered: July 2005 Location: South Africa
|
Junior Member |
|
|
I have a program that has worked for quite some time using the following code to connect to 10g. Now suddenly at one of my sites it is failing with ORA-24327 need explicit attach before authenticating a user. Please tell me where I have gone wrong.
<?php
function SGMDBConnect()
{
// Connect to database...
global $SGMDBUsername, $SGMDBPassword, $SGMDBName, $conn;
$conn=OCILogon($SGMDBUsername, $SGMDBPassword, $SGMDBName);
if ( ! $conn )
{
$e = oci_error(); // For oci_connect errors pass no handle
echo htmlentities($e['message']);
trigger_error('Unable to OCILogon to database', E_USER_ERROR);
die();
}
}
?>
[Updated on: Wed, 05 March 2008 07:17] Report message to a moderator
|
|
|
|
|
|
|
|