多多色-多人伦交性欧美在线观看-多人伦精品一区二区三区视频-多色视频-免费黄色视屏网站-免费黄色在线

國內最全IT社區平臺 聯系我們 | 收藏本站
阿里云優惠2
您當前位置:首頁 > 數據庫 > 數據庫應用 > How to add a DELAY in applying transactions in GoldenGate?

How to add a DELAY in applying transactions in GoldenGate?

來源:程序員人生   發布時間:2015-03-19 08:38:11 閱讀次數:3381次

有時候生產庫可能出現毛病操作,那末我們使用Goldengate同步過來的數據也將是毛病的,如果目標庫不要求實時性,那末我們可使用延遲參數使目標庫延遲利用。這樣我們就能夠保護毛病操作之前的數據




APPLIES TO:

Oracle GoldenGate - Version 10.4.0.0 and later
Information in this document applies to any platform.

GOAL

How to add a DELAY in the application of transactions when using Oracle GoldenGate?
 

SOLUTION

The following are the options available for delaying the application of transactions on the target.

 
Option 1: ( Recommended )


You could use the DEFERAPPLYINTERVAL parameter to to set an amount of time that Replicat waits before applying captured transactions to the target database.

Default 0 (no delay)


Syntax [DEFERAPPLYINTERVAL <n><unit>]

<n> is a numeric value for the amount of time to
delay. Minimum is set by the EOFDELAY parameter.
Maximum is seven days.

<unit> can be:
S | SEC | SECS | SECOND | SECONDS | MIN | MINS | MINUTE | MINUTES | HOUR | HOURS | DAY | DAYS

This example directs Replicat to wait 2 hours before posting its transactions.

DEFERAPPLYINTERVAL 2HOURS


Option 2:


You can also look at the use of EOFDELAY in the replicat. When the replicat positions to trail EOF, then you could have the replicat wait for 600 seconds or 10 minutes before doing more work. 

This example directs Replicat to wait 600 seconds when the replicate positions to the trail EOF.

EOFDELAY 600


The eofdelay suspends the replicat checking the trail. While DEFERAPPLYINTERVAL causes the replicat to suspend applying the data read from the trail. So former introduces the delay in reading while latter introduces the delay while applying.


for Example:

GGSCI (zbdba2) 1> view param rep1 REPLICAT rep1 ASSUMETARGETDEFS USERID ogg, PASSWORD ogg discardfile ./dirdat/rep1_discard.txt,append,megabytes 5 DDL INCLUDE MAPPED DDLOPTIONS REPORT DBOPTIONS DEFERREFCONST DBOPTIONS LOBWRITESIZE 102400 DEFERAPPLYINTERVAL 2MIN HANDLECOLLISIONS DDLERROR DEFAULT DISCARD RETRYOP MAXRETRIES 5 RETRYDELAY 20 --grouptransops 1 --maxtransops 1 APPLYNOOPUPDATES MAP zbdba.*,TARGET zbdba.*;



生活不易,碼農辛苦
如果您覺得本網站對您的學習有所幫助,可以手機掃描二維碼進行捐贈
程序員人生
------分隔線----------------------------
分享到:
------分隔線----------------------------
關閉
程序員人生
主站蜘蛛池模板: 亚洲三级图 | 在线观看一区二区三区四区 | 最近中文字幕无吗免费高清 | 国内免费视频成人精品 | 伊人久久大香线蕉综合亚洲 | 18jlzz大全| 亚洲伊人成综合人影院小说 | 大bbw另类交hd | 国产一二三区视频 | 日韩精品中文字幕久久 | 欧美人与动人物xxxx9296 | 手机看片地址 | 欧美日韩中文亚洲v在线综合 | 日本不卡免费高清一级视频 | 伊人久久99亚洲精品久久频 | 404毛片| 亚洲视频在线一区二区三区 | 久久性妇女精品免费 | 国产亚洲精品久久久久久久网站 | 亚洲成a人片毛片在线 | 免费jizz在线播放 | 欧美日韩资源 | 欧美性网站 | 成人99国产精品一级毛片 | 中国国产一国产一级毛片视频 | 国产女乱淫真高清免费视频 | 波多野结衣免费免费视频一区 | 国产在线不卡一区 | 日韩欧美一及在线播放 | 久久性妇女精品免费 | 亚洲日本欧美在线 | 国产操女 | 色综合网站在线 | 欧美性生活视频 | 欧美一级性 | 亚洲天堂手机版 | 吃奶跟添下面特舒服 | 欧美日韩国产一区二区三区欧 | 日本久久综合 | 久久久久在线观看 | 男女视频免费 |