1. 程式人生 > >Oracle sqlplus修改scott密碼和解鎖ORA-01034錯誤 解決辦法

Oracle sqlplus修改scott密碼和解鎖ORA-01034錯誤 解決辦法

環境:

  1. 使用非日誌記錄方式登陸:sqlplus /nolog

  2. 轉而用sys使用者登陸sysdba資料庫:conn sys as sysdba

  3. 使用alter,account修改和解鎖: alter user scott identified by 123456 account unlock;

出現ORA-01034: ORACLE not available

image.png


解決方法:

  1. 使用sys使用者登陸資料庫mytestdb: sqlplus sys/[email protected] as sysdba

  2. 使用alter,account修改和解鎖: alter user scott identified by 123456 account unlock;

成功

image.png