Assuming that the LOCKED option in login policy
lp is set to OFF,
this example replaces the login policy currently assigned to
John
with login policy
lp:
ALTER USER john LOGIN POLICY lp
Assuming the account of
John is locked because he either exceeded
the MAX_FAILED_LOGIN_ATTEMPTS or MAX_DAYS_SINCE_LOGIN, this example forces the reset
of the values in the login policy currently assigned to
John:
ALTER USER john RESET LOGIN POLICY