Log in to pl/sql with the sys user and prompt ORA-01017: invalid username/password; logon denied.
So I thought about changing the sys password first
SQL> alter user sys identified by oracle1;
User altered.
SQL> conn sys/oracle1 as sysdba
ERROR:
ORA-01017: invalid username/password; logon denied
Still not working after modifying the login
Afterwards, the reason may be that the password file is wrong, so check the password file, and the password file does not exist, so the password file is rebuilt, and the connection is successful.
[oracle@train /]$ cd /$ORACLE_HOME/dbs
[oracle@train dbs]$ ls
hc_db01.dat hc_DB01.dat hc_orcl.dat initDB01.ora init.ora initorcl.ora lkDB01 orawdb01 spfiledb01.ora
[oracle@train dbs]$ orapwd file=$ORACLE_HOME/dbs/oraw$ORACLE_SID password=oracle123 entries=5 force=y
[oracle@train dbs]$ ls
hc_db01.dat hc_DB01.dat hc_orcl.dat initDB01.ora init.ora initorcl.ora lkDB01 orapwdb01 orawdb01 spfiledb01.ora
After that, login again is successful.