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(); } } ?> Link to comment https://forums.phpfreaks.com/topic/94212-solved-ocilogon-failing-at-one-of-my-sites/ Share on other sites More sharing options...
stockton Posted March 6, 2008 Author Share Posted March 6, 2008 Bounce Apache. Link to comment https://forums.phpfreaks.com/topic/94212-solved-ocilogon-failing-at-one-of-my-sites/#findComment-484763 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. Link to comment https://forums.phpfreaks.com/topic/94212-solved-ocilogon-failing-at-one-of-my-sites/#findComment-484772 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.