Oracle Account locked workaround record

Source: Internet
Author: User

Today in a visit to an old project, the background error prompts Oracle account locked, has always been able to access the normal, do not know why this problem occurs, Baidu for a reason is probably multiple landing failure caused, the general database default is 10 attempts to lock the user after the failure, Find out the reason after the next is to solve the problem, the solution is very simple: to unlock the user on the line, but the problem appears in the search for users.

The structure of Oracle itself is not very familiar with, so in unlocking the user's time to go a lot of detours, the following one by one way to:

First, because the database has been long, forgot the SYS user password, so only remote to the server login, in the login is indeed encountered another error: insufficient privileges

After Baidu Discovery is Oracle DBA Group setup problem, then set up, add current user Jackvc.qin to ORA_DBA Group:

After Setup is complete successfully, SYS successfully links:

The next step is to unlock the user.

Second, the same is because of the Oracle instance, the user concept is not clear enough to unlock the user in the Dba_users table is not found to be locked users, baffled it. After viewing the Oracle profile finally found the problem, originally created on the server three DB instances: Databasea, ORCL, Databasec, and the locked user belongs to the instance ORCL, However, I did not specify which instance to connect to when I logged in with the SYS user (Databasea is connected by default), so I cannot find the locked user. A reason was found to log back in the SYS user and specify the connection to the ORCL instance:

Locate the locked user and unlock the user:


Restart the project, the database link is successful!

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.