oracle

推荐列表 站点导航

当前位置:首页 > 数据库 > oracle >

ORA-28002 Oracle 11g存在密码过期问题解决方案

来源:网络整理  作者:  发布时间:2020-12-14 03:11
oracle数据库使用中会遇到ORA-28002 Oracle 11g存在密码过期问题,本文将提供详细的解决方案,需要的朋友可以参考下...

PROFILE RESOURCE_NAME RESOURCE_TYPE LIMIT
Oracle Database 11g 数据库普通用户登录时提示 ORA-28002: the password will expire within 7 days
-------------------- -------------------- -------------------- --------------------
--修改该profile对应的密码生命周期配置为365天
WANG DEFAULT
Oracle 11G 普通用户有个180天的缺省密码周期,当快过期的时候即会出现此提示;
查看当前用户对应profile、对应密码周期
sys@SUN> col PROFILE for a20
sys@SUN> col LIMIT for a20
故障原因
DEFAULT PASSWORD_LIFE_TIME PASSWORD 180
wang@SUN>
ERROR:
--查询到该profile对应的密码生命周期配置为180天
Copyright (c) 1982, 2009, Oracle. All rights reserved.
------------------------------ ------------------------------
SELECT username,PROFILE FROM dba_users where username like upper('&USER');
USERNAME PROFILE
Connected to:
sys@SUN> col RESOURCE_TYPE for a20
[11:01:00oracle@dvd db_1]$sqlplus wang/oracle
解决办法
--修改该profile对应的密码生命周期配置为 无限制 SQL*Plus: Release 11.2.0.1.0 Production on Fri Nov 16 11:01:23 2012
Profile altered.
sys@SUN> select * from dba_profiles where profile='DEFAULT' AND resource_name='PASSWORD_LIFE_TIME';
故障现象
sys@SUN> SELECT username,PROFILE FROM dba_users where username like upper('&USER');

sys@SUN> col RESOURCE_NAME for a20
修改当前用户对应profile对应对应密码周期
Profile altered.
sys@SUN> set lines 222
--查询到该用户对应的Profile文件为 DEFAULT
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the OLAP and Data Mining options
old 1: SELECT username,PROFILE FROM dba_users where username like upper('&USER')
sys@SUN> alter profile default limit password_life_time 365;
select * from dba_profiles where profile='DEFAULT' AND resource_name='PASSWORD_LIFE_TIME';
alter profile default limit password_life_time unlimited;
sys@SUN> alter profile default limit password_life_time unlimited;
new 1: SELECT username,PROFILE FROM dba_users where username like upper('wang')
Enter value for user: wang
ORA-28002: the password will expire within 7 days

相关热词: oracle 解决

本站内容来源于网络,如有侵权请与我们联系,我们会及时删除,我们深感抱歉!
注:本站所有信息仅供用于网络技术学习参考,学习中请遵循相关法律法规!

本文地址: https://www.juheyunku.com/sql/oracle/3592.shtml

Copyright © www.juheyunku.com      关于 | 合作 | 声明 | 联系 | 更新 | 地图 | Tags

ORA-28002 Oracle 11g存在密码过期问题解决方案

2020-12-14 编辑:


PROFILE RESOURCE_NAME RESOURCE_TYPE LIMIT
Oracle Database 11g 数据库普通用户登录时提示 ORA-28002: the password will expire within 7 days
-------------------- -------------------- -------------------- --------------------
--修改该profile对应的密码生命周期配置为365天
WANG DEFAULT
Oracle 11G 普通用户有个180天的缺省密码周期,当快过期的时候即会出现此提示;
查看当前用户对应profile、对应密码周期
sys@SUN> col PROFILE for a20
sys@SUN> col LIMIT for a20
故障原因
DEFAULT PASSWORD_LIFE_TIME PASSWORD 180
wang@SUN>
ERROR:
--查询到该profile对应的密码生命周期配置为180天
Copyright (c) 1982, 2009, Oracle. All rights reserved.
------------------------------ ------------------------------
SELECT username,PROFILE FROM dba_users where username like upper('&USER');
USERNAME PROFILE
Connected to:
sys@SUN> col RESOURCE_TYPE for a20
[11:01:00oracle@dvd db_1]$sqlplus wang/oracle
解决办法
--修改该profile对应的密码生命周期配置为 无限制 SQL*Plus: Release 11.2.0.1.0 Production on Fri Nov 16 11:01:23 2012
Profile altered.
sys@SUN> select * from dba_profiles where profile='DEFAULT' AND resource_name='PASSWORD_LIFE_TIME';
故障现象
sys@SUN> SELECT username,PROFILE FROM dba_users where username like upper('&USER');

sys@SUN> col RESOURCE_NAME for a20
修改当前用户对应profile对应对应密码周期
Profile altered.
sys@SUN> set lines 222
--查询到该用户对应的Profile文件为 DEFAULT
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the OLAP and Data Mining options
old 1: SELECT username,PROFILE FROM dba_users where username like upper('&USER')
sys@SUN> alter profile default limit password_life_time 365;
select * from dba_profiles where profile='DEFAULT' AND resource_name='PASSWORD_LIFE_TIME';
alter profile default limit password_life_time unlimited;
sys@SUN> alter profile default limit password_life_time unlimited;
new 1: SELECT username,PROFILE FROM dba_users where username like upper('wang')
Enter value for user: wang
ORA-28002: the password will expire within 7 days

本站内容来源于网络,如有侵权请与我们联系,我们会及时删除,我们深感抱歉!
注:本站所有信息仅供学习参考!
本文地址为 https://www.juheyunku.com/sql/oracle/3592.shtml

相关文章

风云图片

推荐阅读

返回oracle频道首页