5. Configure the globals file (target end)

Source: Internet
Author: User
Mgr processes are the main processes run by goldengate software. They control other processes, such as extract and replicat processes. The configuration of the mgr process is described below. For the global file, we only choose to create it on the target end of Sqlserver. It can be configured with many parameters that affect global operation. Here, we only configure the checkpoint table,

Mgr processes are the main processes run by goldengate software. They control other processes, such as extract and replicat processes. The configuration of the mgr process is described below. For the global file, we only choose to create it on the target end of Sqlserver. It can be configured with many parameters that affect global operation. Here, we only configure the checkpoint table,

Mgr processes are the main processes run by goldengate software. They control other processes, such as extract and replicat processes.

The configuration of the mgr process is described below.

For the global file, we only choose to create it on the target end of Sqlserver. It can be configured with many parameters that affect global operation. Here, we only configure the checkpoint table to ensure that the facts are continuously and orderly restored in sqlserver.

The target end must add a checkpoint table to ensure that the transaction is in a continuous order, in case that the replicate process continues to apply the trail file from where it is no matter whether it is normal or the shutdown is abnormal. This prevents a transaction from being executed multiple times. This table will not be large, and GG will clear old records without affecting performance.

# Oracle as the target end

Cd $ GGH &./ggsci

Edit param./GLOBALS

CHECKPOINTTABLE ggmgr. gg_checkpoint_tab

Syslog none

# Add a checkpoint table for gg. A table is automatically created in the database and its structure is defined by gg.

Dblogin userid ggmgr, PASSWORD 12345678

ADD CHECKPOINTTABLEggmgr. gg_checkpoint_tab

# Use sqlserver as the target end:

Edit param./GLOBALS

CHECKPOINTTABLEerpdb. dbo. gg_checkpoint_tab

Syslog none

Dblogin sourcedb mssql

ADD CHECKPOINTTABLEerpdb. dbo. gg_checkpoint_tab

In fact, if you specify the checkpoint table when adding the replicat process, you do not need to configure this global table.

Add replicat rep1, exttrail/u01/ggate/dirdat/lt, checkpointtable ggate. checkpoint

For the time being, we use the global checkpoint table, but more than 10 replicat processes will write data, which may become a bottleneck on the SQL server side.

If it is a bottleneck, a checkpoint table is separated for each link.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.