the account is locked

Problem Description

This error occurs because Oracle has entered the wrong password many times or the installation has not modified something.

solution

1. Win+R to open the command line and enter: sqlplus, or use sqlplus / as sysdba; no password is required.

Use the system or sys account to log in, and the password is the administrative password entered during Oracle installation.
insert image description here

2. Suppose the account we want to unlock is scott

alter user scott account unlock

insert image description here

3. Change the password to avoid being locked again

alter user username identified by password

Among them, username is the user name (such as: scott), and password is the new password.
By the way, the solution for forgetting to put a semicolon: just put a semicolon in the next line, as shown in the figure
insert image description here

4. Restart the service or client (depending on whether you are a desktop version or a server version), it is finished

Guess you like

Origin blog.csdn.net/GodGump/article/details/127898023