oracle數據庫用戶密碼默認爲180天,密碼過時後將沒法登錄數據庫。數據庫
SQL> SELECT username,PROFILE FROM dba_users; USERNAME PROFILE ------------------------------ ------------------------------ MGMT_VIEW DEFAULT SYS DEFAULT SYSTEM DEFAULT DBSNMP MONITORING_PROFILE SYSMAN DEFAULT SA DEFAULT OGG DEFAULT
通常都是默認DEFAULToracle
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 PASSWORD 180
SQL> ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED; PROFILE RESOURCE_NAME RESOURCE LIMIT --------- ------------------- ------------- ---------------- DEFAULT PASSWORD_LIFE_TIME PASSWORD UNLIMITED