new hp solution for replicating nonstop sql ddl: sdr...

49
© 2008 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice New HP Solution for Replicating NonStop SQL DDL: SDR SDR SDR SDR Bob Loftis, HP Product Manager Johanne Corbeil, SDR Support Mgr Oct 2nd, 2008

Upload: others

Post on 10-Jun-2020

2 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: New HP Solution for Replicating NonStop SQL DDL: SDR SDRwhp-hou9.cold.extweb.hp.com/pub/nonstop/ccc/oct0208.pdf · • RDF transports extracted DDL description − Replicated audited

© 2008 Hewlett-Packard Development Company, L.P.The information contained herein is subject to change without notice

New HP Solution for Replicating NonStop SQL DDL: SDR SDR SDR SDR Bob Loftis, HP Product ManagerJohanne Corbeil, SDR Support MgrOct 2nd, 2008

Page 2: New HP Solution for Replicating NonStop SQL DDL: SDR SDRwhp-hou9.cold.extweb.hp.com/pub/nonstop/ccc/oct0208.pdf · • RDF transports extracted DDL description − Replicated audited

22

Agenda

• Where HP NonStop SDR fits• Product overview• Release plan• Q&A

Page 3: New HP Solution for Replicating NonStop SQL DDL: SDR SDRwhp-hou9.cold.extweb.hp.com/pub/nonstop/ccc/oct0208.pdf · • RDF transports extracted DDL description − Replicated audited

33

NonStop Business Continuity Strategy

Provide access to our partners who offer heterogeneous data transformation, and replication options

Provide high performance, reliable, NonStop to NonStop database replication products that:• Allow smooth migration and upgrade

• Support no lost business in disaster events – very hot standby

• Provide zero lost transactions where required

Page 4: New HP Solution for Replicating NonStop SQL DDL: SDR SDRwhp-hou9.cold.extweb.hp.com/pub/nonstop/ccc/oct0208.pdf · • RDF transports extracted DDL description − Replicated audited

4

NonStop Customers

• Over 300 current Business Continuity customers− Banking

− Exchanges

− Telecomm

− Retail

− Healthcare

− Government

• Some success stories online, but most prefer no publicity

Ensuring business processes

Page 5: New HP Solution for Replicating NonStop SQL DDL: SDR SDRwhp-hou9.cold.extweb.hp.com/pub/nonstop/ccc/oct0208.pdf · • RDF transports extracted DDL description − Replicated audited

55

HP NonStop Disaster ProofDisaster Tolerant Solutions That Work!

• No lost transactions: 550 tps

• Fast Takeover ~30 seconds

• All HP systems performed as expected−All data protected on Storageworks XP

24000

−All shared network gear (Procurve, Brocade, etc.)

• See our ATC white paper at: www.hp.com/go/nonstopcontinuity

Page 6: New HP Solution for Replicating NonStop SQL DDL: SDR SDRwhp-hou9.cold.extweb.hp.com/pub/nonstop/ccc/oct0208.pdf · • RDF transports extracted DDL description − Replicated audited

66

Integrated HP NonStop Server products

•Transaction Management Facility (TMF) −Foundation for transaction integrity and data protection

•Remote Database Facility (RDF)−High-performance database replication – fast Takeover

•AutoTMF−NonStop TMF protection for non audited databases

•AutoSYNC−Synchronization non database files

Integrated products providing business continuity without specialist programming knowledge

Page 7: New HP Solution for Replicating NonStop SQL DDL: SDR SDRwhp-hou9.cold.extweb.hp.com/pub/nonstop/ccc/oct0208.pdf · • RDF transports extracted DDL description − Replicated audited

77

And introducing this month, our latest addition…

HP NonStop SQL DDL Replicator, or, SDR!−Automatic SQL DDL replication

Page 8: New HP Solution for Replicating NonStop SQL DDL: SDR SDRwhp-hou9.cold.extweb.hp.com/pub/nonstop/ccc/oct0208.pdf · • RDF transports extracted DDL description − Replicated audited

88

Why HP NonStop SDR?

• Much requested and needed

