Professional Documents
Culture Documents
Version:Heterogeneous
1.2
Advanced
Database Replication, Operational Business Intelligence,
Code: ORA10001EN10
High-Availability
and Zero-Downtime Migration and Upgrade
Date: 16-Feb-2013
1-1
1.0 An Overview
This hands-on workshop has been designed to give attendees best practices for
implementing Oracle GoldenGate 11g. The workshop walks you through the process to
install, configure and deploy Oracle GoldenGate 11g source and target instances. Then
perform business-specific implementation such as:
From the ground-up, attendees learn where to download Oracle GoldenGate 11g Media
Pack, perform quick-install for Oracle GoldenGate 11g, Configure Data Capture, learn
and perform initial data load techniques, Configure Data transfer and Configure Data
Apply.
For users who need to apply Oracle GoldenGate 11g for specific business areas, the
workshop guide them in step-by-step approach to learn the details of configuring the
modular architecture to build flexible yet high-performance integrated systems for
Oracle-to-Oracle or Heterogeneous environment supporting in-house developed and
Package applications systems.
Packaged Applications Support
Audience
Pre-Requisites
1-2
Objectives
By successfully completing the workshops, the attendees will be capable to work with
Oracle GoldenGate 11g and apply the learned best practices to their workplace. The
objective focus on major application of Oracle GoldenGate 11g to:
The workshop follows several routes, each depends on the need of your organization.
Figure 1 shows the business objective and the recommended workshops to practice.
Additional workshops can be completed after running the cleanup procedure.
1-3
Topics
Understand Oracle GoldenGate 11g application areas
Configuring Oracle GoldenGate 11g for Query and Report Offloading
Configuring Oracle GoldenGate 11g for Disaster Recovery Solutions
Configuring Oracle GoldenGate 11g for High-Availability Active-Passive
Configuring Oracle GoldenGate 11g for High-Availability Active-Active
Configuring Oracle GoldenGate 11g for Zero Downtime Upgrade and Migration
Configuring Oracle GoldenGate 11g for Operational BI and Data Warehouse
Configuring Oracle GoldenGate 11g for Heterogeneous Replication
Configuring Oracle GoldenGate 11g for Data Guard Integration
Review Understand Oracle GoldenGate 11g network topologies and Architecture
Un-Directional Configuration Query offloading
Bi-Directional Configuration for Standby Database and Active-Active for HA
Master-Master Configuration for Enterprise Load Balancing
Cascade using Intermediate Systems for Data Transformation
Broadcast Configuration for Data Distribution
Data Warehouse and Data mart Integration and consolidation configuration
Prepare Database Environment and Install Oracle GoldenGate 11g
Enable Database Supplemental Logging
Review Oracle GoldenGate 11g requirements for Operating System and Databases
Download and Install Oracle GoldenGate 11g
Working with GoldenGate 11g Software Command Interface (GGSCI)
Create Oracle GoldenGate 11g instance and directory structure
Configure the Source and Target Managers processes
Understand and configure Managers best-practice parameters
Login to Oracle Database using Oracle GoldenGate 11g
Run basic GGSCI commands
Create and Manage Checkpoint table
Working with TRANDATA command to enable Tables Supplemental Logging
Oracle GoldenGate 11g Initial Data Load Techniques
Work with Initial Data Load using File to Replicat method
Work with Initial Data Load using Direct load method
Understand Initial Data Load using Bulk-Direct load method
Understand Initial Data Load using Database Utility
Use handle collision for Initial Data Load Techniques
Control collision handling using SEND Command
Control Replicat for Initial Load and RBA handling
Oracle GoldenGate 11g: Uni-Directional Setup for Report Offloading
Configure, create and manage Primary Extract processes and local trails
Configure, create and manage Data Pump Extract process for routing to target
Configure, create and manage Remote Trial Files
Configure, create and manage Replicat process
Use administrative command to view process reports and troubleshooting
Understand Memory allocation by Oracle GoldenGate 11g
Advanced Heterogeneous Database Replication, Operational Business Intelligence,
High-Availability and Zero-Downtime Migration and Upgrade
1-4
1-5
1-6
1-7
The workshop consists of 1 Source Oracle Database 10g Release 2 (Local) and 1
Target Oracle Database 11g Release 2 (Remote). Both Oracle Installations use Oracle
GoldenGate 11g.
2.1 Database Name: S1T2 (Source)
Object name
RDBMS Version
Oracle GoldenGate 11g
Global Database Name
SID
Oracle Home
Password for all accounts
Database File Directory
Flush Recovery Area
Character Set
National Character Set
Endian Format
Setting
10.2.0.5.0
11.1.1.1.2
S1T2.precisetrace.com
S1T2
/u01/app/oracle/product/10.2.0/db_1
Oracle
/u01/app/oracle/oradata/S1T2/
/u01/app/oracle/flash_recovery_area
AL32UTF8
AL16UTF16
Little
Setting
11.2.0.3.0
11.1.1.1.2
T1E2.precisetrace.com
T1E2
/u01/app/oracle/product/11.2.0/dbhome_1
oracle_4U
+DATA
+FRA
AL32UTF8
AL16UTF16
Little
Setting
11.2.0.3.0
+ASM.precisetrace.com
+ASM
/u01/app/oracle/product/11.2.0/grid
oracle_4U
+DATA (Norma)
+FRA (External)
44GB
/dev/x*
1-8
Setting
11.2.0.3.0
11.1.1.1.2
/u01/app/oracle/product/11.2.0/dbhome_1
Description
Oracle Database Version
Oracle Database Release
Oracle Database Update
Database Type: Source or Target
Source or Target number
DISPLAY
Program executable
Username
Password
Option
Example
10 or 11 only
1 or 2
1, 2, 3, 4 or 5
s, t or i
1, 2, 3, n-1, n
Localhost, Hostname or IP
sqlplus, rman, lsnrctl, gaskin, etc
System
Oracle
Connect string, target, local, etc.
1-9
Description
Insert one row only starting at row
100001.
Insert 10 rows starting at row
100002.
1-10
Installation
Database Configuration
Enable Table Logging
2
Quick Install
TCP/IP Network
3
Table-Level Logging
4.1 Objectives
1-11
Scenario
You are assigned the task to configure Oracle GoldenGate 11g for the Source database
(S1T2) running on Oracle Database 10g EE Version10.2.0.5.0 to T1E2. The Target
Database (T1E2) running on Oracle Database 11g EE Version 11.2.0.3.0.
Successful completion of Workshop 1 is mandatory before proceeding to Workshop 2.
Tasks Summary
No
Tasks
Step/Instructions
Completed/Note
1-12
Source Database
(S1T2)
Current
Environment
Settings
ORACLE_SID=S1T2
ORACLE_HOME=/u01/app/oracle/product/10.2.0/db_1
OGG_HOME=/u01/app/ogg/10.2.0
DISPLAY=localhost:0.0
$ORACLE_SID
$ORACLE_HOME
$OGG_HOME
$DISPLAY
1-13
Target Database
(T1E2)
Current
Environment
Settings
ORACLE_SID=T1E2
ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1
OGG_HOME=/u01/app/ogg/11.2.0
DISPLAY=localhost:0.0
Exit the current SQL*Plus session, use the echo Shell command
to confirm the values for the above environment variables.
$echo
$echo
$echo
$echo
$ORACLE_SID
$ORACLE_HOME
$OGG_HOME
$DISPLAY
1-14
PRIMARY EKY
UNIQUE KEY
FOREIGN KEY
Supplemental
Logging (S1T2)
1-15
PRIMARY EKY
UNIQUE KEY
FOREIGN KEY
Supplemental
Logging (T1E2)
1-16
1-17
Quick Installation
for Target
1-18
ogg_admin
Database User
1-19
ogg_admin
Database User
1-20
Start GGSCI
All rights
ORACLE_SID=S1T2
ORACLE_HOME=/u01/app/oracle/product/10.2.0/db_1
OGG_HOME=/u01/app/ogg/10.2.0
DISPLAY=localhost:0.0
Successful Setting...
Oracle GoldenGate Command Interpreter for Oracle
Version 11.1.1.1.2 OGGCORE_11.1.1.1.2_PLATFORMS_111004.2100
Linux, x86, 32bit (optimized), Oracle 10g on Oct 4 2011
23:54:04
Copyright (C) 1995, 2011, Oracle and/or its affiliates. All
rights reserved.
GGSCI (edm6hp99.precisetrace.com) 1>
1-21
Start GGSCI
All rights
ORACLE_SID=T1E2
ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1
OGG_HOME=/u01/app/ogg/11.2.0
DISPLAY=localhost:0.0
Successful Setting...
Oracle GoldenGate Command Interpreter for Oracle
Version 11.1.1.1.2 OGGCORE_11.1.1.1.2_PLATFORMS_111004.2100
Linux, x86, 32bit (optimized), Oracle 11g on Oct 4 2011
23:53:33
Copyright (C) 1995, 2011, Oracle and/or its affiliates. All
rights reserved.
GGSCI (edm6hp99.precisetrace.com) 1>
1-22
ORACLE_SID=S1T2
ORACLE_HOME=/u01/app/oracle/product/10.2.0/db_1
OGG_HOME=/u01/app/ogg/10.2.0
DISPLAY=localhost:0.0
Successful Setting...
Oracle GoldenGate Command Interpreter for Oracle
Version 11.1.1.1.2 OGGCORE_11.1.1.1.2_PLATFORMS_111004.2100
Linux, x86, 32bit (optimized), Oracle 10g on Oct 4 2011
23:54:04
Copyright (C) 1995, 2011, Oracle and/or its affiliates. All
rights reserved.
GGSCI (edm6hp99.precisetrace.com) 1>dblogin userid ogg_admin,
password oracle
Successfully logged into database.
GGSCI (edm6hp99.precisetrace.com) 2>
1-23
Database, OS
versions
1-24
All rights
ORACLE_SID=T1E2
ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1
OGG_HOME=/u01/app/ogg/11.2.0
DISPLAY=localhost:0.0
Successful Setting...
Oracle GoldenGate Command Interpreter for Oracle
Version 11.1.1.1.2 OGGCORE_11.1.1.1.2_PLATFORMS_111004.2100
Linux, x86, 32bit (optimized), Oracle 11g on Oct 4 2011
23:53:33
Copyright (C) 1995, 2011, Oracle and/or its affiliates. All
rights reserved.
GGSCI (edm6hp99.precisetrace.com) 1>dblogin userid ogg_admin,
password oracle
Successfully logged into database.
1-25
Database, OS
versions
1-26
Source Subdirectories
/u01/app/ogg/10.2.0/dirprm: created
/u01/app/ogg/10.2.0/dirrpt: created
/u01/app/ogg/10.2.0/dirchk: created
/u01/app/ogg/10.2.0/dirpcs: created
/u01/app/ogg/10.2.0/dirsql: created
/u01/app/ogg/10.2.0/dirdef: created
/u01/app/ogg/10.2.0/dirdat: created
/u01/app/ogg/10.2.0/dirtmp: created
/u01/app/ogg/10.2.0/dirver: created
/u01/app/ogg/10.2.0/dirver/lock: created
/u01/app/ogg/10.2.0/dirver/oos: created
/u01/app/ogg/10.2.0/dirver/oosxml: created
/u01/app/ogg/10.2.0/dirver/params: created
/u01/app/ogg/10.2.0/dirver/report: created
/u01/app/ogg/10.2.0/dirver/status: created
/u01/app/ogg/10.2.0/dirver/trace: created
/u01/app/ogg/10.2.0/dirout: created
2>
1-27
Source Subdirectories
/u01/app/ogg/11.2.0/dirprm: created
/u01/app/ogg/11.2.0/dirrpt: created
/u01/app/ogg/11.2.0/dirchk: created
/u01/app/ogg/11.2.0/dirpcs: created
/u01/app/ogg/11.2.0/dirsql: created
/u01/app/ogg/11.2.0/dirdef: created
/u01/app/ogg/11.2.0/dirdat: created
/u01/app/ogg/11.2.0/dirtmp: created
/u01/app/ogg/11.2.0/dirver: created
/u01/app/ogg/11.2.0/dirver/lock: created
/u01/app/ogg/11.2.0/dirver/oos: created
/u01/app/ogg/11.2.0/dirver/oosxml: created
/u01/app/ogg/11.2.0/dirver/params: created
/u01/app/ogg/11.2.0/dirver/report: created
/u01/app/ogg/11.2.0/dirver/status: created
/u01/app/ogg/11.2.0/dirver/trace: created
/u01/app/ogg/11.2.0/dirout: created
1-28
TRANDATA
Command
1-29
TRANDATA
Command
spool /tmp/trandata.oby
Select add trandata osm$repapi.||table_name
from
dba_tables where owner=OSM$REPAPI;
spool off
1-30