Oracle資料庫幾種啟動方式及查詢目前狀態

來源:互聯網
上載者:User

標籤:重建   檔案   後台   mount   star   恢複   init   定位   pen   

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)

Oracle資料庫幾種啟動方式及查詢目前狀態

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.