oracle 11g的ORA-28001 处理
2012-12-18 13:59
405 查看
收到一个监控用户无法连接数据库的告警,Oracle提示错误消息ORA-28001:
the password has expired,上去查看用户状态竟然是expired,获取用户基本信息脚本如下:
connect / as sysdba;
col username for a16
col password for a18
col user_id for 999999
col account_status heading 'Account|Status' for a20
col default_tablespace heading 'Default|Tablespace' for a25
col temporary_tablespace heading 'Temporary|Tablespace' for a12
set lines 125
set pages 100
select username,user_id,password,account_status,default_tablespace,temporary_tablespace,to_char(created,'yyyy-mm-dd hh24:mi:ss') created
from dba_users
order by username;
这是Oracle11G的一个新特性, Oracle11G创建用户时缺省密码过期限制是180天,如果超过180天用户密码未做修改则该用户无法登录。
查看PROFILE设置
select * from dba_profiles where profile='DEFAULT' and resource_name='PASSWORD_LIFE_TIME';
ALTER
USER 用户名 IDENTIFIED BY 密码 ;
语句进行修改密码,密码修改后该用户可正常连接数据库。
如果需要修改策略
ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED
语句将口令有效期默认值180天修改成“无限制”。
From:http://space.itpub.net/22503721/viewspace-708223
the password has expired,上去查看用户状态竟然是expired,获取用户基本信息脚本如下:
connect / as sysdba;
col username for a16
col password for a18
col user_id for 999999
col account_status heading 'Account|Status' for a20
col default_tablespace heading 'Default|Tablespace' for a25
col temporary_tablespace heading 'Temporary|Tablespace' for a12
set lines 125
set pages 100
select username,user_id,password,account_status,default_tablespace,temporary_tablespace,to_char(created,'yyyy-mm-dd hh24:mi:ss') created
from dba_users
order by username;
查看PROFILE设置
select * from dba_profiles where profile='DEFAULT' and resource_name='PASSWORD_LIFE_TIME';
DEFAULT PASSWORD_LIFE_TIME PASSWORD 180 处理逻辑,将用户密码修改并判断是否需要这个策略 |
USER 用户名 IDENTIFIED BY 密码 ;
如果需要修改策略
ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED
语句将口令有效期默认值180天修改成“无限制”。
From:http://space.itpub.net/22503721/viewspace-708223
相关文章推荐
- Oracle 11g default profile 默认启用密码过期180天 ORA-28001错误处理
- Oracle 11g default profile 默认启用密码过期180天 ORA-28001错误处理
- oracle 11g ora-00979 bug的处理
- ORACLE 11G默认密码期限ORA-28001: the password has expired解决方法
- Oracle 11g ORA-14450: 试图访问已经在使用的事务处理临时表
- Oracle 11g R2 (11.2.0.1.0)impdp 导入报ora-06512错误,处理一例
- 关于oracle 11g导出数据时 报 ORA 1455错误的处理
- Oracle 11g ORA-00845: MEMORY_TARGET not supported on this system 报错处理
- Oracle 11g 参数修改错误导致数据库无法启动的处理方法.[ORA-01034,ORA-27101]
- Oracle 11g参数修改错误导致数据库无法启动的处理方法.[ORA-01034,ORA-27101,ORA-00824]
- Oracle 11g RAC 补丁升级时报ORA-01565: error in identifying spfileprod.ora 错误处理
- ORACLE 11G默认密码期限ORA-28001: the password has expired解决方法
- 连接oracle 11g出错error:ORA-28001:the password has expired;
- Oracle 11G R2 RAC 启动报错:ORA-01078 ORA-01565 ORA-17503 ORA-12547 处理方法
- oracle 11g ora-00979 bug的处理
- ORA-00031: session marked for kill 处理Oracle中杀不掉的锁
- oracle错误处理之ORA-00054:资源正忙,要求指定NOWAIT
- Oracle 11g 错误:ORA-28002: the password will expire within 7 days 解决方法
- Oracle密码过期ORA-28001: the password has expired解决办法
- Oracle 11g ORA-00845: MEMORY_TARGET not supported on this system 说明