DG學習筆記(2)_體系結構
DG學習筆記(2)_體系結構
目錄
1 Primary端Log Transport Services各個程式的作用
2 Standby 端Log Apply Services的各個程式的作用
1 Primary端Log Transport Services各個程式的作用
1.1 LGWR
LGWR collects transaction redo and updates the online redo logs. In synchronous mode it ships redo information directly to the RFS process on the standby database and waits for a confirmation before proceeding. In asynchronous mode, it ships the redo information directly as well, but doesn’t wait before proceedimg. (記錄事務變化,傳輸日誌到備庫.什麼時候傳輸? 同步?即事務一旦產生日誌,就立即會傳到備而不用等待歸檔來觸發? The LGWR attribute indicates that redo is transmitted to the destination concurrently as the online redo log is written .)
1.2 ARCn
ARCn, or a SQL session performing an archival operation creates a copy of the online redo logs locally for use in a primary database recovery. The ARCn may also ship the redo stream to the RFS process while simultaneously archiving the online log, this is also responsible for proactively detecting and resolving gaps on all standby databases. (完成歸檔,並在歸檔的同時傳輸日誌,並負責檢測GAP.)
1.3 Fetch archive log Process
(FAL, Physical standby database only): FAL provides a client-server mechanism for resolving gaps. This process is only started when needed and shutdown as soon as it is finished.
The fetch archive log (FAL) client
The FAL client requests the transfer of archived redo log files automatically when it detects a gap in the redo logs received by the standby database.
The fetch archive log (FAL) client is the Oracle Net name of the standby site that is requesting a gap sequence. The initialization parameter for the FAL client is set on the standby site.
The FAL client pulls archived redo log files from the primary site and initiates and requests the transfer of archived redo log files automatically when it detects an archive gap on the standby database.
The FAL client and server are configured using the FAL_CLIENT and FAL_SERVER initialization parameters that are set on the standby location.(The parameters can also be set on the primary database in preparation for a future switchover operation.)
The FAL server typically runs on the primary database and services the FAL requests coming from the FAL client.
Even if you configure the primary database to archive automatically to the standby destination, you can still copy the completed archived redo logs manually if necessary.
即使你透過Log Transport Services配置了自動日誌傳輸的方式,你仍可使用手工傳輸日誌,再在Standby database Register 日誌.
2 Standby 端Log Apply Services的各個程式的作用
2.1 Remote file server (RFS)
RFS process receives redo information from the primary database. For physical standby database only, RFS can optionally write the redo into standby redo logs or directly otherwis archived redo logs.Standby Redo Log必須手動建立. (RFS接收日誌,並將其直接寫到Standby redo Log,再由ARCn將其歸檔到Archive log. 或者直接將其寫到Archive log. )
2.2 Archiver (ARCn) Process
For physical standby database only, the ARCn process archives the standby redo logs to be applied by the MRP.
2.3 Managed recovery process MRP
For physical standby databases only, the MRP applies archived redo log information to the physical standby database. If you start the managed recovery with the SQL statement ALTER DATABASE RECOVER MANAGED STANDBY DATABASE; this foreground session will do the recovery. If you use the optional clause: DISCONNECT [FROM SESSION] then the MRP background process will be started.
If you use Data Guard broker to manage your standbys, the broker will always startup the MRP background process for a physical standby database.(在物理Standby中,應用歸檔.)
2.4 Logical standby process(LSP)
For logical standby database only, the LSP controls the applying archived redo log information to the logical standby database.(在邏輯Standby中,以SQL的方式應用日誌)
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/10248702/viewspace-629920/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle體系結構學習筆記Oracle筆記
- GO 學習筆記->結構體Go筆記結構體
- Solidity語言學習筆記————15、結構體StructSolid筆記結構體Struct
- 資料結構學習筆記資料結構筆記
- 2萬字長文包教包會 JVM 記憶體結構 保姆級學習筆記JVM記憶體筆記
- 結構動力學教材-學習筆記筆記
- C語言學習筆記:結構體與指標C語言筆記結構體指標
- Go語言學習筆記 - PART7 - 結構體Go筆記結構體
- 資料結構學習筆記1資料結構筆記
- 資料結構學習筆記--棧資料結構筆記
- iOS學習筆記44 Swift(四)列舉和結構體iOS筆記Swift結構體
- 我的 golang 學習筆記系列三:結構體和介面Golang筆記結構體
- jQuery 學習筆記:jQuery 程式碼結構jQuery筆記
- 結構化程式設計--學習筆記程式設計筆記
- 資料結構學習筆記-堆排序資料結構筆記排序
- MySQL 讀書筆記 (一) 體系結構MySql筆記
- FFmpeg筆記2——2.2結構體分析之AVFormatContext筆記結構體ORMContext
- JVM學習(一)——記憶體結構JVM記憶體
- struct 結構體 -Go 學習記錄Struct結構體Go
- XV6學習筆記(2) :記憶體管理筆記記憶體
- 資料結構——並查集 學習筆記資料結構並查集筆記
- 2.1資料結構學習筆記--佇列資料結構筆記佇列
- react學習筆記2React筆記
- Vue學習筆記2Vue筆記
- 學習筆記2(下)筆記
- RocketMQ學習筆記 2MQ筆記
- Python學習筆記(2)Python筆記
- Solidity學習筆記-2Solid筆記
- vue學習筆記-2Vue筆記
- hibernate學習筆記(2)筆記
- MySQL學習筆記2MySql筆記
- 結構體學習結構體
- CMake構建學習筆記2-zlib庫的構建筆記
- 作業系統——記憶體管理學習筆記作業系統記憶體筆記
- Linux核心學習—— 1核心體系結構Linux
- 安卓學習筆記---開篇(目錄結構)安卓筆記
- [學習筆記] Splay & Treap 平衡樹 - 資料結構筆記資料結構
- 資料結構學習筆記-佛洛依德演算法資料結構筆記演算法
- OpenXml SDK學習筆記(1):Word的基本結構XML筆記