【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:
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.
相關文章
相關標籤/搜索