How To Setup GoldenGate To Maintain A Heartbeat With The Database [ID 965415.1]


How To Setup GoldenGate To Maintain A Heartbeat With The Database [ID 965415.1]

修改时间 31-MAY-2011 类型 HOWTO 状态 PUBLISHED

In this Document
Solution


Applies to:

Oracle GoldenGate - Version: 4.0.0 and later [Release: 4.0.0 and later ]
Information in this document applies to any platform.

Solution

PROBLEM
Some user accounts in the database are setup with session timeout values for idle processes. If the GoldenGate process is connected to a database that exceeds the set timeout, the process will be terminated.

SOLUTION SUMMARY
Use SQLEXEC at the root level to execute a query based on an interval of time. This technique will prevent the OGG process from becoming idle.

EXPLANATION OF SOLUTION
The method used for setting this up is a SQLEXEC statement in the parameter file. The SQLEXEC for the heartbeat can be put in the extract or replicat parameter file anywhere, but with the map statement.

Syntax for Oracle: SQLEXEC "select 'x' from dual" EVERY 30 SECONDS
Valid intervals are: SECONDS, MINUTES, HOURS, DAYS.

================================================================================

Sample Replicat: (SQL Server)

================================================================================

REPLICAT REPCUST

discardfile c:ggsdiroutrepcust.dsc, append, megabytes 10

sourcedefs c:ggsdirdefsource.def

TARGETDB GGSDB, USERID ggsuser, PASSWORD *****

SQLEXEC "select 'x' " EVERY 2 MINUTES

map source.customer, target target.customer;



=================================================================

Sample Extract: (ORACLE)

=================================================================



EXTRACT EXTCUST

USERID ggsuser, PASSWORD *****



SQLEXEC "select 'x' from dual" EVERY 2 MINUTES



RMTHOST houston, MGRPORT 7809
RMTTRAIL C:ggsdirdatet



TABLE source.CUSTOMER;


显示相关信息相关的


产品
  • Middleware > Data Integration > GoldenGate > Oracle GoldenGate
关键字
GOLDENGATE; HEARTBEAT; IDLE PROCESSES; TIME OUT

返回页首返回页首

[@more@]

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/161195/viewspace-1051579/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/161195/viewspace-1051579/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值