Site icon Database Tutorials

Why Oracle User is Locked, Who is Locking Oracle User

 

If an oracle user is locked, it is usually caused by an incorrect password entry. In some cases, even if you remove the user’s lock with the help of the following script it will lock again after a while.

This is usually due to an application server that attempts to log in with the old password.

You can use the following script to find out why the Oracle user is locked.

You can also use the following script to find out when User is locked.

If the RETURNCODE value in the query is 1017, it means an incorrect password entry. Some important RETURNCODE values are as follows.

RETURNCODE = 0 – Indicates successful login.
RETURNCODE = 1017 – Indicates incorrect password entry.
RETURNCODE = 28000 – Indicates that the user is locked.
RETURNCODE = 28001 – Indicates that the user is expired.

Exit mobile version