1, with the DBA role of the user login, unlock, first set the specific time format, in order to see the specific time
SQL>alterset nls_date_format='yyyy-mm-dd hh24:mi:ss '; Session altered.
2, check the specific lock time
SQL>Selectfrom where username='TEST' ------£º03
3. Unlocking
SQL>alteruser test account unlock; User altered.
4, check that the IP caused by the test user is locked
View $oracle_home/network/admin/log/listener.log Logs
Ten-MAR- the ,:Wuyi:Geneva *(Connect_data=(SID=Lhoms) (SERVER=Dedicated) (CID=(Program=Oracle) (HOST=OMSTESTDB) (USER=oraoms)))*(ADDRESS=(PROTOCOL=TCP) (HOST=10.69.1.11) (PORT=49434))*Establish*Lhoms* 0Ten-MAR- the ,:Wuyi:Geneva *(Connect_data=(SID=Lhoms) (SERVER=Dedicated) (CID=(Program=Oracle) (HOST=OMSTESTDB) (USER=oraoms)))*(ADDRESS=(PROTOCOL=TCP) (HOST=10.69.1.11) (PORT=49435))*Establish*Lhoms* 0
This is known as the above 10.69.1.11 IP attempts to fail the landing caused by the lock
Note:
The General database defaults to 10 attempts to lock the user after a failure
1. View the value of the failed_login_attempts
Select * from where = ' failed_login_attempts ';
2, modified to 30 times
Alter default ;
3, modified to unlimited (for security purposes, not recommended)
Alter default limit failed_login_attempts unlimited;
Oracle user is locked out workaround