DG學習筆記(6)_LOG_ARCHIVE_DEST_N引數的各個屬性
DG學習筆記(6)_LOG_ARCHIVE_DEST_N引數的各個屬性
目錄
1 ARCH or LGWR
2 SYNC OR ASYNC
3 AFFIRM OR NOAFFIRM
4 DELAY,NODELAY
5 ALTERNATE, NOALTERNATE
6 DEPENDENCY, NODEPENDENCY
7 MAX_FAILURE, NOMAX_FAILURE
8 NET_TIMEOUT, NOTNET_TIMEOUT
9 REOPEN, NOREOPEN
10 TEMPLATE, NOTEMPLATE
1 ARCH or LGWR
specify that either the archiver or log writer process is responsible for transmitting redo to the standby destination. ARCH is the default. The LGWR attribute indicates that redo is transmitted to the destination oncurrently as the online redo log is written.
Choosing the ARCH attribute indicates that one of the archiver processes (ARCn) will create archived redo logs on the primary database and also transmit redo logs for archiving at specified destinations. This is the default setting.
Choosing the LGWR attribute indicates that the log writer process (LGWR) will concurrently create the archived redo logs as the online redo log is populated. Depending on the configuration, this may require the log writer process to also transmit redo logs to remote archival destinations.
(填充線上日誌的同時就生成歸檔,並傳到遠端)
When you set the LOG_ARCHIVE_DEST_n parameter to specify LGWR instead of ARCH, the behavior. is as follows. Instead of waiting for the online redo log to switch at the primary database and then let the archiver process write the entire archived redo log at the standby destination all at once, the log writer process creates a new redo log at the standby site that reflects the log sequence number (and size) of the current online redo log of the primary database. Then, as redo is generated at the primary database, it is also propagated to the standby database redo log file. Based on whether you specify the SYNC or ASYNC network transmission mode, the propagation will either be immediate or asynchronous.(指定LGWR時的工作原理)
2 SYNC OR ASYNC
Specify that network I/O operations are to be performed synchronously or asynchronously when using the LGWR. SYNC is the default.
SYNC:
When you specify the LGWR and SYNC attributes to transmit redo logs to multiple standby destinations, you can specify either the SYNC=PARALLEL or SYNC=NOPARALLEL option for each destination:
SYNC=PARALLEL 並行寫多個STANDBY SITE.同時寫
SYNC=NOPARALLEL 序列寫多個STANDBY SITE.一個一個寫
ASYNC:
ASYNC=blocks: You can specify a block count to determine the size of the SGA network buffer to be used. Block counts from 0 to 20,480 are allowed.(指定區域來臨時快取資料)
3 AFFIRM OR NOAFFIRM
specify whether log archiving disk write I/O operations on the standby database are to be performed synchronously or asynchronously. By default, disk write operations are performed asynchronously.(指定遠端的I/O寫操作是否是同步)
The SYNC attribute indicates that synchronous network transmission is necessary, and the AFFIRM attribute indicates that synchronous archived redo log disk write I/O
operations are necessary. Together, these attributes ensure that primary database modifications are available on the standby database.(日誌傳輸與IO操作是分離的,都必須考慮同步還是非同步的問題)
4 DELAY,NODELAY 延遲應用日誌 Set on Standby database
DELAY – number of minutes to delay application or redo, default is 30 Minutes;
NODELAY – redo applied as received, this is the default behavior.
5 ALTERNATE, NOALTERNATE
A destination can have a maximum of one alternate destination specified.(指定替代的路徑)
If destination fails and the REOPEN attribute is specified with a value of zero, or NOREOPEN is specified, the Oracle database server attempts to transmit the redo to the alternate destination on the next log switch. (下一次日誌切換時才嘗試傳輸到備用的路徑.)
Requires NOREOPEN or MAX_FAILURE (同時要求指定這兩個屬性)
Enabled with LOG_ARCHIVE_DEST_STATE_N=ALTERNATE
Default is NOALTERNATE
Example:
log_archive_dest_3=’SERVICE=stby1_path1 NOREOPEN
ALTERNATE=LOG_ARCHIVE_DEST_4’
log_archive_dest_4=’SERVICE=stby1_path2 NOREOPEN OPTIONAL’
log_archive_dest_state_3=ENABLE
log_archive_dest_state_4=ALTERNATE
6 DEPENDENCY, NODEPENDENCY 指定依賴性
Defines the destination as being dependent on the success of the other specified destination. Default is NODEPENDENCY
Example:
log_archive_dest_2='SERVICE=o9i2 LGWR SYNC AFFIRM‘
log_archive_dest_3='SERVICE=o9i1 ARCH DEPENDENCY=LOG_ARCHIVE_DEST_2’
7 MAX_FAILURE, NOMAX_FAILURE: 指定最大的失敗嘗試次數
Number of times log transport services attempts to reestablish communication.
Requires REOPEN
No Default count
NOMAX_FAILURE is default. Same as MAX_FAILURE=0
You can view the failure count in the FAILURE_COUNT column of the V$ARCHIVE_DEST fixed view. The related column REOPEN_SECS identifies the REOPEN attribute value
Example:
log_archive_dest_3='SERVICE=o9i1 LGWR MAX_FAILURE=30 REOPEN’
8 NET_TIMEOUT, NOTNET_TIMEOUT
指定網路超時的時間間隔.一旦出現超時,則FAILURE COUNT + +
9 REOPEN, NOREOPEN
指定重試間隔: Minimum number of seconds to wait before retrying a failed destination at log switch
Default is REOPEN with 300 seconds
REOPEN applies to all errors, not just connection failures. These errors include, but are not limited to, network failures, disk errors, and quota exceptions. (FAILURE的定義)
10 TEMPLATE, NOTEMPLATE
指定每個路徑儲存日誌的格式, 類似LOG_ARCHIVE_FORMAT.
Overrides standby side parameters. Therefore this cannot be used in maximum protection. The template attribute should only be used for dependent destination.
Example:
log_archive_dest_3='SERVICE=o9i1 . . . TEMPLATE=/fs2/arc/o9i60_%t_%s.dbf’
log_archive_dest_4='SERVICE=o9iLog . . . DEPENDENCY=LOG_ARCHIVE_DEST_3 NOREGISTER TEMPLATE=/fs2/arc/o9i60_%t_%s.dbf’
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/10248702/viewspace-629923/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 17 LOG_ARCHIVE_DEST_n 引數屬性Hive
- iOS 屬性學習筆記iOS筆記
- Oracle Data Guard LOG_ARCHIVE_DEST_n引數的可選屬性OracleHive
- LOG_ARCHIVE_DEST_n引數屬性——DATA GUARD概念和管理Hive
- JavaScript中的物件學習筆記(屬性操作)JavaScript物件筆記
- LOG_ARCHIVE_DEST_n 中的各屬性 (包括valid_for等)Hive
- Vue學習筆記(六):監視屬性Vue筆記
- iOS類新增方法、屬性學習筆記iOS筆記
- HTML5 學習筆記 表單屬性HTML筆記
- Swift學習筆記(三十三)——常量引數,變數引數和inout引數Swift筆記變數
- ES6語法學習筆記之函式預設引數筆記函式
- Bootstrap Table 學習筆記之列引數(一)boot筆記
- GoldenGate學習筆記(11)_常用引數Go筆記
- C#學習筆記-欄位、屬性、索引器C#筆記索引
- DG學習筆記(5)_Standby Redo Log筆記
- DG學習筆記(7)_保護模式筆記模式
- DG學習筆記(8)_Switchover and Failover筆記AI
- DG學習筆記(11)_Log Transport Services筆記
- Solidity語言學習筆記————6、全域性變數風格指南Solid筆記變數
- angular學習筆記(四)- input元素的ng-model屬性Angular筆記
- Pytest學習筆記8-引數化筆記
- Swift學習筆記(三十二)——可變引數Swift筆記
- log_archive_dest_n引數中reopen、max_failure、net_timeout三個屬性的組合效果測試HiveAI
- PHP 手冊 (類與物件) 學習筆記二:屬性PHP物件筆記
- Swift學習筆記第六篇(類,屬性,方法)Swift筆記
- java學習筆記6Java筆記
- git學習筆記6Git筆記
- CCNA學習筆記6筆記
- DG學習筆記(1)_入門介紹筆記
- DG學習筆記(2)_體系結構筆記
- DG學習筆記(9)_備份與RAC筆記
- DG學習筆記(12)_相關檢視筆記
- ES6學習筆記(一)【變數,字串】筆記變數字串
- Swift學習筆記(三十一)——引數的預設值Swift筆記
- 【轉】Oracle學習筆記:INITRANS和MAXTRANS引數的作用Oracle筆記
- ES6 筆記 Rest 引數和 預設引數筆記REST
- iOS學習筆記1(結合專案)---oc的@property屬性iOS筆記
- ES6的學習筆記筆記