首頁 > 資料庫 > Oracle > 主體

oracle資料庫怎麼打開

hzc
發布: 2020-06-08 13:53:09
原創
9759 人瀏覽過

oracle資料庫怎麼打開

關於資料庫的各種啟動和關閉指令一直感覺有些混亂,現整理一下。

一、資料庫的啟動 :

Oracle 的啟動分為三個步驟:分別是啟動實例、載入資料庫 、開啟資料庫。可以依照自己的實際需求來開啟資料庫

語法是startup

1、nomount 模式

SQL> startup nomount
ORACLE instance started.

Total System Global Area  830930944 bytes
Fixed Size                  2257800 bytes
Variable Size             536874104 bytes
Database Buffers          285212672 bytes
Redo Buffers                6586368 bytes
登入後複製

這種啟動方式只建立實例(即建立Oracle實例的各種記憶體結構和服務進程),並不載入資料庫也不會開啟資料檔。

這種模式一般適用於在建立資料庫和控制檔。

2、mount 模式

SQL> startup mount
ORACLE instance started.

Total System Global Area  830930944 bytes
Fixed Size                  2257800 bytes
Variable Size             536874104 bytes
Database Buffers          285212672 bytes
Redo Buffers                6586368 bytes
Database mounted.
登入後複製

這種模式將啟動實例,載入資料庫並保存資料庫的關閉模式

一般用於資料庫維護時,例如:執行資料庫完全復原操作,更改資料庫的歸檔模式等

3、open 模式

SQL> startup
ORACLE instance started.

Total System Global Area  830930944 bytes
Fixed Size                  2257800 bytes
Variable Size             536874104 bytes
Database Buffers          285212672 bytes
Redo Buffers                6586368 bytes
Database mounted.
Database opened.
登入後複製

這種模式就是將啟動實例,載入並開啟資料庫。這是常規的開啟資料庫的方式,只要使用者想要對資料庫進行多種操作,就必須採取這種方式打開,(用open模式開啟資料庫)startup後面不需要加參數的。

4、force 模式

SQL> startup force
ORACLE instance started.

Total System Global Area  830930944 bytes
Fixed Size                  2257800 bytes
Variable Size             536874104 bytes
Database Buffers          285212672 bytes
Redo Buffers                6586368 bytes
Database mounted.
Database opened.
登入後複製

這種模式將終止實例並重新啟動資料庫(open),這種模式具有一定的強制性(例如在其他啟動模式失效的時候可以嘗試這種模式)

推薦教學: 《Oracle教學

以上是oracle資料庫怎麼打開的詳細內容。更多資訊請關注PHP中文網其他相關文章!

相關標籤:
來源:php.cn
本網站聲明
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn
作者最新文章
熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板
關於我們 免責聲明 Sitemap
PHP中文網:公益線上PHP培訓,幫助PHP學習者快速成長!