The Dataguard operation principle is very simple: transfer logs, application logs. Represents the basic architecture of DG
650) this.width=650; "Title=" DG. PNG "alt=" wkiol1w-gytxgwmtaafzjosfyge543.jpg "src=" http://s3.51cto.com/wyfs02/M00/70/C6/ Wkiol1w-gytxgwmtaafzjosfyge543.jpg "/>
The Log Transport service uploads the log data generated by the main library to the slave library.
The app service validates the log data and updates the data files from the library.
The write process of the primary database updates the data file and does not depend on the Dataguard schema.
When the network or from the library fails to recover, the DG automatically retransmit the log data that has been archived by the main library.
Redo Transport Services coordinates log transfers between master and slave libraries. When the main library LGWR writes logs, the log Network Server (LNS) program reads logs data from the log buffer cache and transmits data to the slave library via Oracle Net services. Incoming logs are received from remote File Server (RFS) on the library. RFS writes the received log to the standby redo log file (SRL). In a multi-library environment, the main library enables a separate LNS process for each slave library to transfer log data.
Using the LNS process, Dataguard supports two types of log transfers: synchronous, asynchronous.
Synchronous log transfer Synchronous Redo Transport
Synchronous Transport (SYNC) is also known as "0 data loss". A commit operation on the main library is considered successful only if the LNS confirms that the log is transferred to the library and has been written to disk.
Data Guard Log Transport Process schema
650) this.width=650; "style=" width:695px;height:323px; "title=" Data Guard Redo Transport process architecture. PNG "alt=" wkiol1w-iy3rivjiaaevniycfny310.jpg "src=" http://s3.51cto.com/wyfs02/M02/70/C6/ Wkiol1w-iy3rivjiaaevniycfny310.jpg "width=" height= "/>
SYNC Redo Transport Architecture
650) this.width=650; "title=" SYNC Redo Transport architecture. PNG "alt=" wkiom1w-iyibuzlmaafbw46vpsq757.jpg "src=" http://s3.51cto.com/wyfs02/M01/70/C9/ Wkiom1w-iyibuzlmaafbw46vpsq757.jpg "/>
The user commits a transaction and will generate some redo record in redo buffer. LGWR reads the Redo record from log buffer and writes it to the online Redo Logs, while awaiting confirmation from the LNS process.
LNS reads the same redo record from redo buffer and transmits it to the slave library via ONS. RFS receives the log and writes it to standby Redo Logs.
When the RFS log succeeds, a confirmation signal is transmitted to the LNS,LNS on the main library informing LGWR of this acknowledgment. At this time LGWR can feedback to the user to submit the successful information.
This article is from the "Ding Dong" blog, please be sure to keep this source http://lqding.blog.51cto.com/9123978/1681073
Oracle Learning Dataguard (i) DG Architecture