Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How which ip causes the user to be locked in Oracle

2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)05/31 Report--

Editor to share with you how in Oracle which ip caused the user to be locked. I hope you will get something after reading this article. Let's discuss it together.

Was told that the test user was locked when logging in

1. Log in with the user of the dba role and unlock it. Set the specific time format first in order to view the specific time.

SQL > alter session set nls_date_format='yyyy-mm-dd hh34:mi:ss'

Session altered.

2. Check the specific lock time

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. Check that the ip caused the test user to be locked.

View the $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=oracle) (HOST=omstestdb) (USER=oraoms) * (ADDRESS= (PROTOCOL=tcp) (HOST=10.69.1.11) (PORT=49435)) * establish * lhoms * 0

In this way, it can be seen that the ip of 10.69.1.11 above is locked due to repeated failed login attempts.

Note:

By default, the database locks the user after 10 failed attempts.

1. Check the value of FAILED_LOGIN_ATTEMPTS

Select * from dba_profiles

2. Modify it to 30 times

Alter profile default limit FAILED_LOGIN_ATTEMPTS 30

3. Modify it to unlimited number of times (not recommended for security reasons)

Alter profile default limit FAILED_LOGIN_ATTEMPTS unlimited

After reading this article, I believe you have a certain understanding of "how in Oracle which ip caused the user to be locked". If you want to know more about it, welcome to follow the industry information channel, thank you for reading!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report