I have a user password expiration date,
Select Expiry_date from USER_USERS;
I want to send a warning message when the password expires.
My password is not expiring anytime soon. I want to change the expiration date to the previous date so that I can verify my code.
My user account password must expire. that is, I want to get ORA-28002ERROR.
I tried to use
alter user XYZ password expire;
This sets my user state ACCOUNT_STATUSto EXPIRED, but I want it to be in state EXPIRED(GRACE).
Please suggest any possible method.
source
share