Oracle11g数据库密码过期ORA-28002问题处理方法
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了Oracle11g数据库密码过期ORA-28002问题处理方法,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含2719字,纯文字阅读大概需要4分钟。
内容图文
![Oracle11g数据库密码过期ORA-28002问题处理方法](/upload/InfoBanner/zyjiaocheng/564/ba49646c82d14ba3975911d7ba72a875.jpg)
用户在登录时报错ORA-28002,(如下图)提示数据将在1天后过期。这是由于11g对于密码的生命周期进行了控制,控制时间为180天。将
问题描述与分析:用户在登录时报错ORA-28002,(如下图)提示数据将在1天后过期。这是由于11g对于密码的生命周期进行了控制,控制时间为180天。将其时间进行修改便能够解决此问题,未报该错误的用户,,将按照修改后的来判断,已出现警告的用户需要进行密码的修改,方可按照新定的时间进行判断。
sqlplus连接时:
ORA-28002: the password will expire within 1 days
28002. 00000 - "the password will expire within %s days"
*Cause: The user's account is about to expire and the password
needs to be changed
*Action: change the password or contact the DBA
供应商代码 28002
Oracle sql developer连接时:
pl/sql连接时:
处理方法:
1.连接数据库检查default profile文件中的password_life_time参数
[oracle@tora01 diag]$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.4.0 Production on Mon May 25 13:17:57 2015
Copyright (c) 1982, 2013, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> select * from dba_profiles s where s.profile='DEFAULT' and resource_name='PASSWORD_LIFE_TIME';
PROFILE RESOURCE_NAME RESOURCE
------------------------------ -------------------------------- --------
LIMIT
----------------------------------------
DEFAULT PASSWORD_LIFE_TIME PASSWORD
180
2. 修改password_life_time参数为unlimited(此处按照要求更改,处于怕以后再次出过期,直接unlimited)
SQL> alter profile default limit password_life_time unlimited;
Profile altered.
3. 再次检查此参数
SQL> select * from dba_profiles s where s.profile='DEFAULT' and resource_name='PASSWORD_LIFE_TIME';
PROFILE RESOURCE_NAME RESOURCE
------------------------------ -------------------------------- --------
LIMIT
----------------------------------------
DEFAULT PASSWORD_LIFE_TIME PASSWORD
UNLIMITED
4. 修改报警用户的密码
SQL> alter user testauchan identified by oracle;
User altered.
5. 验证登录是否正常
[oracle@tora01 ~]$ sqlplus testauchan/oracle
SQL*Plus: Release 11.2.0.4.0 Production on Mon May 25 13:41:58 2015
Copyright (c) 1982, 2013, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
总结:该参数是oracle为了安全而制定的,所以在DBA足够控制的能力下,可将改为unlimited,否则还是要建议为使用天数限制。便于对密码的安全进行更改。
内容总结
以上是互联网集市为您收集整理的Oracle11g数据库密码过期ORA-28002问题处理方法全部内容,希望文章能够帮你解决Oracle11g数据库密码过期ORA-28002问题处理方法所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。