This note describes the process of configuring a initial data load job as well as Change Data
Capture from an Oracle 12c pluggable database source and a MS SQL Server 2012 target
database.
It assumes the GoldenGate user has been created in the Oracle 12c source database and
other setup tasks like enabling supplemental logging in the database have been completed
as well.
Downloaded from OTN and unzipped on the SQL Server 2012 box
121201_ggs_Windows_x64_MSSQL_64bit.zip
MGRSERVNAME MANAGER
Save the file. The file is saved automatically with the name GLOBALS, without a file
extension
D:\software\goldengate12c>ggsci
Copyright (C) 1995, 2013, Oracle and/or its affiliates. All rights reserved.
MANAGER STOPPED
GGSCI (kensmssql001uat) 3> EDIT PARAMS mgr
PORT 7809
MANAGER RUNNING
ODAC1120320_x64
Create the data source via ODBC Data Source Administrator (launched from the
ODAC Oracle Client Home)
For login authentication, select With Integrated Windows Authentication for Oracle GoldenGate to use
Windows authentication, or select With SQL Server authentication using a login ID and password entered
by the user for Oracle GoldenGate to use database credentials
Test the data source by logging in via Oracle GoldenGate
Copyright (C) 1995, 2013, Oracle and/or its affiliates. All rights reserved.
DEFSFILE ./dirdat/source.def,
USERIDALIAS gg_sales
TABLE sales.sh.customers;
***********************************************************************
Oracle GoldenGate Table Definition Generator for Oracle
Version 12.1.2.0.0 17185003 OGGCORE_12.1.2.0.0_PLATFORMS_130924.1316
Linux, x64, 64bit (optimized), Oracle 12c on Sep 24 2013 16:23:06
Copyright (C) 1995, 2013, Oracle and/or its affiliates. All rights reserved.
***********************************************************************
** Running with the following parameters **
***********************************************************************
DEFSFILE ./dirdat/source.def,
USERIDALIAS gg_sales
TABLE sales.sh.myobjects;
Retrieving definition for SALES.SH.MYOBJECTS.
[oracle@orasql-001-dev goldengate]$
SCP or FTP the source.def file to the Windows Server hosting SQL Server 2012
instance
Copy it in the dirdef subdirectory in the GoldenGate software installation home directory
USE [AdventureWorks]
GO
SET QUOTED_IDENTIFIER ON
GO
GO
EXTRACT eini1
USERIDALIAS gg_root
RMTHOST kensmssql001uat, MGRPORT 7809
RMTTASK REPLICAT, GROUP rini1
TABLE sales.sh.customers;
On the SQL Server 2012 database confirm the initial load to the MYOBJECTS table has
completed
Configure Change Data Capture
Add supplemental logging at the table level and create the integrated extract.
Note – for 12c Multitenant Container databases we have to use Integrated Extracts in place of
Classic Extracts
To add trandata we need to be connected to the individual pluggable database and not the root
container. In this case the PDB is SALES.
GGSCI (orasql-001-deV) 9> ADD EXTRACT eora1 INTEGRATED TRANLOG BEGIN NOW
EXTRACT added.
MGRSERVNAME MANAGER
CHECKPOINTTABLE PERSON.CHKTAB
NOTE:
For the GLOBALS configuration to take effect, you must exit the session in which the changes were
made.
REPLICAT rora1
TARGETDB sqlserver2012
SOURCEDEFS ./dirdef/source.def
MAP sales.sh.myobjects, TARGET person.myobjects;
Connected to:
Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 - 64bit Production
With the Partitioning, OLAP, Advanced Analytics and Real Application Testing
options
SQL> commit;
Commit complete.