|
| 1 | +<!-- Copyright (c) 2023, Oracle and/or its affiliates. |
| 2 | + Licensed under the Universal Permissive License v1.0 as shown at https://oss.oracle.com/licenses/upl. |
| 3 | + Purpose: Configuration files for GG N-way replication best practice. |
| 4 | + @author: Saravanadurai Rajendran & Divya Batra --> |
| 5 | + |
| 6 | +# Parameter files for GG in Region1: |
| 7 | + |
| 8 | +## EXTRACT EXT1 (Extract for bi-directional between Region1 DBCS and Region2 DBCS) |
| 9 | + |
| 10 | +``` |
| 11 | +EXTRACT EXT1 |
| 12 | +USERIDALIAS cdbregion1 DOMAIN OracleGoldenGate |
| 13 | +EXTTRAIL E1 |
| 14 | +-- Capture DDL operations for listed schema tables |
| 15 | +ddl include mapped |
| 16 | +
|
| 17 | +-- Add step-by-step history |
| 18 | +-- to the report file. Very useful when troubleshooting. |
| 19 | +ddloptions report |
| 20 | +
|
| 21 | +-- Write capture stats per table to the report file daily. |
| 22 | +report at 00:01 |
| 23 | +
|
| 24 | +-- Rollover the report file weekly. Useful when IE runs |
| 25 | +-- without being stopped/started for long periods of time to |
| 26 | +-- keep the report files from becoming too large. |
| 27 | +reportrollover at 00:01 on Sunday |
| 28 | +
|
| 29 | +-- Report total operations captured, and operations per second |
| 30 | +-- every 10 minutes. |
| 31 | +reportcount every 10 minutes, rate |
| 32 | +tranlogoptions excludeuser REGION1_PDB1.ggadmin |
| 33 | +-- Included schemas |
| 34 | +TABLE REGION1_PDB1.<<Schema>>.*; |
| 35 | +``` |
| 36 | + |
| 37 | +## EXTRACT EXT2 (Extract for uni-directional replication between Region1 DBCS and Region1 ADW) |
| 38 | + |
| 39 | +``` |
| 40 | +EXTRACT EXT2 |
| 41 | +USERIDALIAS cdbregion1 DOMAIN OracleGoldenGate |
| 42 | +EXTTRAIL E2 |
| 43 | +reportcount every 15 minutes, rate |
| 44 | +DDL INCLUDE MAPPED |
| 45 | +ddloptions report |
| 46 | +-- Included schemas |
| 47 | +TABLE REGION1_PDB1.<<Schema>>.*; |
| 48 | +``` |
| 49 | + |
| 50 | +## REPLICAT REP1 (Replicat for bi-directional between Region1 DBCS and Region2 DBCS) |
| 51 | + |
| 52 | +``` |
| 53 | +REPLICAT REP1 |
| 54 | +USERIDALIAS pdbregion2 DOMAIN OracleGoldenGate |
| 55 | +reportcount every 15 minutes, rate |
| 56 | +DBOPTIONS INTEGRATEDPARAMS(parallelism 2) |
| 57 | +DDL INCLUDE MAPPED |
| 58 | +MAP REGION1_PDB1.<<Schema>>.*, TARGET REGION2_PDB1.<<Schema>>.*; |
| 59 | +``` |
| 60 | + |
| 61 | +## REPLICAT REP2 (Replicat for uni-directional replication between Region1 DBCS and Region1 ADW) |
| 62 | + |
| 63 | +``` |
| 64 | +REPLICAT REP2 |
| 65 | +USERIDALIAS adwregion1 DOMAIN OracleGoldenGate |
| 66 | +reportcount every 15 minutes, rate |
| 67 | +DDL INCLUDE MAPPED |
| 68 | +MAP REGION1_PDB1.<<Schema>>.*, TARGET .<<Schema>>.*; |
| 69 | +``` |
| 70 | + |
| 71 | +# Parameter files for GG in Region2: |
| 72 | + |
| 73 | +## EXTRACT EXT3 (Extract for bi-directional between Region2 DBCS and Region1 DBCS) |
| 74 | + |
| 75 | +``` |
| 76 | +EXTRACT EXT3 |
| 77 | +USERIDALIAS cdbregion2 DOMAIN OracleGoldenGate |
| 78 | +EXTTRAIL E3 |
| 79 | +-- Capture DDL operations for listed schema tables |
| 80 | +ddl include mapped |
| 81 | +
|
| 82 | +-- Add step-by-step history |
| 83 | +-- to the report file. Very useful when troubleshooting. |
| 84 | +ddloptions report |
| 85 | +
|
| 86 | +-- Write capture stats per table to the report file daily. |
| 87 | +report at 00:01 |
| 88 | +
|
| 89 | +-- Rollover the report file weekly. Useful when IE runs |
| 90 | +-- without being stopped/started for long periods of time to |
| 91 | +-- keep the report files from becoming too large. |
| 92 | +reportrollover at 00:01 on Sunday |
| 93 | +
|
| 94 | +-- Report total operations captured, and operations per second |
| 95 | +-- every 10 minutes. |
| 96 | +reportcount every 10 minutes, rate |
| 97 | +tranlogoptions excludeuser REGION2_PDB1.ggadmin |
| 98 | +-- Included schemas |
| 99 | +TABLE REGION2_PDB1.<<Schema>>.*; |
| 100 | +``` |
| 101 | + |
| 102 | +## EXTRACT EXT4 (Extract for uni-directional replication between Region2 DBCS and Region2 ADW) |
| 103 | + |
| 104 | +``` |
| 105 | +EXTRACT EXT4 |
| 106 | +USERIDALIAS cdbregion2 DOMAIN OracleGoldenGate |
| 107 | +EXTTRAIL E4 |
| 108 | +reportcount every 15 minutes, rate |
| 109 | +DDL INCLUDE MAPPED |
| 110 | +-- Included schemas |
| 111 | +TABLE REGION2_PDB1.<<Schema>>.*; |
| 112 | +``` |
| 113 | + |
| 114 | +## REPLICAT REP3 (Replicat for bi-directional between Region2 DBCS and Region1 DBCS) |
| 115 | + |
| 116 | +``` |
| 117 | +REPLICAT REP3 |
| 118 | +USERIDALIAS pdbregion1 DOMAIN OracleGoldenGate |
| 119 | +reportcount every 15 minutes, rate |
| 120 | +DBOPTIONS INTEGRATEDPARAMS(parallelism 2) |
| 121 | +DDL INCLUDE MAPPED |
| 122 | +MAP REGION2_PDB1.<<Schema>>.*, TARGET REGION1_PDB1.<<Schema>>.*; |
| 123 | +``` |
| 124 | + |
| 125 | +## REPLICAT REP4 (Replicat for uni-directional replication between Region2 DBCS and Region2 ADW) |
| 126 | + |
| 127 | +``` |
| 128 | +REPLICAT REP4 |
| 129 | +USERIDALIAS adwregion2 DOMAIN OracleGoldenGate |
| 130 | +reportcount every 15 minutes, rate |
| 131 | +DDL INCLUDE MAPPED |
| 132 | +MAP REGION2_PDB1.<<Schema.*, TARGET <<Schema>>.*; |
| 133 | +``` |
0 commit comments