时间:2021-07-01 10:21:17 帮助过:88人阅读
修改密码并设置密码期限为无限制 报错:ora-28001 口令已经失效 Microsoft Windows [版本 6.1.7601] C:\Users\Administratorsqlplus /nolog SQL*Plus: Release 11.2.0.1.0 Production on 星期一 6月 9 16:56:34 2014 Copyright (c) 1982, 2010, Oracle. All
修改密码并设置密码期限为无限制
报错:ora-28001 口令已经失效
Microsoft Windows [版本 6.1.7601]
C:\Users\Administrator>sqlplus /nolog
SQL*Plus: Release 11.2.0.1.0 Production on 星期一 6月 9 16:56:34 2014
Copyright (c) 1982, 2010, Oracle. All rights reserved.
SQL>
SQL> conn sys/password@orcl as sysdba
已连接。
SQL> select username from dba_users;
USERNAME
------------------------------
YLCW
SCOTT
ORACLE_OCM
XS$NULL
MDDATA
DIP
APEX_PUBLIC_USER
SPATIAL_CSW_ADMIN_USR
USERNAME
------------------------------
SPATIAL_WFS_ADMIN_USR
DBSNMP
SYSMAN
FLOWS_FILES
MDSYS
ORDSYS
EXFSYS
WMSYS
APPQOSSYS
APEX_030200
OWBSYS_AUDIT
USERNAME
------------------------------
ORDDATA
CTXSYS
ANONYMOUS
XDB
ORDPLUGINS
OWBSYS
SI_INFORMTN_SCHEMA
OLAPSYS
MGMT_VIEW
SYS
SYSTEM
USERNAME
------------------------------
OUTLN
已选择34行。
SQL> ALTER USER YLCW IDENTIFIED BY 123456 ;
用户已更改。
SQL> SELECT * FROM dba_profiles WHERE profile='DEFAULT' AND resource_name='PASSWORD_LIFE_TIME' ;
PROFILE RESOURCE_NAME RESOURCE
------------------------------ -------------------------------- --------
LIMIT
----------------------------------------
DEFAULT PASSWORD_LIFE_TIME PASSWORD
180
SQL> ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED ;
配置文件已更改
SQL> SELECT * FROM dba_profiles WHERE profile='DEFAULT' AND resource_name='PASSWORD_LIFE_TIME';
PROFILE RESOURCE_NAME RESOURCE
------------------------------ -------------------------------- --------
LIMIT
----------------------------------------
DEFAULT PASSWORD_LIFE_TIME PASSWORD
UNLIMITED