SQL> Select username, Account_Status, Expiry_Date from DBA_USERS;
The result shall display after query statement execution. The database administrator can switch off password expiry option by issuing the following command
SQL> Alter Profile Default limit PASSWORD_LIFE_TIME unlimited;
Profile altered.
Now running the same query below, the expiry date value shall be null
SQL> Select username, Account_Status, Expiry_Date from DBA_USERS;
However, this is dangerous for security reason because all users under PROFILE default have non-expiry date for password. To limit the password expiry again,
SQL> alter profile default limit PASSWORD_LIFE_TIME 180;
Profile altered.
180 means password expire after 180 days
No comments:
Post a Comment