1

I am using the following command to login to the DB server: sqlplus admin/admin@tstdb1

It was working fine till last night.

But now it is giving the error saying ERROR: ORA-28000: the account is locked

How can I solve this?

Thanks in advance.. :)

PaDi
  • 255
  • 1
  • 5
  • 16

3 Answers3

2

Login to the database as system user

C:>sqlplus sys/sys@tstdb1 as sysdba

and execute the following command in SQL prompt

ALTER USER user_name IDENTIFIED BY password ACCOUNT UNLOCK;
0

You can try this to unlock!

1- Open SQL Plus

2- Login as SYSDBA

SQL> conn /as sysdba

3- Unlock the account

SQL> ALTER USER username ACCOUNT UNLOCK;

To lock the account

SQL> ALTER USER username ACCOUNT LOCK;
Digital Alchemist
  • 2,324
  • 1
  • 15
  • 17
0

Following statement may solve your problem, but make sure to execute this using some admin account.

ALTER USER USER_NAME 
    IDENTIFIED BY PASSWORD_HERE;

ALTER USER USER_NAME ACCOUNT UNLOCK;

Replace USER_NAME and PASSWORD_HERE with your desired values.