ORA-16032

今天在將資料移到新硬碟後,重建 Control file,接著移除舊硬碟。
將伺服器關機後再重開機,strartup db 時出現錯誤:

ORA-16032: parameter LOG_ARCHIVE_DEST_1 destination string cannot be translated
ORA-07286: sksagdi: cannot obtain device information.
Linux Error: 2: No such file or directory

訊息很明顯告訴我們 Linux 找不到檔案或目錄,原因是因為我已經將舊硬碟移除,但是設定
檔上依然是舊的路徑。

修改 $ORACLE_HOME/dbs/init.ora 的內容,將 LOG_ARCHIVE_DEST_1 的路徑改為正確新硬碟的路徑。

SQL> startup pfile=?/dbs/initorcl.ora  -->以pfile啟動DB

SQL> create spfile from pfile;  -->啟動成功後,再建立spfile

SQL> shutdown immediate;

SQL> startup;   -->沒有錯誤訊息了

Windows 11安裝時跳過網路連線