当前位置:网站首页>Solutions to Oracle system/ user locking

Solutions to Oracle system/ user locking

2022-06-22 20:33:00 1024 Q

Catalog

Oracle system User locked

Below is how ordinary users unlock

Some easy to use little methods

summary

The article contains how to unlock system Account , How to unlock an ordinary user scott Methods , At the end of the article, there are also some small methods that can solve the problem of forgetting the password and causing the account to be locked . Share with you .

Oracle system User locked

system The user is locked , Other users do not have permission to unlock it , What to do at this time ?

Start by opening SQL PLUS

And then execute conn /as sysdba, Log in without entering a password

Login error , Prompt no permission .

Next open 【 Computer management 】, choice 【 Local users and groups 】, an 【 Group 】, find “ora_dba”

Double-click to open , Check whether the user currently logged in to the computer is in the group , If not , select 【 add to 】→【 senior 】→【 Find now 】, Then add the current user , Until then SQL plus Repeat the previous operation in .

Connect Oracle After the server succeeds , perform alter user system account unlock;  Come on system User to unlock .

If the user password is forgotten , perform alter user system identified by orcl; take system The user's password is changed to orcl, You can also change it to your own password .

Below is how ordinary users unlock

System The account already knows the password , We can go through sys The account login , Unlock ordinary users .

We log in sys Account

After login , stay Recent in , You'll see something called [email protected] The account of , The status is locked .( The grey key has X).

In the left position object In the middle , Find an item in the list as users The option to .

Into the for users After the inside , Select as scott Right click the user . choice Edit.

Open the following interface , stay Password Enter the password you want to change .( Note that the position of the arrow needs to be cancelled - That's unlock !)

Click on Apply. Reopen SQL/PL Sign in .

Some easy to use little methods

1、 Usually we meet oracle The user password is entered incorrectly many times , If you change the user, it will become locked , Then the solution is simple , as follows :

Use plsql Tools sys The user login ( Yes dos Command input :sqlplus / as sysdba ) Unlock

ALTER USER user name ACCOUNT UNLOCK;

2、 In this case, the user will be locked , We can set the user password for unlimited attempts to log in , The user will not be locked :

ALTER PROFILE DEFAULT LIMIT FAILED_LOGIN_ATTEMPTS UNLIMITED;

3、 in addition , Small partners engaged in project operation and maintenance often encounter the situation that the database user password has expired , It is troublesome to change the password regularly , Then we can set the user password not to expire :

ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED;

l Tools sys The user login ( Yes dos Command input :sqlplus / as sysdba ) Unlock

ALTER USER user name ACCOUNT UNLOCK;

2、 In this case, the user will be locked , We can set the user password for unlimited attempts to log in , The user will not be locked :

ALTER PROFILE DEFAULT LIMIT FAILED_LOGIN_ATTEMPTS UNLIMITED;

3、 in addition , Small partners engaged in project operation and maintenance often encounter the situation that the database user password has expired , It is troublesome to change the password regularly , Then we can set the user password not to expire :

ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED;

summary

This is about Oracle system/ This is the end of the article on user locking , More about Oracle system Users are locked. Please search the previous articles of SDN or continue to browse the following related articles. I hope you can support SDN more in the future !


原网站

版权声明
本文为[1024 Q]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/173/202206221905134994.html