• To automate procedures

• To reduce errors

• To be more efficient

• To be more cost effective

• It’s so easy…from the team that brings you AutoTMF and AutoSYNC

Page 9: New HP Solution for Replicating NonStop SQL DDL: SDR SDRwhp-hou9.cold.extweb.hp.com/pub/nonstop/ccc/oct0208.pdf · • RDF transports extracted DDL description − Replicated audited

99

• Where HP NonStop SDR fits• Product overview• Release plan• Q&A

Agenda

Page 10: New HP Solution for Replicating NonStop SQL DDL: SDR SDRwhp-hou9.cold.extweb.hp.com/pub/nonstop/ccc/oct0208.pdf · • RDF transports extracted DDL description − Replicated audited

1010

NonStop SQL DDL Replicator (SDR)

• Extracts, replicates and applies NS SQL/MP DDL operations to backup tables

• Designed to work with RDF

• All SQL DDL operations replicated−CREATE, DROP, COMMENT operations

−ALTER TABLE and ALTER INDEX (including split and merge partitions)

−Can replicate DDL on non-audited tables (configurable)

• No impact on performance or operations of applications on primary

Page 11: New HP Solution for Replicating NonStop SQL DDL: SDR SDRwhp-hou9.cold.extweb.hp.com/pub/nonstop/ccc/oct0208.pdf · • RDF transports extracted DDL description − Replicated audited

1111

• SDR is a companion to, and depends upon, RDF

• SDR requires no operator intervention when RDF is being initialized, configured, started or stopped

• SDR and RDF coordinate replication to execute DDL in proper sequence

• RDF data replication configuration (volumes, network, etc.) used for DDL replication

• Like RDF, operates automatically, day in and out−No operator intervention for normal operations

11

SDR and RDF

Page 12: New HP Solution for Replicating NonStop SQL DDL: SDR SDRwhp-hou9.cold.extweb.hp.com/pub/nonstop/ccc/oct0208.pdf · • RDF transports extracted DDL description − Replicated audited

12

SDR Supports Typical RDF Topologies

Centralized Multiple duplicates RingSimplex

A-Z A-Z

Network Transaction Replication

A-L

M-Z

Reciprocal Chain

Page 13: New HP Solution for Replicating NonStop SQL DDL: SDR SDRwhp-hou9.cold.extweb.hp.com/pub/nonstop/ccc/oct0208.pdf · • RDF transports extracted DDL description − Replicated audited

13

One Exception - Unsupported TopologyMultiple

Same volume pair

$P1$P1 $B1$B1

RDF PRIMARDF PRIMA

RDF PRIMBRDF PRIMB

EXCLUDE TEST.*EXCLUDE TEST.*

INCLUDE TEST.*

\BACK\PRIM

Same primary to same backupwith same volume pair

Page 14: New HP Solution for Replicating NonStop SQL DDL: SDR SDRwhp-hou9.cold.extweb.hp.com/pub/nonstop/ccc/oct0208.pdf · • RDF transports extracted DDL description − Replicated audited

14

TMF and RDF – Now SDR and RDF

• Audited data updates captured by TMF are replicated by RDF

• Similarly, SQL DDL updates captured by SDR are replicated by RDF

Page 15: New HP Solution for Replicating NonStop SQL DDL: SDR SDRwhp-hou9.cold.extweb.hp.com/pub/nonstop/ccc/oct0208.pdf · • RDF transports extracted DDL description − Replicated audited

1515

Data Replication – TMF and RDF (1 of 4)

Data Manager

DP2

Application

Utilities

Primary

DB

Applications and utilities update data in the primary tables

Page 16: New HP Solution for Replicating NonStop SQL DDL: SDR SDRwhp-hou9.cold.extweb.hp.com/pub/nonstop/ccc/oct0208.pdf · • RDF transports extracted DDL description − Replicated audited

1616

Data Replication – TMF and RDF (2 of 4)

TMF

Data Manager

DP2

Application

Utilities

Primary

DB

Data Update Extraction

TMF captures, updates and stores changes in the audit trails

