Sunteți pe pagina 1din 28

Transactional Data Management Solutions

Eliminating Database Downtime When


Upgrading or Migrating to Oracle 10g
Background

Nick Wagner
Director of Product Management, GoldenGate Software
Transactional Data Management for Oracle and other
databases

8 years of Product Management, primarily focused on


Database Replication Solutions for High Availability, Disaster
Recovery, Reporting, and Data Integration

5 Years – Product Manager for Quest SharePlex for Oracle


Agenda

GoldenGate Overview
What is Transactional Data Management?
High Availability Concerns: Upgrades and Migrations
Technology Choices and Trade-offs
Near-Zero Downtime Solution: Using Oracle XTTS and
GoldenGate
Process for 9i  10g Cross-Platform migration
Failback Contingency
Post Migration: Data Verification
Summary, Q&A
About GoldenGate Software

GoldenGate Software is a privately held software


company that offers Transactional Data
Management solutions.

250 customers... 1500+ solutions implemented… in 35 countries


Established, Loyal
Customer Base

Leading Industry 2 Million Real-Time


18,000 Node ATM Achieving paperless Saving $ millions
Solutions Network with 24/7
Transactions Per Day
Synchronized to
3.7 billion
transactions
enterprise for this with real-time DW
Availability visionary healthcare and zero downtime
Customer Websites processed annually
provider migrations.
Transactional Data Management

TDM provides guaranteed capture, routing, transformation,


delivery, and verification of data transactions across
heterogeneous environments in real time.

TDM must be: GoldenGate differentiates


on:
Real time
Moves with sub-second latency Performance
Handles thousands of transactions per
second with very low impact on IT
Heterogeneous systems
Moves transactions across different
databases and platforms Extensibility & Flexibility
Open architecture to meet demanding
customer needs and data environments
Transactional
Maintains transaction integrity
Reliability
Supports continuous operations and
availability
HA/DR – Systematic View
Database
1
Active

2 Unplanned outage 3 Planned outage

Node death Upgrades


System Failure System Changes
Power failure Migrations

Data Failure
Physical Media Data Changes Maintenance
Logical corruption
Upgrades vs. Migrations

Upgrade – Change of database


version only
In place upgrades
Rolling upgrades (least amount
of outage time) Planned outage

Migration – Change in database


vendor, platform, hardware Upgrades
System Changes
Migrations
Challenges in HA Environments

Maintaining SLA during Data issues


planned outage Instantiating
Revenue Impact Terabytes/Petabytes
Customer Expectations Staging areas
Interdependencies, Integration Change Management
Special Handling

Synchronization issues Failback strategy


Incremental data movement System/Application verification
Source database impact Continued data growth
Technology Choices for Oracle
Migrations

“Traditional Solutions”… Transportable tablespaces


Export/Import Cross-platform transportable
Flat files/SQL*Loader tablespaces
Data Pump Standby databases
Synchronous replication Streams
Backup/Recovery Transactional Data
Management

Non mission-critical systems High availability systems


Technology Choices for Oracle
Migrations

“Traditional Solutions”… Migration time dependent on


Export/Import size of data
Flat files/ SQL*Loader Assume a moderate to
Data Pump significant amount of planned
downtime
Synchronous replication
Significant overhead on the
Backup/Recovery source database
No ongoing management of
Non mission-critical systems transactions
Complex, error prone,
unmanageable
No real-time data verification
strategy
No manageable failback
strategy
Technology Choices for Oracle
Migrations

Transportable Tablespaces Transportable tablespaces


No updates possible Cross-platform transportable
No incremental solution tablespaces
No failback solution Standby databases
Streams
Standby Databases (Logical) Transactional Data Management
No Rolling upgrade in 9i
Cannot be used for
heterogeneous
migration/upgrade
No real time verification solution High availability systems

Streams
Rolling Upgrade not supported
in 9i
Limited Datatype support (e.g.
no LONG support in 9i)
No real time verification solution
Available Solutions/Techniques,
Tradeoffs
Weeks/Days Hours/Minutes Minutes/Seconds
Downtime

Scenario Unloa Export/ Backup Transportabl Standby TDM


d/ Import / Roll e Databases
Forwar TableSpaces
Load Dataguard
d
9i  10g Yes Yes No Yes No
Streams No Yes

< 9i  10g Yes Yes No Yes No No Yes


9i  10g Yes Yes No No No No Yes
cross
platform
9i  10g RAC/ Yes Yes No Yes No No Yes
ASM
Non-Oracle  Yes No No No No No Yes
10g

Extended downtime Real Time


Eliminating Downtime Using
TDM

Application Server

Oct 13, 2005


06:30:05

9i Transactional Data Management 10g


Solaris Linux
XTTS
Eliminating Downtime Using
TDM

Application Server

Oct 13, 2005  Zero DB Downtime Oct 13, 2005


06:30:05 06:30:30*
 <1 minute App
switchover time

9i Transactional Data Management 10g


Solaris Linux
XTTS

* Depends on Application Switchover time


How GoldenGate TDM Works
Capture: Committed changes are captured (and
can be filtered) as they occur by reading the
transaction logs.
Trail files: Stages and queues data for
routing.
Route: Data is compressed, encrypted for routing to
targets.
Delivery: Applies transactional
data with guaranteed integrity.
No Downtime Migration: 9i  10g Cross-
Platform

9i Clone  10g
2 Solaris
9i
Solaris
3,4
1

• Start GoldenGate TDM’s Capture process


• Set up Clone database, then Upgrade to
10g
• Cross platform transportable tablespaces
metadata export
• Use a full database NOROWS export
(Views, Packages, etc)
No Downtime Migration: 9i  10g Cross-
Platform

