Lock and unlock an Oracle User with Alter command

Alter command for lock and unlock User

Lock the User

ALTER USER username ACCOUNT LOCK;
Example:
ALTER USER scott ACCOUNT LOCK;

Unlock the User

ALTER USER username ACCOUNT UNLOCK;
Example:
ALTER USER SCOTT ACCOUNT UNLOCK;

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.