Home  >  Article  >  Database  >  Oracle提示错误消息ORA-28001: the password has expired

Oracle提示错误消息ORA-28001: the password has expired

WBOY
WBOYOriginal
2016-06-07 17:04:501016browse

Oracle提示错误消息ORA-28001: the password has expired,经调查是由于Oracle 11G的新特性所致, Oracle 11G创建用户时缺省密码过

Oracle提示错误消息ORA-28001: the password has expired,

经调查是由于Oracle 11G的新特性所致,, Oracle 11G创建用户时缺省密码过期限制是180天, 如果超过180天用户密码未做修改则该用户无法登录。

可通过

SELECT * FROM dba_profiles WHERE profile='DEFAULT' AND resource_name='PASSWORD_LIFE_TIME'

语句查询密码的有效期设置,

LIMIT字段是密码有效天数。在密码将要过期或已经过期时可通过

ALTER USER 用户名 IDENTIFIED BY 密码 ;

语句进行修改密码,密码修改后该用户可正常连接数据库。

长久对应可通过

ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED

语句将口令有效期默认值180天修改成“无限制”。出于数据库安全性考虑,不建议将PASSWORD_LIFE_TIME值设置成UNLIMITED,

建议客户定期修改数据库用户口令。

linux

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn