基礎資料結構
2.1 控制檔案
控制檔案包含了資料庫中所有其他檔案的狀態資訊。
控制檔案包含了如下幾類資料:
A. 資料庫資訊記錄(一條)
B. 資料檔案記錄(每個資料檔案一條)
C. 線程記錄(每個線程一條。註:每個執行個體一個線程)
D. 記錄檔記錄(每個記錄檔一條)
E. 檔案名稱記錄(每個資料檔案或者記錄檔成員一條)
F. 日誌記錄(每個已經完成的記錄檔一條)
控制檔案的被後面文檔引用到的欄位如下,後面是引用該欄位的章節:
2.1.1 資料庫資訊記錄(控制檔案)
所含欄位:
A. resetlogs timestamp: 8.2
B. resetlogs scn: 8.2
C. enabled thread bitvec: 8.3
D. force archiving scn: 3.8
E. database checkpoint thread(thread record index) : 2.13, 3.10
2.1.3 資料檔案記錄(控制檔案)
A. thread checkpoint structure: 2.12, 3.4, 8.3
B. thread-open flag: 3.9, 3.11, 8.3
C. current log (logfile record index)
D. head and tail (logfile record indices) of list of logfiles in thread: 2.8
2.1.4 記錄檔記錄(控制檔案)
A. log sequence number: 2.7
B. thread number: 8.4
C. next and previous (logfile record indices) of list of logfiles in thread: 2.8
D. count of files in group: 2.8
E. low SCN: 2.7
F. next SCN: 2.7
G. head and tail (filename record indices) of list of filenames in group: 2.8
H. "being cleared" flag: 10.3
I. "archiving not needed" flag: 10.3
2.1.5 檔案名稱記錄(控制檔案)
A. filename
B. filetype
C. next and previous (filename record indices) of list of filenames in group: 2.8
2.1.6 記錄檔記錄(控制檔案)
A. thread number: 2.11
B. log sequence number: 2.11
C. low SCN: 2.11
D. low SCN timestamp: 2.11
E. next SCN: 2.11