1. 程式人生 > >Oracle 幾種啟動方式 & 查詢啟動狀態

Oracle 幾種啟動方式 & 查詢啟動狀態

Oracle資料庫幾種啟動方式

1、startup nomount;

  非安裝啟動,這種方式下啟動可執行:重建控制檔案、重建資料庫,讀取init.ora檔案,啟動instance,即啟動SGA和後臺程序,這種啟動只需要init.ora檔案。

2、startup mount (dbname);

  安裝啟動,這種方式啟動下可執行:資料庫日誌歸檔、資料庫介質恢復、使資料檔案聯機或離線、重新定位資料檔案、重做日誌檔案。

  先執行“nomount”,然後開啟控制檔案,確認資料檔案和聯機日誌檔案的位置,但此時不對資料檔案和日誌檔案進行校驗檢查。

3、startup open (dbname);

  先執行“nomount”,然後執行“mount”,再開啟包括Redo log檔案在內的所有資料庫檔案,這種方式下可訪問資料庫中的資料。

4、startup 等於以下三個命令

  startup nomount;

  alter database mount;

  alter database open;

檢視oracle 啟動狀態

SQL> select status from v$instance; (showdown | nomount | mount | open)