GGMicroservices

Update Feburary 26, 2019

UniDirectional and DDL Replication

Introduction

This lab walks you through uni-directional and DDL replication between to database schemas using Goldengate 18.1 Micro services web interface in a Ravello environment.

This lab supports the following use cases:

Objectives

This lab is in several parts. The first part will setup the Integrated Extract for Oracle GoldenGate 18c Microservices Architecture for a uni-directional configuration using the SOE schema in the OGGOOW181 and OGGOOW182 PDBs.

STEP 1: Log into the Service Manager and check credentials.

Note: You will be required to login again. Use the same Administrator account that was used with the Service Manager.

STEP 2: Add SCHEMATRANDATA to the SOE schema using the SGGATE Credential Alias.

STEP 3: Add the Integrated Extract.

On the last page of the Add Extract process, you are presented with a parameter file. The parameter file is partially filled out, but missing the TABLE parameters. Insert the following list of TABLE parameter values into the parameter file.

DDL INCLUDE ALL;
SOURCECATALOG OGGOOW181
TABLE SOE.*;

[Optional - For your information] You can also include specific table names for capturing the data changes, but extract will skip the create table DDLs. Sample TABLE parameter vales are given below.

DDL INCLUDE ALL;
SOURCECATALOG OGGOOW181
TABLE SOE.ADDRESSES;
TABLE SOE.CUSTOMERS;
TABLE SOE.ORDERS;
TABLE SOE.ORDER_ITEMS;
TABLE SOE.CARD_DETAILS;
TABLE SOE.LOGON;
TABLE SOE.PRODUCT_INFORMATION;
TABLE SOE.INVENTORIES;
TABLE SOE.PRODUCT_DESCRIPTIONS;
TABLE SOE.WAREHOUSES;
TABLE SOE.ORDERENTRY_METADATA;

Once the TABLE statements are added, click Create and Run at the bottom of the page.

The Administration Server page will refresh when the process is done registering the Extract with the database, and will show that the Extract is up and running

STEP 4: Configure Uni-Directional Replication (Distribution Server).

This step will walk you through how to setup a Path within the Distribution Server.

Notice the drop down with the values WS, WSS, UDT and OGG. These are the protocols you can select to use for transport. Since you are setting up an unsecure uni-directional replication, make sure you select WS, then provide the following target information:

Hostname: localhost
Port: 17003
Trail File: bb
Domain: OGG
Alias: WSTARGET

STEP 5: Check Receiver Service.

Objectives

Check the Receiver Server for the target database, which will receive the trail from the Distribution Path that you created on the source deployment.

STEP 6: Configure Uni-Directional Replication (Integrated Replicat).

Objectives

In this lab you will configure the Integrated Replicat for the second deployment.

STEP 7: Run Swingbench script to apply data to the source database.

STEP 8: Check Replication Results

STEP 9: DDL Replication.

Objectives

In this lab we will perform a few DML and DDL operations on source pdb and check if those operations are properly replicated to target database.

Prerequisite: Source and target database should be in sync. Extract, Pump and Replicat should be up and running.

Table dropped.

The above error is because employee table is not present in the target database. Drop command is executed successfully in target database.

STEP 10: Stop delivery process.

You have completed lab 400! Great Job!

Click here to return