|
| 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 | + |
| 7 | +# Parameter files for GG in Region1: |
| 8 | + |
| 9 | +###### EXTRACT EXT1 (Extract for bi-directional between Region1 DBCS and Region2 DBCS) |
| 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 | +REPLICAT REP2 |
| 64 | +USERIDALIAS adwregion1 DOMAIN OracleGoldenGate |
| 65 | +reportcount every 15 minutes, rate |
| 66 | +DDL INCLUDE MAPPED |
| 67 | +MAP REGION1_PDB1.<<Schema>>.*, TARGET .<<Schema>>.*; |
| 68 | + |
| 69 | + |
| 70 | +# Parameter files for GG in Region2: |
| 71 | + |
| 72 | +##### EXTRACT EXT3 (Extract for bi-directional between Region2 DBCS and Region1 DBCS) |
| 73 | + |
| 74 | + |
| 75 | +EXTRACT EXT3 |
| 76 | +USERIDALIAS cdbregion2 DOMAIN OracleGoldenGate |
| 77 | +EXTTRAIL E3 |
| 78 | +-- Capture DDL operations for listed schema tables |
| 79 | +ddl include mapped |
| 80 | + |
| 81 | +-- Add step-by-step history |
| 82 | +-- to the report file. Very useful when troubleshooting. |
| 83 | +ddloptions report |
| 84 | + |
| 85 | +-- Write capture stats per table to the report file daily. |
| 86 | +report at 00:01 |
| 87 | + |
| 88 | +-- Rollover the report file weekly. Useful when IE runs |
| 89 | +-- without being stopped/started for long periods of time to |
| 90 | +-- keep the report files from becoming too large. |
| 91 | +reportrollover at 00:01 on Sunday |
| 92 | + |
| 93 | +-- Report total operations captured, and operations per second |
| 94 | +-- every 10 minutes. |
| 95 | +reportcount every 10 minutes, rate |
| 96 | +tranlogoptions excludeuser REGION2_PDB1.ggadmin |
| 97 | +-- Included schemas |
| 98 | +TABLE REGION2_PDB1.<<Schema>>.*; |
| 99 | + |
| 100 | + |
| 101 | +##### EXTRACT EXT4 (Extract for uni-directional replication between Region2 DBCS and Region2 ADW) |
| 102 | + |
| 103 | + |
| 104 | +EXTRACT EXT4 |
| 105 | +USERIDALIAS cdbregion2 DOMAIN OracleGoldenGate |
| 106 | +EXTTRAIL E4 |
| 107 | +reportcount every 15 minutes, rate |
| 108 | +DDL INCLUDE MAPPED |
| 109 | +-- Included schemas |
| 110 | +TABLE REGION2_PDB1.<<Schema>>.*; |
| 111 | + |
| 112 | + |
| 113 | + |
| 114 | + |
| 115 | +##### REPLICAT REP3 (Replicat for bi-directional between Region2 DBCS and Region1 DBCS) |
| 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 | +REPLICAT REP4 |
| 128 | +USERIDALIAS adwregion2 DOMAIN OracleGoldenGate |
| 129 | +reportcount every 15 minutes, rate |
| 130 | +DDL INCLUDE MAPPED |
| 131 | +MAP REGION2_PDB1.<<Schema.*, TARGET <<Schema>>.*; |
0 commit comments