【ORACLE】oracle数据库⽤户密码复杂度配置-- 设置密码复杂度
SQL> @ /u01/app/oracle/product/11.2.0/db_1/rdbms/admin/utlpwdmg.sql
-- 测试
SQL> alter user scott identified by 123456;
alter user scott identified by 123456
*
ERROR at line 1:
oracle 新建用户ORA-28003: 指定⼝令的⼝令验证失败 ORA-20001:
Password length less than 8
SQL> alter user scott identified by 12345678;
alter user scott identified by 12345678
*
ERROR at line 1:
ORA-28003: 指定⼝令的⼝令验证失败 ORA-20009:
Password must contain at least one \
digit, and one character
SQL> alter user scott identified by "123456ykyy!";
User altered.
-- 取消密码复杂度
SQL> alter profile default limit password_verify_function null;
Profile altered.
-- 密码过期
SQL> alter profile default limit password_life_time 30;
-- 测试
[oracle@rac01 ~]$ sqlplus scott/123456ykyy!
SQL*Plus: Release 11.2.0.4.0 Production on 星期六 4⽉ 7 12:30:06 2018
Copyright (c) 1982, 2013, Oracle.  All rights reserved.
ERROR:
ORA-28002: the password will expire within 7 days
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options
SQL>
-- 取消密码过期
SQL> alter profile default limit password_life_time unlimited;
Profile altered.