Oracle user is locked out workaround

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.