Page 17: New HP Solution for Replicating NonStop SQL DDL: SDR SDRwhp-hou9.cold.extweb.hp.com/pub/nonstop/ccc/oct0208.pdf · • RDF transports extracted DDL description − Replicated audited

1717

Data Replication – TMF and RDF (3 of 4)

TMF

Data Manager

DP2

RDF

Data Manager

DP2

Application

Utilities

Primary

DB

Data Update Extraction

Data Update Replication

RDF transports data updates to the backup system

Page 18: New HP Solution for Replicating NonStop SQL DDL: SDR SDRwhp-hou9.cold.extweb.hp.com/pub/nonstop/ccc/oct0208.pdf · • RDF transports extracted DDL description − Replicated audited

1818

Data Replication – TMF and RDF (4 of 4)

TMF

Data Manager

DP2

RDF

Data Manager

DP2

Application

Utilities

Primary

DB

Backup

DB

Data Update Extraction

Data Update Replication

RDF applies data updates to the backup tables

Page 19: New HP Solution for Replicating NonStop SQL DDL: SDR SDRwhp-hou9.cold.extweb.hp.com/pub/nonstop/ccc/oct0208.pdf · • RDF transports extracted DDL description − Replicated audited

19

Now SDR and RDF

• Audited data updates captured by TMF are replicated by RDF

• Similarly, SQL DDL updates captured by SDR are replicated by RDF

Page 20: New HP Solution for Replicating NonStop SQL DDL: SDR SDRwhp-hou9.cold.extweb.hp.com/pub/nonstop/ccc/oct0208.pdf · • RDF transports extracted DDL description − Replicated audited

2020

DDL Replication – SDR and RDF (1 of 4)

SQLApplicatio

n

Utilities

Primary

DB

Applications and utilities apply DDL changes to primary tables

Page 21: New HP Solution for Replicating NonStop SQL DDL: SDR SDRwhp-hou9.cold.extweb.hp.com/pub/nonstop/ccc/oct0208.pdf · • RDF transports extracted DDL description − Replicated audited

2121

DDL Replication – SDR and RDF (2 of 4)

SDR

SQLApplicatio

n

Utilities

Primary

DB

DDL Extraction

SDR captures the DDL operations performed on the primary tables

Page 22: New HP Solution for Replicating NonStop SQL DDL: SDR SDRwhp-hou9.cold.extweb.hp.com/pub/nonstop/ccc/oct0208.pdf · • RDF transports extracted DDL description − Replicated audited

2222

DDL Replication – SDR and RDF (3 of 4)

SDR

SQLApplicatio

n

Utilities

Primary

DB

DDL Extraction

DDL Replication

RDF SDR

RDF transports captured DDL operations to the backup system

Page 23: New HP Solution for Replicating NonStop SQL DDL: SDR SDRwhp-hou9.cold.extweb.hp.com/pub/nonstop/ccc/oct0208.pdf · • RDF transports extracted DDL description − Replicated audited

23

RDF

23

DDL Replication – SDR and RDF (4 of 4)

SDR

SQL

SDR

SQL

Application

Utilities

Primary

DB

Backup

DB

DDL Extraction

DDL Execution

DDL ReplicationSDR applies replicated DDL operations to the backup tables

Page 24: New HP Solution for Replicating NonStop SQL DDL: SDR SDRwhp-hou9.cold.extweb.hp.com/pub/nonstop/ccc/oct0208.pdf · • RDF transports extracted DDL description − Replicated audited

2424

SDR Product Components

• SDRCOM – Command Interpreter

• SDRMON – Monitor Process

• SDRRUNTM – Runtime for DDL Extraction

• SDRUPDT – Updater for DDL Replication

• Message, Help, Template and Filter files

Page 25: New HP Solution for Replicating NonStop SQL DDL: SDR SDRwhp-hou9.cold.extweb.hp.com/pub/nonstop/ccc/oct0208.pdf · • RDF transports extracted DDL description − Replicated audited

252525

SDR Installation

Download or IPSETUP the SDR PAK file1. Run INSTALL macro2. Create SDR database (SDRCOM command)3. Install product license4. SDRCOM INSTALL SDR

