The reason and method of Oracle user being locked __oracle

Source: Internet
Author: User

Reasons and methods for Oracle users being locked  
when logging in, they were told that test user was locked in
1, logged in with DBA role, unlocked, set specific time format to view specific time
Sql> alter session Set nls_date_format= ' Yyyy-mm-dd hh24:mi:ss '; The
session altered.  
2, view specific locked time
sql> Select Username,lock_date from dba_users where username= ' TEST ';
USERNAME lock_date
-------------------------------------------------
TEST 2009-03-10 08:51:03
3, Unlock
SQ l> 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 * (Connect_data= (sid=lhoms) (server=dedicated) (CID= (PROGRAM=orac Le) (HOST=OMSTESTDB) (user=oraoms)) * (Address= (PROTOCOL=TCP) (host=10.69.1.11) (port=49435)) * Establish * lhoms * The 0www.examda.com exam will go to the exam.
This can be known as the above 10.69.1.11 IP attempt multiple failed login caused by the lock
Note:
General database default is 10 attempts failed to lock users
1, view Failed_login_  The value of attempts
Select * from Dba_profiles
2, modified to 30 times
Alter profile default limit failed_login_attempts
3. Modify to unlimited time (for security reasons, not recommended)
Alter profile default limit Failed_login_attempts unlimited;

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.