【ORACLE CONCEPT】控制檔案
控制檔案(control file)中包含了其所屬資料庫的資訊,例項(instance)在啟動,及正常工作期間都需要存取這些資訊。控制檔案的內容只能由Oracle修改,資料庫管理員或使用者都不應編輯控制檔案。
控制檔案(control file)中主要包含以下內容:- 資料庫名(database name)
- 資料庫建立時的時間戳(timestamp)
- 屬於此資料庫的資料檔案(datafile)及重做日誌檔案(redo log file)的名稱與儲存位置
- 表空間(tablespace)資訊
- 離線(offline)的資料檔案
- 日誌歷史資訊
- 歸檔日誌(archived log)資訊
- 備份集(backup set)與備份塊(backup piece)資訊
- 資料檔案與重做日誌的備份資訊
- 資料檔案複製資訊
- 當前的日誌序列號(log sequence number)
- 檢查點(checkpoint)資訊
資料庫名(database name)和資料庫建立時間戳(timestamp)都來源於資料庫建立過程。資料庫名既可以來自 DB_NAME 初始化引數中的設定值,也可以來自 CREATE DATABASE 語句中的指定值。
- Oracle可以籍此在資料庫啟動(startup)時識別開啟的資料檔案和重做日誌檔案
- Oracle可以籍此在恢復資料庫時識別當前可用及需要恢復的檔案
因此,使用者每次更改資料庫的物理結構後(使用 ALTER DATABASE 語句),一定要及時備份控制檔案(control file)。
Overview of Control Files
The database control file is a small binary file necessary for the database to start and operate successfully. A control file is updated continuously by Oracle during database use, so it must be available for writing whenever the database is open. If for some reason the control file is not accessible, then the database cannot function properly.
Each control file is associated with only one Oracle database.
Control File Contents
A control file contains information about the associated database that is required for access by an instance, both at startup and during normal operation. Control file information can be modified only by Oracle; no database administrator or user can edit a control file.
Among other things, a control file contains information such as:
The database name
The timestamp of database creation
The names and locations of associated datafiles and redo log files
Tablespace information
Datafile offline ranges
The log history
Archived log information
Backup set and backup piece information
Backup datafile and redo log information
Datafile copy information
The current log sequence number
Checkpoint information
The database name and timestamp originate at database creation. The database name is taken from either the name specified by the DB_NAME initialization parameter or the name used in the CREATE DATABASE statement.
Each time that a datafile or a redo log file is added to, renamed in, or dropped from the database, the control file is updated to reflect this physical structure change. These changes are recorded so that:
Oracle can identify the datafiles and redo log files to open during database startup
Oracle can identify files that are required or available in case database recovery is necessary
Therefore, if you make a change to the physical structure of your database (using ALTER DATABASE statements), then you should immediately make a backup of your control file.
Control files also record information about checkpoints. Every three seconds, the checkpoint process (CKPT) records information in the control file about the checkpoint position in the redo log. This information is used during database recovery to tell Oracle that all redo entries recorded before this point in the redo log group are not necessary for database recovery; they were already written to the datafiles.
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/15747463/viewspace-756553/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle 控制檔案Oracle
- Oracle重建控制檔案Oracle
- ORACLE 新增控制檔案Oracle
- ORACLE控制檔案管理Oracle
- oracle 重建控制檔案Oracle
- Oracle 控制檔案的重建Oracle
- Oracle控制檔案基礎Oracle
- oracle 關於--控制檔案Oracle
- 增加oracle的控制檔案Oracle
- oracle sqlldr控制檔案模板OracleSQL
- Oracle 控制檔案內容Oracle
- oracle控制檔案及引數檔案問題Oracle
- Oracle 控制檔案(CONTROLFILE)Oracle
- 關於oracle的控制檔案Oracle
- ORACLE控制檔案的重建 (轉)Oracle
- 【控制檔案】映象控制檔案
- oracle中移動控制檔案、資料檔案、日誌檔案Oracle
- oracle 11g 新增控制檔案Oracle
- oracle控制檔案轉儲說明Oracle
- 重建Oracle資料庫控制檔案Oracle資料庫
- Oracle 控制檔案(CONTROLFILE) -- <2>Oracle
- Oracle 控制檔案(CONTROLFILE)- <1>Oracle
- 詳述Oracle 多路複用的控制檔案——增加一個控制檔案副本Oracle
- Oracle 11g重建控制檔案——如何獲取建立控制檔案指令碼Oracle指令碼
- oracle10g_備份控制檔案_得到重建控制檔案的指令碼Oracle指令碼
- oracle之 利用 controlfile trace檔案重建控制檔案Oracle
- Oracle 11g重建控制檔案——控制檔案全部丟失,從零開始Oracle
- 在Oracle中移動資料檔案、控制檔案和日誌檔案Oracle
- ORACLE 控制檔案(Control Files)概述Oracle
- Oracle 控制檔案損壞解決方案Oracle
- oracle控制檔案複製、移動方式Oracle
- Oracle 11g 備份控制檔案Oracle
- Oracle單例項+ASM新增控制檔案Oracle單例ASM
- oracle 控制檔案的修復小結Oracle
- Oracle控制檔案相關的其他(五)Oracle
- oracle 體系結構-控制檔案(二)Oracle
- Oracle 體系結構-控制檔案(一)Oracle
- Oracle 增加控制檔案遇到的問題Oracle