Resolution ORA-28000: the account is locked, ora-28000locked

Source: Internet
Author: User

Resolution ORA-28000: the account is locked, ora-28000locked



In oracle, if the account fails to log on for ten consecutive attempts, the account will be locked ). When you log on with a locked account, the system reports an error: ORA-28000: the account is locked. This article describes how to solve the secondary error.

1. Log On with the system or sys account. Be sure to log on as an administrator. Find the default Sytem and sys passwords online. This document uses the sys account as an example. The default password of sys is change_on_install.

2. Use commands to unlock users. Command: alteruser usernameaccountunlock, where username is the locked user name.

3. Reset the user password. Command: alter user username identified by password; username is the user name and password is the new password.

4. Use your account to log on again. If all commands are successfully executed, you should be able to log on to the system normally.


JavasqlSQLException: ORA-28000: the account is locked? Solution

Use a user with DBA permission or a local conn/as sysdba login to unlock
Command: alter user lxy account unlock;
Ora-28000 the account is locked, this occurs because the user is locked,
Generally, this problem occurs because the number of connections to the database is greater than the configured number of connections. follow the steps below to solve the problem.
1. Program connection is greater than the number of oracle connections;
Handling Method: reset the number of connections: Use the Administrator to execute the following script,
Alter profile DEFAULT limit FAILED_LOGIN_ATTEMPTS 10; -- set the number of connections
Alter profile DEFAULT limit FAILED_LOGIN_ATTEMPTS UNLIMITED; -- UNLIMITED connections
2. The program connection is larger than the number of connections configured in the connection pool;
Solution: Increase the number of connections in the connection pool;
3. Release the user lock:
Run alter user Username account unlock as the super administrator;

Error: ORA-28000 the account is locked, why? Solution?

Cool, I don't think you are doing oracle Database stuff too. I don't know what to write in English. It's a dead lock! Use pl/SQL to log on as a DBA using the system user and run the following code to alter user username account unlock;
 

Related Article

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.