When you log on using an Oracle database, you are told that the user is locked out _oracle

Source: Internet
Author: User
Tags log log oracle database

Was told that test user was locked on login

1, with the DBA role of the user login, to unlock, set the specific time format in order to view the specific time

Sql> alter session set nls_date_format= ' Yyyy-mm-dd hh24:mi:ss ';
Session altered.

 2, to see the specific time locked

Sql> Select Username,lock_date from dba_users where username= ' TEST ';
USERNAME lock_date
-------------------------------------------------
TEST 2009-03-10 08:51:03

 3, Unlock

sql> alter user test account unlock;
User altered.

4, view is that IP caused by the test user is locked

View $oracle_home/network/admin/log/listener.log Log

10-mar-2009 08:51:03 * (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 * 0
10-mar-2009 08:51:03 * (CO Nnect_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 attempt multiple failed login caused by the lock

  Note:

The normal database defaults to locking the user after 10 unsuccessful attempts

1, view the value of failed_login_attempts

SELECT * FROM Dba_profiles

2, modified to 30 times

Alter profile default limit failed_login_attempts 30;

3. Change to unlimited times (for security reasons, not recommended)

Alter profile default limit Failed_login_attempts unlimited;

The above is a small set to introduce the use of Oracle database login was told the user was locked how to solve, I hope to help you, if you have any questions please give me a message, small series will promptly reply to everyone. Here also thank you very much for the cloud Habitat Community website support!

Related Article

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.