− Updates SQL software to extract DDL operations− Required after any update to SQL components

5. Update EMS Templates6. Update Cold Load procedures to start SDR

monitor

Page 26: New HP Solution for Replicating NonStop SQL DDL: SDR SDRwhp-hou9.cold.extweb.hp.com/pub/nonstop/ccc/oct0208.pdf · • RDF transports extracted DDL description − Replicated audited

2626

DDL Extraction – On Primary

• SDR Runtime captures SQL DDL−SQL statement

−DEFINEs

−Network topology for distributed tables

• Writes DDL to audited SDR Depot file

• Inserts “STOP-RDF-UPDATE” in audit trail

• Does not require RDF to be configured or active

• Does not affect SQL DDL processing

Page 27: New HP Solution for Replicating NonStop SQL DDL: SDR SDRwhp-hou9.cold.extweb.hp.com/pub/nonstop/ccc/oct0208.pdf · • RDF transports extracted DDL description − Replicated audited

2727

DDL Extraction – Step by Step (1 of 5)

SQLApplication

SQLCI

Primary

DB

SQL utilities execute DDL changes to the primary tables

Page 28: New HP Solution for Replicating NonStop SQL DDL: SDR SDRwhp-hou9.cold.extweb.hp.com/pub/nonstop/ccc/oct0208.pdf · • RDF transports extracted DDL description − Replicated audited

2828

DDL Extraction – Step by Step (2 of 5)

SDR Runtime

SQLApplication

SQLCI

Primary

DB

SDR captures DDL operations executed on the primary tables

Page 29: New HP Solution for Replicating NonStop SQL DDL: SDR SDRwhp-hou9.cold.extweb.hp.com/pub/nonstop/ccc/oct0208.pdf · • RDF transports extracted DDL description − Replicated audited

2929

DDL Extraction – Step by Step (3 of 5)

SDR Runtime

SQLApplication

SQLCI

Primary

DB

TMF Audit Trail DDL

SDR stores DDL in audited Depot file and TMF captures changes

Page 30: New HP Solution for Replicating NonStop SQL DDL: SDR SDRwhp-hou9.cold.extweb.hp.com/pub/nonstop/ccc/oct0208.pdf · • RDF transports extracted DDL description − Replicated audited

3030

DDL Extraction – Step by Step (4 of 5)

SDR Runtime

SQLApplication

SQLCI

Primary

DB

TMF Audit Trail DDL Stop RDF Update

SDR inserts SRU in the audit trail to control RDF updaters on backup

Page 31: New HP Solution for Replicating NonStop SQL DDL: SDR SDRwhp-hou9.cold.extweb.hp.com/pub/nonstop/ccc/oct0208.pdf · • RDF transports extracted DDL description − Replicated audited

3131

DDL Extraction – Step by Step (5 of 5)

SDR Runtime

SQLApplication

SQLCI

Primary

DB

TMF Audit Trail DDL Stop RDF UpdateRDFRDF

Backup System

RDF extracts DDL and SRU from audit trail for replication

Page 32: New HP Solution for Replicating NonStop SQL DDL: SDR SDRwhp-hou9.cold.extweb.hp.com/pub/nonstop/ccc/oct0208.pdf · • RDF transports extracted DDL description − Replicated audited

3232

DDL Replication – On Backup

• RDF transports extracted DDL description− Replicated audited update to SDR Depot file

• RDF updaters suspend updating

• SDR Updater monitors RDF configuration and detects it has work to do

• SDR analyzes, translates, and executes DDL

• SDR notifies RDF to resume updating

Page 33: New HP Solution for Replicating NonStop SQL DDL: SDR SDRwhp-hou9.cold.extweb.hp.com/pub/nonstop/ccc/oct0208.pdf · • RDF transports extracted DDL description − Replicated audited

3333

DDL Replication – Step by Step (1 of 5)

RDF Image TrailRDF Image Trail DDL Stop RDF Update RDFRDF

RDF UpdatersRDF UpdatersRDF Updaters find updates to Depot file from primary

