1. 程式人生 > >oracle資料庫啟動的三個階段

oracle資料庫啟動的三個階段

oracle資料庫啟動的三個階段:nomount,mount,open

          nomount的啟動:需要引數檔案

          mount的啟動:需要控制檔案

          open的啟動:需要所有的資料檔案和日誌檔案,並且保證所有的資料檔案和日誌檔案與控制檔案中記錄的名稱和位置一致。

一般啟動順序為:nomount->mount->open

    

檢視當前資料庫的狀態:select status from V$instance;

檢視引數檔案的位置:show parameter spfile;

檢視控制檔案的位置:show parameter control;

檢視資料檔案的位置:select file_name from dba_data_files;

啟動資料庫到nomount狀態:SQL>startup nomount;

啟動資料庫到mount狀態:SQL>startup mount;

啟動資料庫到opent狀態:SQL>startup;



改變資料庫狀態到mount: SQL>alter database mount;

改變資料庫狀態到open: SQL>alter database open;