On Mon, Dec 09, 2002 at 03:43:57PM +0800, [EMAIL PROTECTED] wrote:
> While trying to connect to an Oracle db (8.1.7.2) I get the following
> message:
> DBI->connect(aojprd) failed: ORA-28011: the account will expire soon; change
> your password now (DBD SUCCESS_WITH_INFO: OCISessionBegin)
>
> How can I ignore the error and still connect? (I'm trying to change my
> password!)
Currently you can't. But you could try making this change to the DBD::Oracle
code:
OCISessionBegin_log_stat( imp_dbh->svchp, imp_dbh->errhp, imp_dbh->authp,
cred_type, sess_mode_type, status);
}
+ if (status == OCI_SUCCESS_WITH_INFO) {
+ /* eg ORA-28011: the account will expire soon; change your password now */
+ /* XXX trigger HandleEvent here in future */
+ status = OCI_SUCCESS;
+ }
if (status != OCI_SUCCESS) {
oci_error(dbh, imp_dbh->errhp, status, "OCISessionBegin");
Tim.