stockton Posted March 4, 2008 Share Posted March 4, 2008 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(); } } ?> Quote Link to comment Share on other sites More sharing options...
stockton Posted March 6, 2008 Author Share Posted March 6, 2008 Bounce Apache. Quote Link to comment Share on other sites More sharing options...
stockton Posted March 6, 2008 Author Share Posted March 6, 2008 and I have forgotten how to mark a thread solved. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.