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.. :)

有帮助吗?

解决方案

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;

其他提示

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;

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top