最新文章专题视频专题问答1问答10问答100问答1000问答2000关键字专题1关键字专题50关键字专题500关键字专题1500TAG最新视频文章推荐1 推荐3 推荐5 推荐7 推荐9 推荐11 推荐13 推荐15 推荐17 推荐19 推荐21 推荐23 推荐25 推荐27 推荐29 推荐31 推荐33 推荐35 推荐37视频文章20视频文章30视频文章40视频文章50视频文章60 视频文章70视频文章80视频文章90视频文章100视频文章120视频文章140 视频2关键字专题关键字专题tag2tag3文章专题文章专题2文章索引1文章索引2文章索引3文章索引4文章索引5123456789101112131415文章专题3
当前位置: 首页 - 科技 - 知识百科 - 正文

Oracle11g缺省密码期限问题

来源:动视网 责编:小采 时间:2020-11-09 11:06:59
文档

Oracle11g缺省密码期限问题

Oracle11g缺省密码期限问题:Oracle Database 11g 数据库普通用户登录时提示 ORA-28002: the password will expire within 7 days 故障现象 Oracle Database 11g 数据库普通用户登录时提示 ORA-28002: the password will expire within 7
推荐度:
导读Oracle11g缺省密码期限问题:Oracle Database 11g 数据库普通用户登录时提示 ORA-28002: the password will expire within 7 days 故障现象 Oracle Database 11g 数据库普通用户登录时提示 ORA-28002: the password will expire within 7


Oracle Database 11g 数据库普通用户登录时提示 ORA-28002: the password will expire within 7 days

故障现象

Oracle Database 11g 数据库普通用户登录时提示 ORA-28002: the password will expire within 7 days

[11:01:00oracle@dvd db_1]$sqlplus wang/oracle

SQL*Plus: Release 11.2.0.1.0 Production on Fri Nov 16 11:01:23 2012

Copyright (c) 1982, 2009, Oracle. All rights reserved.

ERROR:

ORA-28002: the password will expire within 7 days

Connected to:

Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production

With the OLAP and Data Mining options

wang@SUN>

故障原因

Oracle 11G 普通用户有个180天的缺省密码周期,当快过期的时候即会出现此提示;

解决办法

查看当前用户对应profile、对应密码周期

select * from dba_profiles where profile='DEFAULT' AND resource_name='PASSWORD_LIFE_TIME';

alter profile default limit password_life_time unlimited;

SELECT username,PROFILE FROM dba_users where username like upper('&USER');

sys@SUN> SELECT username,PROFILE FROM dba_users where username like upper('&USER');

Enter value for user: wang

old 1: SELECT username,PROFILE FROM dba_users where username like upper('&USER')

new 1: SELECT username,PROFILE FROM dba_users where username like upper('wang')

USERNAME PROFILE

------------------------------ ------------------------------

WANG DEFAULT

--查询到该用户对应的Profile文件为 DEFAULT

sys@SUN> set lines 222

sys@SUN> col PROFILE for a20

sys@SUN> col RESOURCE_NAME for a20

sys@SUN> col RESOURCE_TYPE for a20

sys@SUN> col LIMIT for a20

sys@SUN> select * from dba_profiles where profile='DEFAULT' AND resource_name='PASSWORD_LIFE_TIME';

PROFILE RESOURCE_NAME RESOURCE_TYPE LIMIT

-------------------- -------------------- -------------------- --------------------

DEFAULT PASSWORD_LIFE_TIME PASSWORD 180

--查询到该profile对应的密码生命周期配置为180天

修改当前用户对应profile对应对应密码周期

sys@SUN> alter profile default limit password_life_time 365;

Profile altered.

--修改该profile对应的密码生命周期配置为365天

sys@SUN> alter profile default limit password_life_time unlimited;

Profile altered.

--修改该profile对应的密码生命周期配置为 无限制

文档

Oracle11g缺省密码期限问题

Oracle11g缺省密码期限问题:Oracle Database 11g 数据库普通用户登录时提示 ORA-28002: the password will expire within 7 days 故障现象 Oracle Database 11g 数据库普通用户登录时提示 ORA-28002: the password will expire within 7
推荐度:
标签: 密码 问题 oracle
  • 热门焦点

最新推荐

猜你喜欢

热门推荐

专题
Top