I. Fault Phenomenon: SQLgt; connsystemOracleERROR: ORA-28000: theaccountislockedWarning: Youarenolongerconnectedto
I. Fault symptom: SQLgt; conn system/OracleERROR: ORA-28000: the account is locked Warning: You are no longer connected
I. Fault symptom:
SQL> conn system/Oracle
ERROR:
ORA-28000: the account is locked
Warning: You are no longer connected to ORACLE.
SQL>
Ii. Cause Analysis:
Unable to log on because the system is locked
Log on to the operating system using the sys user or the local verification method and log on to the database using the sys role.
2.1 network verification method:
SQL> conn sys/oracle as sysdba
Connected.
SQL> show user;
USER is "SYS"
2.2 local verification method:
[Oracle @ wwl ~] $ Sqlplus/as sysdba
SQL> show user;
USER is "SYS"
SQL>
2.3 view the system user status
SQL> select username, account_status from dba_users where username = 'system ';
USERNAME ACCOUNT_STATUS
------------------------------------------
SYSTEM LOCKED
SQL>
Note: The cause analysis confirms that the system user cannot log on because the system user is locked.
Iii. solution:
Since it is locked, unlock the system user.
SQL> alter user system account unlock;
User altered.
SQL> select username, account_status from dba_users where username = 'system ';
USERNAME ACCOUNT_STATUS
------------------------------------------
SYSTEM OPEN
SQL>
4. Verify whether you can log on
As you can see, after unlocking, the system user can log on normally.
SQL> conn system/oracle
Connected.
SQL> show user;
USER is "SYSTEM"
SQL>