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

Resolve ORA-28000: the account is locked

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

In oracle, if ten consecutive attempts to log in are unsuccessful, the account will be lock. When logging in with a locked account, the system reports an error: ORA-28000: the account is locked.

Query the default value of the FAILED_LOGIN_ATTEMPTS parameter, which limits the number of consecutive login failures from the first login failure.

Sqlplus / nolog

Conn / as sysdba

Desc dba_profiles

Select resource_name,limit from dba_profiles where resource_name='FAILED_LOGIN_ATTEMPTS'

As can be seen from the query results, if the query fails N times in a row, the user will be locked.

one

Log in using a system or sys account, please log in as an administrator.

Enter sqlplus / nolog

Conn / as sysdba

two

Use the command to unlock the user. The command is: alter user username account unlock;, where username is the locked user name.

three

Reset the user password. The command is: alter user username identified by password;, where username is the user name and password is the new password.

four

Try to log in again using your account. If all the commands are executed successfully, you should be able to log in to the system normally.

five

Modify the parameter failed_login_attempts=unlimited, which, of course, reduces security, which is not recommended. Alter profile default limit failed_login_attempts unlimited

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