9i Clone  10g
2 Solaris
9i
Solaris
3,4
1
6,7
10g
Linux
5

• Start GoldenGate TDM’s Capture process 1. Cross platform transportable tablespaces


• Set up Clone database, then Upgrade to metadata import
10g 2. Full import with IGNORE option
• Cross platform transportable tablespaces
metadata export
• Use a full database NOROWS export
(Views, Packages, etc)
• Set up a new 10g vanilla target
No Downtime Migration: 9i  10g Cross-
Platform

9i Clone  10g
2 Solaris
9i
Solaris
3,4
1
8
6,7
10g
Linux
5

• Start GoldenGate TDM’s Capture process Cross platform transportable tablespaces


• Set up Clone database, then Upgrade to metadata import
10g Full import with IGNORE option
• Cross platform transportable tablespaces Start GoldenGate TDM Apply process at
metadata export target
• Use a full database NOROWS export **SWITCHOVER** (not depicted)
(Views, Packages, etc)
• Set up a new 10g vanilla target
No Downtime Migration: 9i  10g Cross-
Platform

9i Clone  10g
2 Solaris
9i
Solaris
3,4
1
8
6,7
11
10g
Failback Linux
contingency 10 5

• Start GoldenGate TDM’s Capture process Cross platform transportable tablespaces


• Set up Clone database, then Upgrade to metadata import
10g Full import with IGNORE option
• Cross platform transportable tablespaces Start GoldenGate TDM Apply process at
metadata export target
• Use a full database NOROWS export **SWITCHOVER** (not depicted)
(Views, Packages, etc) Start TDM Capture at target (new source)
• Set up a new 10g vanilla target Start TDM Apply at target (old source)
Migration/Upgrade Detailed
Steps
Start GoldenGate TDM Capture process (captures consistent data point = QScn)
Do a point-in-time recovery of an existing backup until Qscn in a staging area. Call this
database Dpitr.
Upgrade Dpitr to 10g on Solaris. Advance compatibility to 10.0 or higher.
Set up a vanilla 10g database on Linux. Call this database Dtarget.
Unplug the user tablespaces from Dpitr using the Oracle Cross Platform Transportable
Tablespaces feature using source side endian conversion. Also take a NOROWS full
export.
(Note the conversion would not be required if the endian systems were the same.)
Plug the set of tablespaces into Dtarget using the Cross Platform transportable tablespace
feature.
Make the set if user tablespaces in Dtarget Read Write; Do a NOROWS import with
IGNORE=Y option.
Start GoldenGate Apply process at Dtarget and synchronize up to the changes generated
since Qscn.
Switchover the application from Dprod to Dtarget.
Migration/Upgrade with Failback
Start GoldenGate TDM Capture process (captures consistent data point = QScn)
Do a point-in-time recovery of an existing backup until Qscn in a staging area. Call this
database Dpitr.
Upgrade Dpitr to 10g on Solaris. Advance compatibility to 10.0 or higher.
Set up a vanilla 10g database on Linux. Call this database Dtarget.
Unplug the user tablespaces from Dpitr using the Oracle Cross Platform Transportable
Tablespaces feature using source side endian conversion. Also take a NOROWS full
export.
(Note the conversion would not be required if the endian systems were the same.)
Plug the set of tablespaces into Dtarget using the Cross Platform transportable tablespace
feature.
Make the set if user tablespaces in Dtarget Read Write; Do a NOROWS import with
IGNORE=Y option.
Start GoldenGate Apply process at Dtarget and synchronize up to the changes generated
since Qscn.
Start GoldenGate Capture on Dtarget.
Switchover the application from Dprod to Dtarget.
Start GoldenGate Apply on Dprod.
Addressing Failback

9i
Solaris

10g
Linux

 Stop application at new Primary (10g)


 Real-time TDM synchronization ensures old primary is
synchronized
 Switchover Application to old primary (9i)
 Start Primary database
Post Upgrade/Migration: Data
Verification
GoldenGate Veridata™
Comparisons run while data sources are kept online
Support for large data volumes
Selective comparison options
Unparalleled speed and efficiency
Flexible reporting for discrepancy analysis
GoldenGate Veridata: How it
Works
The user chooses tables or files on the source and target databases
The comparison is initiated from the GUI, command line or batch
As the databases continue to change, GoldenGate Veridata reports:
Persistent discrepancies
In-flight data discrepancies (user configurable)
Key Technical Highlights

Rolling upgrade/migration using two databases


No instantiation using primary database
Offload any conversion to staging database
Synchronize transactions across databases
Verify data replication and transactional integrity
Have a failover strategy
TDM Upgrade/Migration Advantages

Real Time Allows for highest application availability

Heterogeneou Allows movement across platforms/databases


s
Transactional Maintains transactional integrity

Performance No impact on source database

Downtime Only incurred during Application switchover

Verification Real time (dual) verification after migration


Failback With no data loss, in real time
Thank You
Q+A
Contact Information:
nwagner@goldengate.com

Phone: +1 415-777-0200
301 Howard Street, Suite 2100, San Francisco, CA 94105
www.goldengate.com
Technology Environments Supported

Databases O/S and Platforms


Oracle Unix
DB2 OS/390 Windows NT, 2000, XP
DB2 UDB Linux
Microsoft SQL Server Sun Solaris
MySQL HP-UX
Enscribe IBM AIX
SQL/MP HP NonStop
SQL/MX TRU64
Sybase IBM OS/390 and z/OS
Teradata
…and all ODBC compatible databases

In addition, GoldenGate's technology solutions offer open APIs that allow for
access to custom data sources, data targets and adapters.