TRANSPORT: Data Guard Protection Modes [ID 239100.1] | |||||
|
|||||
修改时间 19-APR-2011 类型 REFERENCE 状态 PUBLISHED |
In this Document
Purpose
Scope
TRANSPORT: Data Guard Protection Modes
MAXIMUM PROTECTION
MAXIMUM AVAILABILITY
MAXIMUM PERFORMANCE
HOW TO CHANGE THE PROTECTION MODE:
References
A Data Guard configuration always runs in one of three data protection modes:
All three modes provide a high degree of data protection, but they differ in terms of the effect that each has on the availability and performance of the primary database. This document attempts to provide clarification on how each work, their requirements, and how to change the protection mode of a Data Guard environment.
This document supplements the information provided in the Data Guard Concepts and Administration guide and is not a replacement.
This document is intended for Oracle Data Guard database administrators that would like to understand more about protection levels.
This protection mode guarantees that no data loss will occur if the primary database fails. To provide this level of protection, the redo data needed to recover each transaction must be written to both the local online redo log and to a standby redo log on at least one standby database before the transaction commits. To ensure that data loss cannot occur, the primary database will shut down if a fault prevents it from writing its redo stream to at least one synchronized standby database.
To participate in MAXIMUM PROTECTION the following requirements must be met:
This protection mode provides the highest level of data protection that is possible without affecting the availability of the primary database. Like maximum protection mode, transactions do not commit until all redo data needed to recover those transactions has been written to the online redo log and to at least one synchronized standby database. Unlike maximum protection mode, the primary database will not shut down if a fault prevents it from writing its redo stream to a synchronized standby database. Instead, the primary database will operate in RESYNCHRONIZATION until the fault is corrected and all log gaps have been resolved. When all log gaps have been resolved, the primary database automatically resumes operating in maximum availability mode.
This mode ensures that no data loss will occur if the primary database fails, but only if a second fault does not prevent a complete set of redo data from being sent from the primary database to at least one standby database.
To participate in MAXIMUM AVAILABILITY the following requirements must be met:
This protection mode provides the highest level of data protection that is possible without affecting the performance of the primary database. This is accomplished by allowing a transaction to commit as soon as the redo data needed to recover that transaction is written to the local redo log. The primary database's redo data stream is also written to at least one standby database, but that redo stream is written asynchronously with respect to the commitment of the transactions that create the redo data.
When network links with sufficient bandwidth and latency are used, this mode provides a level of data protection that approaches that of maximum availability mode with minimal impact on primary database performance.
To participate in maximum performance the following requirements must be met:
When using LGWR to remotely archive in ASYNC mode, the LGWR process does not wait for each network I/O to complete before proceeding. This behavior is made possible by the use of an intermediate process, known as a LGWR network server process (LNS), which performs the actual network I/O and waits for each network I/O to complete. In Oracle9iR2 and 10gR1, each LNS has a user configurable buffer that is used to accept outbound redo data from the LGWR. This is configured by specifying the size in 512 byte blocks on the ASYNC attribute in the archivelog destination parameter. For example ASYNC=2048 indicates a 1Mb buffer. As long as the LNS process is able to empty this buffer faster than the LGWR can fill it, the LGWR will never stall. If the LNS cannot keep up, then the buffer will become full and the LGWR will stall until either sufficient buffer space is freed up by a successful network transmission or a timeout occurs. For further informaton on the buffer, see the Data Guard Concepts and Administration guide regarding LOG_ARCHIVE_DEST_N and the SYNC/ASYNC attributes.
In Oracle10gR2, this buffer is no longer in use as LNS will instead read from the online redo log itself on the primary when ASYNC is defined.
When remotely archiving using the ARCH attribute, redo logs are transmitted to the destination during an archival operation. The background archiver processes (ARCn) or a foreground archival operation serves as the redo log transport service. Using ARCH to remotely archive does not impact the primary database throughput as long as enough redo log groups exist so that the most recently used group can be archived before it must be reopened.
The above can be done via the Data Guard Broker if it is configured, using DGMGRL or the Data Guard GUI. Please see the Broker documentation for instructions.
相关的 产品
|
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/24870090/viewspace-1051564/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/24870090/viewspace-1051564/