環境:
使用非日誌記錄方式登陸:sqlplus /nolog
轉而用sys用戶登陸sysdba數據庫:conn sys as sysdba
使用alter,account修改和解鎖: alter user scott identified by 123456 account unlock;
出現ORA-01034: ORACLE not available
解決方法:
使用sys用戶登陸數據庫mytestdb: sqlplus sys/123456@mytestdb as sysdba
使用alter,account修改和解鎖: alter user scott identified by 123456 account unlock;
成功