oracle 用户密码过期-ORA-28001: 口令已经失效
操作步骤:
[BEGIN] 2018-10-23 17:25:43Last login: Mon Sep 3 08:46:32 2018 from 10.2.202.12#登陆数据库#(1)在命令窗口中输入:# sqlplus 用户名/密码@数据库本地服务名 as sysdba;(如:sqlplus scott/1234@oracle1 as sysdba;)[oracle@GE1CSH1MES022V ~]$ sqlplus / as sysdbaSQL*Plus: Release 11.2.0.4.0 Production on Tue Oct 23 17:29:38 2018Copyright (c) 1982, 2013, Oracle. All rights reserved.Connected to:Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit ProductionWith the Partitioning, OLAP, Data Mining and Real Application Testing options#2)查看用户的proifle是哪个,一般是default :SQL> SELECT username,PROFILE FROM dba_users;USERNAME PROFILE------------------------------ ------------------------------MGMT_VIEW DEFAULTSYS DEFAULTSYSTEM DEFAULTDBSNMP MONITORING_PROFILESYSMAN DEFAULTUSERNAME PROFILE------------------------------ ------------------------------36 rows selected.#(3)查看对应的概要文件(如default)的密码有效期设置:SQL> SELECT * FROM dba_profiles s WHERE s.profile='DEFAULT' AND resource_name='PASSWORD_LIFE_TIME';PROFILE RESOURCE_NAME RESOURCE------------------------------ -------------------------------- --------LIMIT----------------------------------------DEFAULT PASSWORD_LIFE_TIME PASSWORD180#(4)将概要文件(如default)的密码有效期由默认的180天修改成“无限制”:修改之后不需要重启动数据库,会立即生效。SQL> ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED;Profile altered.#(5)修改后,还没有被提示ORA-28002警告的用户账号不会再碰到同样的提示;而已经被提示的用户账号必须再改一次密码,举例如下:# sql>alter user 用户名 identified by <原来的密码> account unlock; ----不用换新密码SQL> alter user ftc_dyo identified by yo81 account unlock;User altered.SQL> exit##注意:oracle11g启动参数resource_limit无论设置为false还是true,密码有效期都是生效的,所以必须通过以上方式进行修改。 原来的密码>
参考链接:https://www.cnblogs.com/luckly-hf/p/3828573.html