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
本站内容来源于网络,如有侵权请与我们联系,我们会及时删除,我们深感抱歉!
注:本站所有信息仅供用于网络技术学习参考,学习中请遵循相关法律法规!
本文地址: https://www.juheyunku.com/sql/oracle/3592.shtml
相关文章
热门TAG
命令 权重 外链 企业网站 白帽 php 织梦教程 dedecms修改内容 javascript 织梦 功能 标签 调用 详解 服务器 网站流量 实例解析 Dedecms 织梦cms HTML tags标签 python jquery教程 jquery windows SEO优化 蜘蛛 搜索引擎 网站收录 JSP最新文章
-
Window下Oracle Database 11g 发行
时间:2020-12-29
-
Oracle如何实现like多个值的
时间:2020-12-29
-
maven添加oracle依赖失败问题
时间:2020-12-29
-
OracleRAC基本概念及入门
时间:2020-12-29
-
Azure File Storage 基本用法
时间:2020-12-26
-
Oracle 权限(grant revoke)
时间:2020-12-26
-
Azure Queue Storage 基本用法
时间:2020-12-26
-
如何对比迁移前后的Orac
时间:2020-12-26
热门文章
-
Azure Queue Storage 基本用法 Azure Storage 之
时间:2020-12-26
-
Oracle存储过程编程详解
时间:2020-12-07
-
win10下oracle 11g安装图文教程
时间:2020-12-25
-
oracle 数据库学习 基本结构介绍
时间:2020-12-13
-
Azure File Storage 基本用法 Azure Storage 之 F
时间:2020-12-26
-
windows使用sqlpus连接oracle 数据库的教程图
时间:2020-12-25
-
Window下Oracle Database 11g 发行版2安装教程
时间:2020-12-29
-
Oracle解锁的方式介绍
时间:2020-12-14
-
linux下oracle设置开机自启动实现方法
时间:2020-12-13
-
Oracle学习记录之使用自定义函数和触发器
时间:2020-12-07
