📅  最后修改于: 2022-03-11 15:05:05.685000             🧑  作者: Mango
CREATE PROFILE SHORT_LIFE_PROFILE LIMIT
PASSWORD_LIFE_TIME 1/24/60/60 --> 1 second
PASSWORD_GRACE_TIME 1/24; --> 1 hour
ALTER USER user_name PROFILE SHORT_LIFE_PROFILE; -- Log on to refresh
SELECT ACCOUNT_STATUS FROM DBA_USERS WHERE USERNAME = 'user_name';