啟動資料庫報 ORA-01219: database not open: queries allowed on fixed tables/views only。原因:**直接在 OS 層刪除資料檔 (.dbf)**,導致控制檔記錄與物理檔案不一致,實例無法正常 OPEN。
ALTER DATABASE OPEN; -- 錯誤訊息會顯示缺失檔案完整路徑,例如: -- ORA-01157: cannot identify/lock data file 4 - see DBWR trace file -- ORA-01110: data file 4: '/u01/app/oracle/oradata/orcl/users01.dbf'
ALTER DATABASE OPEN;
CONN app_user/password -- Connected.