Page 34: New HP Solution for Replicating NonStop SQL DDL: SDR SDRwhp-hou9.cold.extweb.hp.com/pub/nonstop/ccc/oct0208.pdf · • RDF transports extracted DDL description − Replicated audited

3434

DDL Replication – Step by step (2 of 5)

RDF Image TrailRDF Image Trail Stop RDF Update RDFRDF

RDF UpdatersRDF Updaters

DDLUpdaters apply updates to Depot file on the backup

Page 35: New HP Solution for Replicating NonStop SQL DDL: SDR SDRwhp-hou9.cold.extweb.hp.com/pub/nonstop/ccc/oct0208.pdf · • RDF transports extracted DDL description − Replicated audited

3535

DDL Replication – Step by step (3 of 5)

RDF Image TrailRDF Image Trail RDFRDF

SDR UpdaterSDR UpdaterRDF UpdatersRDF Updaters

DDL

RDF Updaters stop when processing SRU and SDR Updater reads DDL from replicated Depot file

Page 36: New HP Solution for Replicating NonStop SQL DDL: SDR SDRwhp-hou9.cold.extweb.hp.com/pub/nonstop/ccc/oct0208.pdf · • RDF transports extracted DDL description − Replicated audited

3636

DDL Replication – Step by step (4 of 5)

SQL Backup

DB

Backup

DB

RDF Image TrailRDF Image Trail RDFRDF

SDR UpdaterSDR UpdaterRDF UpdatersRDF Updaters

DDLSDR applies DDL operation to backup tables

Page 37: New HP Solution for Replicating NonStop SQL DDL: SDR SDRwhp-hou9.cold.extweb.hp.com/pub/nonstop/ccc/oct0208.pdf · • RDF transports extracted DDL description − Replicated audited

3737

DDL Replication – Step by step (5 of 5)

RDF Image TrailRDF Image Trail RDFRDF

RDF UpdatersRDF Updaters

SDR UpdaterSDR Updater

Resume Updating

SDR starts RDF Updaters

Page 38: New HP Solution for Replicating NonStop SQL DDL: SDR SDRwhp-hou9.cold.extweb.hp.com/pub/nonstop/ccc/oct0208.pdf · • RDF transports extracted DDL description − Replicated audited

3838

SDR Performance

• No significant impact on SQL DDL operations−A few SDR file updates

−Uses SQL’s transaction

• No impact on RDF audit extraction−Extractor to Receiver audit transfer unimpeded

• RDF updating interrupted for DDL execution−Usually under 5 seconds, but more for long DDL ops like

CREATE INDEX or partition split/move

Page 39: New HP Solution for Replicating NonStop SQL DDL: SDR SDRwhp-hou9.cold.extweb.hp.com/pub/nonstop/ccc/oct0208.pdf · • RDF transports extracted DDL description − Replicated audited

3939

Monitoring and Manual Control of SDR

• Simple SDRCOM commands

• “STATUS” commands to show DDL details and state of replication

• “HOLD” SDR Updater−SDR issues EMS message when DDL is ready

• “EXECUTE” or “CANCEL” pending statement

• “RELEASE” Updater to resume automatic operation

Page 40: New HP Solution for Replicating NonStop SQL DDL: SDR SDRwhp-hou9.cold.extweb.hp.com/pub/nonstop/ccc/oct0208.pdf · • RDF transports extracted DDL description − Replicated audited

4040

SDR Configuration Based on RDF

• SDR works “out of the box”

• SDR requires no separate configuration; all basic settings are adopted from RDF config:−Primary and Backup nodes

−Primary -> Backup volume mapping

− Includes/Excludes, MAPFILE

−REPLICATEPURGE

−NETWORK

Page 41: New HP Solution for Replicating NonStop SQL DDL: SDR SDRwhp-hou9.cold.extweb.hp.com/pub/nonstop/ccc/oct0208.pdf · • RDF transports extracted DDL description − Replicated audited

4141

SDR Configuration Options

• To customize SDR, you can change:−Retention: how long to keep extracted DDL

