ORA-28000 user locked to unlock

Source: Internet
Author: User

I. Fault symptom:

SQL> conn system/Oracle
ERROR:
ORA-28000: the account is locked


Warning: You are no longer connected to ORACLE.
SQL>

Ii. Cause Analysis:
Unable to log on because the system is locked

Log on to the operating system using the sys user or the local verification method and log on to the database using the sys role.

2.1 network verification method:
SQL> conn sys/oracle as sysdba
Connected.

SQL> show user;
USER is "SYS"

2.2 local verification method:
[Oracle @ wwl ~] $ Sqlplus/as sysdba

SQL> show user;
USER is "SYS"
SQL>

2.3 view the system user status

SQL> select username, account_status from dba_users where username = 'system ';

USERNAME ACCOUNT_STATUS
------------------------------------------
SYSTEM LOCKED

SQL>

Note: The cause analysis confirms that the system user cannot log on because the system user is locked.

Iii. solution:

Since it is locked, unlock the system user.

SQL> alter user system account unlock;

User altered.

SQL> select username, account_status from dba_users where username = 'system ';

USERNAME ACCOUNT_STATUS
------------------------------------------
SYSTEM OPEN

SQL>

4. Verify whether you can log on
As you can see, after unlocking, the system user can log on normally.

SQL> conn system/oracle
Connected.
SQL> show user;
USER is "SYSTEM"
SQL>

For more information about Oracle, see Oracle topics page http://www.bkjia.com/topicnews.aspx? Tid = 12

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.