首页 > 技术文章 > [ORACLE]ORA-28002 The password will expire within 7 days.将不能登录系统

eason-liu 2017-12-17 22:02 原文

错误“ORA-28002 The password will expire within 7 days.  Cannot logon to the database“当在进程调度器上运行AE程序可能遇到这个错误,很多时候这个错误并不仅仅在进程调度器中出现,还有可能会在使用plsql developer或sqlplus访问数据库时候。

遇到这样的错误是因为ConnectID账户或SYSADM账户在DBA_USERS表中已经过期,在11g以前版本这个问题从没出现过,因为账户设置的永不过期,在11g以后的版本,他们被hardcoded为有效期189天。

如何解决“ORA-28002 The password will expire within 7 days. Cannot logon to the database”

按照以下步骤解决问题:

1、使用system账号登录数据库(不是sysadm)

2、

SQL> select account_status, profile from dba_users where username=’the PeopleSoft ConnectID’;
SQL> select account_status, profile from dba_users where username=’sysadm’;

3、用以下语句修改。

SQL>ALTER PROFILE <Profile value from step 2> LIMIT PASSWORD_LIFE_TIME UNLIMITED;

4、使用sqlplus登录到数据库并使用以下命令改密码。

SQL>ALTER USER <PeopleSoft ConnectID> IDENTIFIED BY <current ConnectID password>;
SQL>ALTER USER SYSADM IDENTIFIED BY <current SYSADM password>;

如果感到对您有帮助没准儿你就会赞赏,iOS 专用赞赏通道:

推荐阅读