Extreme replication at IOUG Collaborate 15

61
IOUG Collaborate 2015 Session: 206 Date: 4/15/2015 @ 10:45 am Room: Palm D Extreme Replication: Performance Tuning Oracle GoldenGate (Oracle to Oracle Integrated Replication)

Transcript of Extreme replication at IOUG Collaborate 15

Page 1: Extreme replication at IOUG Collaborate 15

IOUG Collaborate 2015

Session: 206

Date: 4/15/2015 @ 10:45 am

Room: Palm D

Extreme Replication:

Performance Tuning Oracle GoldenGate(Oracle to Oracle Integrated Replication)

Page 2: Extreme replication at IOUG Collaborate 15

@dbasolved

http://dbasolved.com

Work: [email protected]

Personal: [email protected]

Bobby CurtisDouglasville, Georgia

Infrastructure Principle

IOUG (RACSIG/DI SIG), RMOUG, GAOUG

Page 3: Extreme replication at IOUG Collaborate 15

Part of Accenture’s Infrastructure Services:

- 52,000 Oracle professionals

- 17,000 Infrastructure Services professionals

Oracle Database & Engineered Systems Solutions:

- Database Migrations

- Oracle Applications on Engineered Systems

- Cloud-based solutions leveraging Engineered Systems

Oracle “Specialized” in the following areas:

- Oracle Database, Oracle Database Security, Oracle Real Application Cluster (RAC),

Oracle Data Warehouse, Oracle Database Performance Turning, Oracle Linux

- Egineered Systems: Oracle Exadata, Oracle Exalogic, Oracle Exalytics

Accenture Enkitec Group

Page 4: Extreme replication at IOUG Collaborate 15

Accenture Enkitec Group• Our Accenture Enkitec Group resources are members of several Oracle

Database groups such as Oak Table, Oracle ACE, etc and speak frequently

