码迷,mamicode.com
首页 > 数据库 > 详细

[ORACLE]ORA-28002 The password will expire within 7 days.将不能登录系统

时间:2017-12-17 23:51:22      阅读:220      评论:0      收藏:0      [点我收藏+]

标签:log   错误   登录系统   dba   can   idt   day   如何   vtp   

错误“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 专用赞赏通道:

技术分享图片

[ORACLE]ORA-28002 The password will expire within 7 days.将不能登录系统

标签:log   错误   登录系统   dba   can   idt   day   如何   vtp   

原文地址:http://www.cnblogs.com/eason-liu/p/8053555.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!