Oracle 11g the account is locked

Source: Internet
Author: User
Oracle 11g the account is locked

Walk_hai's blog: http://blog.csdn.net/walk_hai

(I am using Oracle 11g R1)

The ora-28000 of the account is locked was prompted today when oracle was turned on to log on with a system user. The user is locked.

The reason why the user is locked may be the following.

1. Failed to log on multiple times (the password may be incorrect );

2. the user is manually locked by the Administrator;

3. the user password expires, the password is not modified on time, and so on.

The following is my solution

Bytes ------------------------------------------------------------------------------------------------------------------
SQL> connect sys/sys as sysdba;
Connected.
SQL> alter user system account unlock;

The user has changed.

SQL> commit;

Submitted.

SQL> conn system/OK // enter the new password, and then OK
Password Changed
Connected.
SQL> conn system/OK
Connected.
SQL> show user;
User is "system"

Bytes --------------------------------------------------------------------------------------------------------------------

Account locking method
1. SQL> alter user system account lock;
User altered.
Change account password
1. SQL> alter user system identified by sysPasswd;

Experience in Oracle databases:

1. Input sqlplus under the DOS command to open the SQL plus that comes with Oracle and the logon prompt appears,

If sqlplus/nolog is entered, the logon prompt is not displayed after SQL plus is enabled;

2. Enter Conn in SQL plus to connect to the database. One of the formats is:

SQL> conn username/password, for example, Conn Scott/Tiger

3. Code for locking and unlocking users in Oracle:

SQL> alter User Username account lock; (LOCK)

SQL> alter User Username account unlock; (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.