How to unlock a database account (user)

Source: Internet
Author: User
Tags sqlplus

--1
ALTER USER username account UNLOCK;

--2
Sqlplus/as SYSDBA
Alter user SYSTEM account unlock

--3
The default Scott user is locked out and can be logged on by unlocking it first.
Use the following statement to unlock Scott:alter user Scott account unlock;
You may be asked to change your password after unlocking: Alter user Scott identified by Tiger;
Re-login: Sqlplus Scott/tiger will be able to log in
Oracle locks and unlocks the user's command sql> conn/as SYSDBA is connected.
When the Scott user does not set the Tieger default password,
The method of locking the user is not logged on: sql> alter user test account lock; The user has changed.
-------test user logged into the database and failed.
C:\>sqlplus test/test error:ora-28000:the account is locked
Method of unlocking: sql> conn/as sysdba sql> alter user test account unlock; The user has changed.

From: http://blog.sina.com.cn/s/blog_6438b0e50100nrvp.html

How to unlock a database account (user)

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.