最新文章专题视频专题问答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
当前位置: 首页 - 科技 - 知识百科 - 正文

ORA-28001:thepasswordhasexpired解决

来源:动视网 责编:小采 时间:2020-11-09 12:49:26
文档

ORA-28001:thepasswordhasexpired解决

ORA-28001:thepasswordhasexpired解决:ORA-28001: the password has expired 解决 ORA-28001: the password has expiredCause: The users account has expired and the password needs to be changedAction: change the password o
推荐度:
导读ORA-28001:thepasswordhasexpired解决:ORA-28001: the password has expired 解决 ORA-28001: the password has expiredCause: The users account has expired and the password needs to be changedAction: change the password o


ORA-28001: the password has expired 解决

ORA-28001: the password has expired
Cause: The user"s account has expired and the password needs to be changed
Action: change the password or contact the DBA

程序连接DB服务器时报错:
13-04-22 17:32:15 [ERROR] com.sohu.game.Main {Main.java:102} - 统计失败:
java.sql.SQLException: ORA-28001: the password has expired

at Oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:2)
at oracle.jdbc.ttc7.O3log.receive2nd(O3log.java:496)

解决方法:
查看帐号的信息:
SQL> select USERNAME,ACCOUNT_STATUS,LOCK_DATE,EXPIRY_DATE,password,CREATED from dba_users where username=upper('xxx ');

USERNAME ACCOUNT_ST LOCK_DATE EXPIRY_DATE CREATED
-------------------- ---------- -------------------- ------------------- ------------------------------ -------------------
xxx EXPIRED 2013-04-22 14:44:43 2012-10-17 14:20:15

查看帐号的PASSWORD_LIFE_TIME设置:
SQL> select * from dba_profiles where profile like '%xxx%';
PROFILE RESOURCE_NAME RESOURCE LIMIT
------------------------------ -------------------------------- -------- ----------------------------------------
PF_xxx PASSWORD_LIFE_TIME PASSWORD DEFAULT
查看系统PROFILE文件的默认设置:
SQL> select * from dba_profiles where profile like '%DEFAULT%';
PROFILE RESOURCE_NAME RESOURCE LIMIT
------------------------------ -------------------------------- -------- ----------------------------------------
DEFAULT PASSWORD_LIFE_TIME PASSWORD 180
设置了用户的PASSWORD_LIFE_TIME,默认为180天;
修改用户的PASSWORD_LIFE_TIME:
SQL> alter profile DEFAULT limit PASSWORD_LIFE_TIME unlimited;
Profile altered.
重新设置用户的密码:
SQL> alter user xxx identified by xxx;
User altered.
SQL> select USERNAME,ACCOUNT_STATUS,LOCK_DATE,EXPIRY_DATE,password,CREATED from dba_users where username=upper('xxx');
USERNAME ACCOUNT_ST LOCK_DATE EXPIRY_DATE CREATED
-------------------- ---------- -------------------- ------------------- ------------------------------ -------------------
XXX OPEN 2012-10-17 14:20:15
帐号状态恢复正常。

注意:
因为这个帐号是应用程序在使用的,不能更换密码,所在在使用alter user...identified by的时候,需要使用这个帐号当前的密码进行操作。

在CentOS 6.4下安装Oracle 11gR2(x)

Oracle 11gR2 在VMWare虚拟机中安装步骤

Debian 下 安装 Oracle 11g XE R2

本文永久更新链接地址:

文档

ORA-28001:thepasswordhasexpired解决

ORA-28001:thepasswordhasexpired解决:ORA-28001: the password has expired 解决 ORA-28001: the password has expiredCause: The users account has expired and the password needs to be changedAction: change the password o
推荐度:
  • 热门焦点

最新推荐

猜你喜欢

热门推荐

专题
Top