Jump to content

[SOLVED] OCILogon failing at one of my sites.


Recommended Posts

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();
         }
     }
?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.