at events across the globe (Oracle Use Groups (OUG), Oracle Open World

(OOW), etc..

• Our team have authored several widely used books specific to Oracle

Database topics ranging from Exadata, performance & tuning to best

practices.

Page 5: Extreme replication at IOUG Collaborate 15

Accenture EnkitecGroupE4The only conference with a focus on the Oracle Exadata platform

REGISTER TODAYJune 1–2, 2015Dallas, Texaswww.enkitec.com/e4/register

Page 6: Extreme replication at IOUG Collaborate 15

① Oracle GoldenGate Overview

② Tuning Areas and Tools

③ Case Study

④ Recommendations

⑤ Improvements?

⑥ Q&A

Page 7: Extreme replication at IOUG Collaborate 15

Oracle GoldenGate Overview

Page 8: Extreme replication at IOUG Collaborate 15

Change Data Capture (CDC)

Oracle Advance Replication

Oracle Streams Oracle GoldenGate

• Multi-Master Replication

• MV Replication

• Hybrid Replication

• Synchronous

• Asynchronus

• Capture Messages

• Staging Messages

• Consumption

• Heterogeneous

• Multiple Architectures

• Multiple Use Cases

Quick History

Page 9: Extreme replication at IOUG Collaborate 15

What is GoldenGate?

Page 10: Extreme replication at IOUG Collaborate 15

How does GoldenGate work?

Page 11: Extreme replication at IOUG Collaborate 15

How Oracle GoldenGate Works

CaptureTrail

FilesPump

DeliveryTrail

Files

Capture (extract): committed transactions are captured (and can be filtered) as they occur by reading the transaction logs. As of

V.11.2.1, GoldenGate offers two options for capture for Oracle; Classic & Integrated Capture

Trail: stages and queues data for routing.

Pump: distributes data for routing to target(s).

Route: data is compressed, encrypted for routing to target(s).

Delivery: applies data with transaction integrity. New with

GoldenGate 12c, Integrated Delivery (replicat).

MGRMGR

Page 12: Extreme replication at IOUG Collaborate 15

How Oracle GoldenGate Works

CaptureTrail

FilesPump

DeliveryTrail

Files

Capture (extract): committed transactions are captured (and can be filtered) as they occur by reading the transaction logs. As of

V.11.2.1, GoldenGate offers two options for capture for Oracle; Classic & Integrated Capture

Trail: stages and queues data for routing.

Pump: distributes data for routing to target(s).

Route: data is compressed, encrypted for routing to target(s).

Delivery: applies data with transaction integrity. New with

GoldenGate 12c, Integrated Delivery (replicat).

Trail

FilesTrail

FilesDelivery Pump Capture

Page 13: Extreme replication at IOUG Collaborate 15

Integrated Extract

• Introduced in GoldenGate 11.2.0.2

• Integrated Extract for Oracle source databases only• Database release: 11.2.0.3 and later

• Works with Logminer• Register Extract (capture) with database/logminer requiredExample: GGSCI> register extract [ name ] database container [ (PDB) ]

Trail

FilesCapture

Oracle Database

Page 14: Extreme replication at IOUG Collaborate 15

Logmining Server

Logmining Server

• Reader: Reads logfile and splits into regions

• Preparer: Scans regions of logfiles and prefilters

based on extract parameters

• Builder: Merges prepared records in SCN order

• Capture: Formats LCR and passes to GG Extract

Trail

FilesCaptureReader Builder Capture

Preparer

1Preparer

2Preparer

N

Extract

• Requests LCRs from logmining server

• Performs mapping and

transformations

• Writes trail file

Oracle Database

Page 15: Extreme replication at IOUG Collaborate 15

Integrated Replicat• Introduced in GoldenGate 12.1.2

• Integrated Replicat for Oracle databases only• Database release: 11.2.0.4, 12.1 and later

• Leverages database parallel apply servers

• Min. changes to replicat configuration

• Single Replicat, no partitioning needed (via @RANGE/THREAD or manual

partitioning)

Trail

FilesDelivery

Oracle Database

Page 16: Extreme replication at IOUG Collaborate 15

Integrated Replicat

Trail

FilesLightweight Streaming

APIDelivery

Inbound Server

• Receiver: Reads LCR

• Preparer: Computes dependencies between

transactions (PK, FK, UK)

• Coordinator: Maintains the order between

transactions

• Applier: Applies transactions in order, including CDR

and error handling

Replicat

• Reads the trail file(s)

• Constructs logical change records

(LCR)

• Uses a lightweight streaming API to

transmit LCR to Oracle database

Receiver Preparer Coordinator

Apply

1Apply

2Apply

N

Oracle Database

Page 17: Extreme replication at IOUG Collaborate 15

Parallel Apply Processing

• Dependency scheduling based on PK, UI and FKs at

target (Oracle)

• COMMIT_SERIALIZATION

- DEPENDENT_TRANSACTIONS (default) – commit dependent

transactions in correct dependency

- Full – commited transactions in same order as source

Page 18: Extreme replication at IOUG Collaborate 15

Tuning Areas and Tools

Page 19: Extreme replication at IOUG Collaborate 15

Why should I care about performance?

Page 20: Extreme replication at IOUG Collaborate 15

What tools are available for performance tuning?

Page 21: Extreme replication at IOUG Collaborate 15

Oracle GoldenGate Performance Areas

CaptureTrail

FilesPump Trail

Files Delivery

Host Host

Database Database

GoldenGateGoldenGate

- MPSTAT, VMSTAT, IOSTAT, STRACE, TOP

- AWR, ASH, UTL_SPADV, TRACE

GG tools: LAG, REPORTCOUNT

Page 22: Extreme replication at IOUG Collaborate 15

GoldenGate Performance ToolsLAG Information

• Monitor latency from the Manager process (mgr.prm)- LAGINFO [ SECONDS | MINUTES | HOURS ]

- LAGREPORT [ MINUTES | HOURS ]

- LAGCRITICAL [ SECONDS | MINUTES | HOURS]

EXAMPLE:

LAGINFOSECONDS 1

LAGREPORTMINUTES 1

LAGCRITICALSECONDS 2

• Information output to ggserr.log

Page 23: Extreme replication at IOUG Collaborate 15

GoldenGate Performance ToolsReport Files

• Parameters currently running

• Table/Column Mappings

• Runtime messages and errors

• Runtime statistics• REPORTCOUNT

- REPORTCOUNT EVERY [ # ] [ SECONDS | MINUTES |

HOURS ], RATE

Example: REPORTCOUNT EVERY 15 MINUTES, RATE

• Files located in $OGG_HOME/dirrpt

Page 24: Extreme replication at IOUG Collaborate 15

Database Performance Tools

Automatic Workload Repository (AWR)

• Good starting point within the database

• Help determine potiential bottlenecks

• Extract/Replicat are given unique SQL Module IDs

- Used in both AWR and ASH

• Use Active Session History (ASH) for more details on

identified session

Page 25: Extreme replication at IOUG Collaborate 15

AWR Output – Replication StatsOracle 12c Database (12.1.0.1 and later)

Note: Will not be in 11.2.x AWR reports

Page 26: Extreme replication at IOUG Collaborate 15

Database Performance ToolsStreams Performance Advisor (Integrated Extract/Replicat Only)

• Used to provide information on the performance of integrated

processes• Both Extract and Replicat

• Provides real-time statistics

• Has to be installed - Installed under GoldenGate User- $ORACLE_HOME/rdbms/admin/utlspadv.sql

Page 27: Extreme replication at IOUG Collaborate 15

Database Performance Tools (Views)

Run Time Views

• V$GOLDENGATE_CAPTURE

• V$GG_APPLY_RECEIVER

• V$GG_APPLY_READER

• V$GG_APPLY_COORDINATOR

• V$GG_APPLY_SERVER

• V$GOLDENGATE_TABLE_STATS

• V$GOLDENGATE_CAPABILITIES

• V$DBA_APPLY_ERRORS

Configuration Views

• DBA_GOLDENGATE_PRIVILEGES

• DBA_GOLDENGATE_SUPPORT_MODE

• DBA_CAPUTRE

• DBA_CAPTURE_PARAMETERS

• DBA_GOLDENGATE_INBOUND

• DBA_GG_INBOUND_PROGRESS

• DBA_APPLY

• DBA_APPLY_PARAMETERS

• DBA_APPLY_REPERROR_HANDLERS

• DBA_APPLY_HANDLE_COLLISIONS

• DBA_APPLY_DML_CONF_HANDLERS

Associated GoldenGate Monitoring Scripts

Page 28: Extreme replication at IOUG Collaborate 15

Health Checks• SQL based scripts that create HTML output

- Different scripts for database releases

- MOS:1448324.1

• Summary- Overview of environment

- Advice/Warnings of potential issues of configuration

• Analysis- Compare configurations

- Performance Recommendations

- Detail information for diagnostic purposes

• Statistics- Runtime information of Streams (GoldenGate) processing

Page 29: Extreme replication at IOUG Collaborate 15

Host Performance Tools

CPU Performance (mpstat/top)• Looking to see if there are any processes limited by CPU (top)

• Looking to see what average cpu spike is (mpstat)

I/O Performance (iostat)• Gather for database disks and trail file locations

• Critical before increasing parallelism

Memory Performance (vmstat)• Not needed for integrated processes

• Needed if tuning classic or coordinated processes

Page 30: Extreme replication at IOUG Collaborate 15

Case Study

Page 31: Extreme replication at IOUG Collaborate 15

Capture PumpDelivery

Trail

Files

Trail

Files

Server/Database Configs

Dell PowerEdge T110

Intel Core Duo

16G DRAM

Database:

SGA: 6GB

Dell PowerEdge T110 II

Intel i3

8G DRAM

Database:

SGA: 6GB

Page 32: Extreme replication at IOUG Collaborate 15

Oracle GoldenGate Performance Areas

CaptureTrail

FilesPump Trail

Files Delivery

Host Host

Database Database

GoldenGateGoldenGate

- MPSTAT, VMSTAT, IOSTAT, STRACE

- AWR, ASH, UTL_SPADV, TRACE

GG tools: LAG, REPORTCOUNT

Page 33: Extreme replication at IOUG Collaborate 15

Lag Information (OEM)

Approx. 1 hr. 20 min. behind

JAGENT 12.1.3/GG Plugin 12.1.0.2 is required

Page 34: Extreme replication at IOUG Collaborate 15

Lag Information

• ggserr.log

- Reported by Manager Process (mgr.prm)

- Extract (Source)2015-02-11 15:32:12 INFO OGG-00948 Oracle GoldenGate

Manager for Oracle, mgr.prm: Lag for EXTRACT EXTI is 00:00:01

(checkpoint updated 00:00:07 ago).

- Replicat (Target)2015-02-11 15:24:14 WARNING OGG-00947 Oracle GoldenGate

Manager for Oracle, mgr.prm: Lag for REPLICAT REPI is 01:18:50

(checkpoint updated 00:00:00 ago).

Page 35: Extreme replication at IOUG Collaborate 15

Process Statistics

EXTI.rpt1068208 records processed as of 2015-02-11 15:30:25 (rate 57,delta 299)

PMPI.rpt545130 records processed as of 2015-02-11 15:35:28 (rate 109,delta 281)

REPI.rpt108483 records processed as of 2015-02-11 15:28:05 (rate 116,delta 120)

• Monitor throughput for each process- REPORTCOUNT EVERY [ SECOND | MINUTES | HOURS ], RATE

- Can impact throughput with aggressive monitoring

Total records

processed this session

Throughput for session Changes since last

report count

Page 36: Extreme replication at IOUG Collaborate 15

Streams Performance AdvisorExtract

PATH 1 RUN_ID 1 RUN_TIME 2015-JAN-12 15:17:31 CCA Y

|<C> OGG$CAP_EXTI 31 31 0 LMR 99.7% 0% 0.3% "" LMP (2) 199.7% 0%

0.3% "" LMB 99.3% 0% 0.3% "" CAP 99.7% 0% 0.3% "" |<Q>

"GGATE"."OGG$Q_EXTI" 0.01 0.01 0 |<A> OGG$EXTI 0.01 0.01 0 |<B>

NO BOTTLENECK IDENTIFIED

Logminer Reader (LMR): 99.7% idle, no flow control, no top event

Logminer Preparer (LMP): 2, 199.7% idle, no flow control, no top event

Logminer Builder (LMB): 99.3% idle, no flow control, no top event

Capture (CAP): 99.3% idle, no flow control, no top event

Page 37: Extreme replication at IOUG Collaborate 15

Streams Performance Advisor Replicat

PL/SQL procedure successfully completed.

SQL>

Advisor couldn’t gather required statistics

Page 38: Extreme replication at IOUG Collaborate 15

Performance (OEM View)

Capture PumpDelivery

Trail

Files

Trail

Files

Page 39: Extreme replication at IOUG Collaborate 15

GoldenGate Configuration

Capture PumpDelivery

Trail

Files

Trail

Files

--CHECKPARAMS

EXTRACT EXTI

SETENV

(ORACLE_HOME="/oracle/app/product/11.2.0.4/d

bhome_1")

SETENV (ORACLE_SID="bc11g")

USERID ggate, PASSWORD ggate

WARNLONGTRANS 15m, CHECKINTERVAL 5m

REPORTCOUNT EVERY 5 MINUTES, RATE

EXTTRAIL ./dirdat/li

TABLE SOE.ADDRESSES;

TABLE SOE.CARD_DETAILS;

TABLE SOE.CUSTOMERS;

TABLE SOE.INVENTORIES;

TABLE SOE.LOGON;

TABLE SOE.ORDER_ITEMS;

TABLE SOE.ORDERENTRY_METADATA;

TABLE SOE.ORDERS;

TABLE SOE.PRODUCT_DESCRIPTIONS;

TABLE SOE.PRODUCT_INFORMATION;

TABLE SOE.WAREHOUSES;

--CHECKPARAMS

EXTRACT PMPI

userid ggate password ggate

PASSTHRU

RMTHOST 192.168.65.68, MGRPORT 15000,

COMPRESS

RMTTRAIL ./dirdat/ri

REPORTCOUNT EVERY 1 MINUTES, RATE

TABLE SOE.ADDRESSES;

TABLE SOE.CARD_DETAILS;

TABLE SOE.CUSTOMERS;

TABLE SOE.INVENTORIES;

TABLE SOE.LOGON;

TABLE SOE.ORDER_ITEMS;

TABLE SOE.ORDERENTRY_METADATA;

TABLE SOE.ORDERS;

TABLE SOE.PRODUCT_DESCRIPTIONS;

TABLE SOE.PRODUCT_INFORMATION;

TABLE SOE.WAREHOUSES;

--CHECKPARAMS

REPLICAT REPI

SETENV

(ORACLE_HOME="/opt/oracle/app/product/12.1.0.

1/dbhome_1")

SETENV (ORACLE_SID="oemrep")

USERID ggate, PASSWORD ggate

ALLOWDUPTARGETMAP

ASSUMETARGETDEFS

REPORTCOUNT EVERY 5 MINUTES, RATE

DISCARDFILE ./dirrpt/REPCI.dsc, append,

megabytes 200

REPERROR(default, discard)

REPERROR(default2, discard)

MAP SOE.ADDRESSES, TARGET

SOE.ADDRESSES;

MAP SOE.CARD_DETAILS, TARGET

…..

MAP SOE.WAREHOUSES, TARGET

SOE.WAREHOUSES;

Page 40: Extreme replication at IOUG Collaborate 15

AWR Output – Replication Stats

LAG: 12.9 Minutes

Page 41: Extreme replication at IOUG Collaborate 15

Database Views

select capture_name, 86400 * (available_message_create_time -

capture_message_create_time) latency_in_seconds

from gv$goldengate_capture;

select r.apply_name, 86400 * (r.dequeue_time - c.lwm_message_create_time)

latency_in_seconds

from gv$gg_apply_reader r, gv$gg_apply_coordinator c

where r.apply# = c.apply#

and r.apply_name = c.apply_name;

Page 42: Extreme replication at IOUG Collaborate 15

Recommendations

Page 43: Extreme replication at IOUG Collaborate 15

Integrated Extract Parameters

• LOGALLSUPCOLS- Instructs extract to write supplemental logged columns to trail file

• UPDATERECORDFORMAT- Single Logical Change Record (LCR) with BEFORE and AFTER

images

- COMPACT

- reduces the amount of data sent with LCR

Page 44: Extreme replication at IOUG Collaborate 15

Integrated Extract ParametersContinued

• PARALLELISM- Controls number of preparers for processing logs

- Increase parallelism if preparers are CPU bound

- EE allows parallelism of preparers (default = 2)

- SE does not allow parallelism of preparers (default = 1)

• MAX_SGA_SIZE- Controls amount of streams pool configured extract

- Min: 1024 (1G)/Max: 3584 (3.5G)

Page 45: Extreme replication at IOUG Collaborate 15

Integrated Replicat Parameters

• COMMIT_SERIALIZATION- Default = DEPENDENT_TRANSACTIONS

- Set to FULL, if apply in source commit order is required

• EAGER_SIZE- Threshold to begin apply of large transactions (default = 9500)

- Serializes apply processing- Make sure streams_pool_size is configured correctly to avoid

Waiting for Memory issues

• MAX_SGA_SIZE- Controls memory resource for IR

- Default is INFINITE

Page 46: Extreme replication at IOUG Collaborate 15

Integrated Replicat ParametersContinued

• PARALLELISM- Controls number of appliers (default = 4, actually 50)

- Setting to 1 disables parallism

• MAX_PARALLELISM- Controls maximum number of appliers

- Default is 50 in OGG 12.1.2.1 (30 in OGG 12.1.2.0)

Note: Auto Tuning (parallelism)- Enabled by default

- Computed over range of 5 intervals (5 seconds)

- Unneeded processes marked INACTIVE, removed after 5 minutes

- MAX_PARALLISM=PARALLELISM, disables auto turning

Page 47: Extreme replication at IOUG Collaborate 15

Integrated Replicat ParametersContinued

• BATCHSQL- Controls number of appliers (default = 4)

- Setting to 1 disables parallelism

- Use with caution

- Degradation can be seen in some cases.

Page 48: Extreme replication at IOUG Collaborate 15

Database Configurations

• ENABLE_GOLDENGATE_REPLICATION- New in DB 11.2.0.4/12.1.0.2

- Boolean value. Default to False, set to True to activate

• STREAMS_POOL_SIZE- Size appropriately for number of concurrent IE & IR processes

- Min. 1G per IE/IR then add 25%

- If using MAX_SGA_SIZE

- sum of (MAX_SGA_SIZE * IR) * 25%

Page 49: Extreme replication at IOUG Collaborate 15

Sizing Streams Pool

(MAX_SGA_SIZE * PARALLELISM) * 25%

(1024M * 2) * 25% = 2560M (2.5G)

Note: Max size of streams_pool_size should not exceed 3.5G

Note: May have to increase SGA size to allocate enough

memory

Page 50: Extreme replication at IOUG Collaborate 15

Database Object Tuning

• GoldeGate uses SQL to apply changes

• AWR highlights SQL and SEGMENT issues

• ADDM recommendations as needed

• Redo Logs, ensure they are large enough for expected

workload

• Gather statistics regularly, especially after initial initialization

• Target side: Indexes can cause slowness in apply process as

well.

Page 51: Extreme replication at IOUG Collaborate 15

Network Tuning

• TCPBUFSIZE and TCPFLUSHBYTES

• Use ping to find average round trip time (RTT)

[oracle@oel dirrpt]$ ping fred.acme.com

PING fred.acme.com (192.168.65.68) 56(84) bytes of data.

64 bytes from fred.acme.com (192.168.65.68): icmp_seq=1 ttl=64 time=0.180 ms

64 bytes from fred.acme.com (192.168.65.68): icmp_seq=2 ttl=64 time=0.173 ms

64 bytes from fred.acme.com (192.168.65.68): icmp_seq=3 ttl=64 time=0.199 ms

64 bytes from fred.acme.com (192.168.65.68): icmp_seq=4 ttl=64 time=0.203 ms

^C

--- fred.acme.com ping statistics ---

4 packets transmitted, 4 received, 0% packet loss, time 3807ms

rtt min/avg/max/mdev = 0.173/0.188/0.203/0.021 ms

Page 52: Extreme replication at IOUG Collaborate 15

Network Tuning

(megabits / gigabits) * RTT = Bandwidth-Delay Product (BDP in bytes)

BDP * 3 = TCPBUFSIZE/TCPFLUSHBYTES

(8192 / 8) * 0.021 = 21.5 bytes

21.5 bytes * 3 = 64.5 bytes

Since BDP result is less than 1MB, no need to set TCPBUFSIZE or TCPFLUSHBYTES

*Default is 1MB

Page 53: Extreme replication at IOUG Collaborate 15

Host

Evaluate if you need bigger/newer hardware if needed!

Page 54: Extreme replication at IOUG Collaborate 15

Improvements

Page 55: Extreme replication at IOUG Collaborate 15

Configuration

Capture PumpDelivery

Trail

Files

Trail

Files

EXTRACT EXTI

SETENV

(ORACLE_HOME="/oracle/app/product/11.2.0.4/d

bhome_1")

SETENV (ORACLE_SID="bc11g")

USERID ggate, PASSWORD ggate

WARNLONGTRANS 15m, CHECKINTERVAL 5m

REPORTCOUNT EVERY 1 MINUTES, RATE

EXTTRAIL ./dirdat/li

TRANLOGOPTIONS EXCLUDEUSER GGATE

TRANLOGOPTIONS INTEGRATEDPARAMS

(MAX_SGA_SIZE 2560 PARALLELISM 4)

LOGALLSUPCOLS

UPDATERECORDFORMAT COMPACT

TABLE SOE.ADDRESSES;

TABLE SOE.CARD_DETAILS;

TABLE SOE.CUSTOMERS;

…..

TABLE SOE.PRODUCT_INFORMATION;

TABLE SOE.WAREHOUSES;

--CHECKPARAMS

EXTRACT PMPI

userid ggate password ggate

PASSTHRU

RMTHOST 192.168.65.68, MGRPORT 15000,

COMPRESS

RMTTRAIL ./dirdat/ri

REPORTCOUNT EVERY 1 MINUTES, RATE

TABLE SOE.ADDRESSES;

TABLE SOE.CARD_DETAILS;

TABLE SOE.CUSTOMERS;

TABLE SOE.INVENTORIES;

TABLE SOE.LOGON;

TABLE SOE.ORDER_ITEMS;

TABLE SOE.ORDERENTRY_METADATA;

TABLE SOE.ORDERS;

TABLE SOE.PRODUCT_DESCRIPTIONS;

TABLE SOE.PRODUCT_INFORMATION;

TABLE SOE.WAREHOUSES;

REPLICAT REPI

SETENV

(ORACLE_HOME="/opt/oracle/app/product/12.1.0.

1/dbhome_1")

SETENV (ORACLE_SID="oemrep")

USERID ggate, PASSWORD ggate

ALLOWDUPTARGETMAP

ASSUMETARGETDEFS

REPORTCOUNT EVERY 1 MINUTES, RATE

DISCARDFILE ./dirrpt/REPCI.dsc, append,

megabytes 200

REPERROR(default, discard)

REPERROR(default2, discard)

DBOPTIONS INTEGRATEDPARAMS

(MAX_SGA_SIZE 2560, PARALLELISM 4,

MAX_PARALLELISM 6,

COMMIT_SERIALIZATION FULL)

BATCHSQL

MAP SOE.ADDRESSES, TARGET

SOE.ADDRESSES;

……;

MAP SOE.WAREHOUSES, TARGET

SOE.WAREHOUSES;

Page 56: Extreme replication at IOUG Collaborate 15

Performance (OEM View)

Capture PumpDelivery

Trail

Files

Trail

Files

Page 57: Extreme replication at IOUG Collaborate 15

Report Counts

EXTI.rpt1015083 records processed as of 2015-02-14 01:49:21 (rate 90,delta 301)

1034022 records processed as of 2015-02-14 01:50:22 (rate 91,delta 310)

1052135 records processed as of 2015-02-14 01:51:22 (rate 92,delta 301)

PMPI.rpt1033398 records processed as of 2015-02-14 01:50:20 (rate 91,delta 304)

1052112 records processed as of 2015-02-14 01:51:21 (rate 92,delta 310)

1069906 records processed as of 2015-02-14 01:52:21 (rate 93,delta 294)

REPI.rpt122370 records processed as of 2015-02-14 01:40:33 (rate 502,delta 884)

188385 records processed as of 2015-02-14 01:41:34 (rate 620,delta 1099)

317619 records processed as of 2015-02-14 01:42:35 (rate 872,delta 2143)

Changes since last

report count

Page 58: Extreme replication at IOUG Collaborate 15

0

500

1000

1500

2000

2500

EXTI

REPI

299

120

301

2143

Series1

Series2

Comparison

94.4% increase

in replicat

performance

Page 59: Extreme replication at IOUG Collaborate 15

STOP

Page 60: Extreme replication at IOUG Collaborate 15

Further Reading

• MOS Note: 1557031.1 – patches for integrated capture and replicat

• MOS Note: 1448324.1 – OGG Integrated Healthcheck Script

• MOS Note: 1485620.1 – Best Practices for Downstream Capture

• MOS Note: 1488668.1 – GoldenGate Performance Data Gathering

• Oracle GoldenGate Best Practices:

http://www.oracle.com/technetwork/database/availability/maa-gg-performance-

1969630.pdf

Page 61: Extreme replication at IOUG Collaborate 15

((RUN 2 REP – RUN 1 REP) / RUN 2 REP) * 100

((2143 - 120) / 2143) * 100 = 94.40%

Replicat Improvement Ratio