Oracle 11g筆記 資料庫關閉

2021-07-11 12:12:55 字數 791 閱讀 5089

資料庫關閉

一、原理

1、關閉資料庫(close the database)

oracle將sga中的資料寫到資料檔案和聯機日誌檔案中,然後oracle關閉所有的資料檔案和聯機日誌檔案。

這時資料庫已不可訪問,但控制檔案在開啟狀態。

2、解除安裝資料庫(unmount the database)

資料庫完成後,oracle將分離資料庫和例項之間的聯絡,即「解除安裝資料庫」或叫「unmount資料庫」

這時例項還存在於記憶體中,但控制檔案已關閉

3、關閉例項(shut down the instance)

oracle將從記憶體中移出sga和終止正在執行的後台程序(backgroud processes)

這時資料庫關閉已完成

二、關閉方式

1、sql>shutdown normal或shutdown:等所有使用者自動退出後,才能關閉資料庫。不推薦此方法,有可能資料庫關閉不了。

還原資料庫 oracle 11g

1.需要檔案 2.需要知道表空間 nnc data01 和臨時表空間 nnc index01 和資料庫使用者 nc63train 3.開始,第一步,建立兩個表空間 開啟sql plus,連線資料庫,執行語句 4.第二步,建立資料庫使用者 createuser nc63train identified...

解除安裝Oracle 11g資料庫

完全解除安裝oracle11g步驟 1 開始 設定 控制面板 管理工具 服務 停止所有 oracle 服務。2 開始 程式 oracle orahome81 oracle installation products universal installer,單擊 解除安裝產品 全部展開 選中除 ora...

Oracle11 g資料庫過期

公司使用的oracle11 g 32位 資料庫出現有效期過期問題,解決此問題可以使用下面的方法 1 查詢密碼有效期system登入 sql select from dba profiles where profile default and resource name password life t...