Solution to the scott user locked in Oracle_11g, oracle_11gscott

Source: Internet
Author: User

Solution to the scott user locked in Oracle_11g, oracle_11gscott

After installing Oracle10g and creating an oracle database, you can log on to the database using scott to check whether the connection is successful.

Problem:

When you log on with sqlplus scott/tiger in the cmd command, the following message is always prompted: ERROR: ORA-28000: the account is locked.

Solution:

In the cmd command prompt, you can directly log on to oracle and enter the following command:
1. Log On As an administrator

Sqlplus/as sysdba;

2. Run the following command to unlock the scott account:

SQL> alter user scott account unlock;

The user has been changed to complete the unlock operation.

Next, you can set a new password for scott.

3. Modify scott's logon password:

SQL> alter user scott identified by admincss;

The user has been changed. (admincss is the new password)

4. Test whether scott/admincss can log on successfully.

SQL> conn scott/admincss

The connection is displayed.

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.