ORA-28002: the password will expire within 7 days
2017-01-03 15:55
447 查看
java.sql.SQLWarning: ORA-28002: the password will expire within 7 days
连接数据库时,提示密码即将过期,由于不想一直去设置密码,就想将数据库密码设置成永不过期
首先,查看用户profile的设置:
SELECT username,profile FROM dba_users;
说明:oracle系统中的profile是用来对用户所能使用的数据库资源进行限制的
default:指定为default意味着忽略对profile中的一些资源限制,Default profile初始定义对资源不 限制,可以通过alter profile命令来改变;
unlimited:分配该profile的用户对资源使用无限制,当使用密码参数时,unlimited意味着没有对参数加限制。
然后,查看系统中profile中PASSWORD_LIFE_TIME的设置:
SELECT * FROM dba_profiles s WHERE s.profile='DEFAULT' AND resource_name='PASSWORD_LIFE_TIME';
最后,修改DBA_PROFILES中PASSWORD_LIFE_TIME的设置,改为unlimited;
ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED;
修改后设置立即生效,不需要重启数据库,此时密码永远不会过期。
注意:对于已经报告了密码即将过期的用户,必须再改一次密码(需要DBA权限)
sqlplus / as sysdba;
alter user username identified by root;
再次连接数据库即可。
连接数据库时,提示密码即将过期,由于不想一直去设置密码,就想将数据库密码设置成永不过期
首先,查看用户profile的设置:
SELECT username,profile FROM dba_users;
说明:oracle系统中的profile是用来对用户所能使用的数据库资源进行限制的
default:指定为default意味着忽略对profile中的一些资源限制,Default profile初始定义对资源不 限制,可以通过alter profile命令来改变;
unlimited:分配该profile的用户对资源使用无限制,当使用密码参数时,unlimited意味着没有对参数加限制。
然后,查看系统中profile中PASSWORD_LIFE_TIME的设置:
SELECT * FROM dba_profiles s WHERE s.profile='DEFAULT' AND resource_name='PASSWORD_LIFE_TIME';
最后,修改DBA_PROFILES中PASSWORD_LIFE_TIME的设置,改为unlimited;
ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED;
修改后设置立即生效,不需要重启数据库,此时密码永远不会过期。
注意:对于已经报告了密码即将过期的用户,必须再改一次密码(需要DBA权限)
sqlplus / as sysdba;
alter user username identified by root;
再次连接数据库即可。
相关文章推荐
- 【转载】错误:ORA-28002: the password will expire within 7 days 解决方法
- ORA-28002: the password will expire within 7 days
- ORA-28002: the password will expire within 7 days 解决方法
- 转ORA-28002: the password will expire within 7 days 解决方法
- 错误:ORA-28002: the password will expire within 7 days 解决方法
- ORA-28002: the password will expire within string days
- Oracle SQL Developer出现错误 【ora-28002:the password will expire within 7 days】的解决办法
- oracle错误:ORA-28002: the password will expire within 7 days 解决方法
- [ORACLE]ORA-28002 The password will expire within 7 days.将不能登录系统
- 错误:ORA-28002: the password will expire within 7 days 解决方法
- Oracle 11G登陆提示ORA-28002:the password will expire within 7 days
- 错误:ORA-28002: the password will expire within 7 days 解决方法
- ORA-28002: the password will expire within x days
- ORA-28002: the password will expire within 7 days
- 错误:ORA-28002: the password will expire within 7 days 解决方法
- Oracle Database 11g 数据库普通用户登录时提示 ORA-28002: the password will expire within 5 days
- 使用sqlplus连接提示:ORA-28002: the password will expire within 7 days
- ORA-28002: the password will expire within 7 days 解决方法
- ORA-28002: the password will expire within 7 days
- ORA-28002: the password will expire within 7 days 解决方法