php - PDO OCI: Success with Info exception -
using php 5.5.9 pdo_oci, oracle 12.1. i'm getting oci_success_with_info message password expire soon. however, since thrown exception pdo, connection not being established. how can ignore exception when warning or informational message?
here error message:
database connection failed: sqlstate[hy000]: ocisessionbegin: oci_success_with_info: ora-28002: password expire within 41 days
followed by:
fatal error: call member function setattribute() on non-object in /htdocs/ciatools_dev/promise/classes/promisevars.php on line 257
and code produces it:
try { $this->dbconn = new pdo("oci:dbname=$dbwc",'username', 'password'); } catch (pdoexception $e) { echo 'database connection failed: ' . $e->getmessage(); } $this->dbconn->setattribute(pdo::attr_errmode, pdo::errmode_exception);
if test system try changing password of user see if resolves error message. this thread has more details
alter user <your user> identified password;
you alter profile of user not expire acceptable on development security issue on production.
--get the profile select profile dba_users username = <'your user'>; --change profile alter profile <this user's profile> limit password_life_time unlimited;
Comments
Post a Comment