一. ORACLE 執行個體 = 背景程序 + 程序所使用的記憶體 (SGA) 執行個體是一個臨時性的東西,你也可以認為它代表了資料庫某一時刻的狀态! SGA(System Global Area) = Shared pool + Block Buffer Cache + Redo Buffer + Java Pool + Large Pool + Stream pool Shared pool=Library Cache + Data Dictionary Cache Block Buffer Cache =Default pool + Keep pool + Recycle pool Background Process: PMON(Process Monitor) SMON(System Monitor) CKPT(Checkpoint Process)
LGWR(Log Writer)
DBWR(Database Block Writer)
ARCn(ArchiveProcess) RECO(Distributed Database Recovery) 二.資料庫 = 重做檔案 + 控制檔案 + 資料檔案 + 臨時檔案 資料庫是永久的,是一個檔案的集合。 ORACLE 執行個體和資料庫之間的關系 1. 臨時性和永久性 2. 執行個體可以在沒有資料檔案的情況下單獨啟動 startup nomount , 不過通常沒什麼意義 3. 一個執行個體在其生存期内隻能裝載 (alter database mount) 和打開 (alter database open) 一個資料庫 4. 一個資料庫可被許多執行個體同時裝載和打開 ( 即 RAC) , RAC 環境中執行個體的作用能夠得到充分的展現 !