−CreateID: backup table owner

−AutoCreateCatalog: don’t need to synchronize cats

−KeepPHYSVOL: retain Virtual-to-Physical volumes

−UnAuditedDDL: replicate DDL on unaudited tables

−UserTransaction: how to handle DDL in a user tx

Page 42: New HP Solution for Replicating NonStop SQL DDL: SDR SDRwhp-hou9.cold.extweb.hp.com/pub/nonstop/ccc/oct0208.pdf · • RDF transports extracted DDL description − Replicated audited

4242

Interesting Situation – User Transaction

• DDL in User Transactions−User can embed DDL in BeginTX/EndTx with database

updates

−Believed to be very rare in the real world – your input is most welcome

−SDR requires user intervention OR assumed commit

Page 43: New HP Solution for Replicating NonStop SQL DDL: SDR SDRwhp-hou9.cold.extweb.hp.com/pub/nonstop/ccc/oct0208.pdf · • RDF transports extracted DDL description − Replicated audited

4343

Interesting Situation – Network Tables

• DDL for Distributed Table −Requires coordination of RDF updating on multiple

backup nodes

−User must have RDF/IMPX

−Otherwise, configure SDR network (SDRCOM NETWORK) on all nodes

Page 44: New HP Solution for Replicating NonStop SQL DDL: SDR SDRwhp-hou9.cold.extweb.hp.com/pub/nonstop/ccc/oct0208.pdf · • RDF transports extracted DDL description − Replicated audited

4444

NonStop SDR Summary

• Easy to install, easy to use−User interface SDRCOM is like RDFCOM

−Once installed, just leave SDR running

• Must be deployed on primary and target

• Requires SUPER group to configure and control

• Captures DDL on primary system− Independent of RDF and, like TMF-RDF, can be

configured after SQL DDL capture

• Executes DDL on backup−Works closely with RDF to ensure correct sequence

Page 45: New HP Solution for Replicating NonStop SQL DDL: SDR SDRwhp-hou9.cold.extweb.hp.com/pub/nonstop/ccc/oct0208.pdf · • RDF transports extracted DDL description − Replicated audited

4545

• Where HP NonStop SDR fits• Product overview• Release Plan• Q&A

Agenda

Page 46: New HP Solution for Replicating NonStop SQL DDL: SDR SDRwhp-hou9.cold.extweb.hp.com/pub/nonstop/ccc/oct0208.pdf · • RDF transports extracted DDL description − Replicated audited

4646

General Product Information

• Marketing ID (H, Q) SA47v1

• Product ID T2828 H01−Supported on S-Series, NS-Series, NS BladeSystems

−One version works on all supported NSOS releases

−One version works with RDF IMP, IMPX, and ZLT except:• T0346ABJ (superceded by T0346ABR)

• T0346ABO (superceded by T0346ABS)

• Base release T0346H08

• Targeted for release late October

• Try it – you’ll like it!

Page 47: New HP Solution for Replicating NonStop SQL DDL: SDR SDRwhp-hou9.cold.extweb.hp.com/pub/nonstop/ccc/oct0208.pdf · • RDF transports extracted DDL description − Replicated audited

47

NonStop Remote Database Facility• High throughput and low CPU

utilization, out of the box

• White hot standby included

• Focused on data integrity (nodes in sync)

• Active/active split reciprocal

• Easy installation and maintenance

• March 2009: 9 enhancements− availability, performance,

manageability

Page 48: New HP Solution for Replicating NonStop SQL DDL: SDR SDRwhp-hou9.cold.extweb.hp.com/pub/nonstop/ccc/oct0208.pdf · • RDF transports extracted DDL description − Replicated audited

4848

Look for us in Mannheim

Page 49: New HP Solution for Replicating NonStop SQL DDL: SDR SDRwhp-hou9.cold.extweb.hp.com/pub/nonstop/ccc/oct0208.pdf · • RDF transports extracted DDL description − Replicated audited

4949

Stay prepared, be NonStop – test!

[email protected][email protected]• hp.com/go/nonstopcontinuity• Thanks!• Questions?