Keeping Databases in Sync during migration from z/os to a distributed platform



Similar documents
Realizing the Benefits of Data Modernization

Redbooks Paper. Local versus Remote Database Access: A Performance Test. Victor Chao Leticia Cruz Nin Lei

SMART Solutions for Active Directory Migrations

How To Import And Re-Import Data From An Infosphere Data Model To An Infosplash Server On A Pc Or Macbook

Basics Of Replication: SQL Server 2000

Selecting the Right Change Management Solution Key Factors to Consider When Evaluating Change Management Tools for Your Databases and Teams

Self Service Business Intelligence - how to bring Oracle and DB2 z/os data together

Oracle Database 12c Enables Quad Graphics to Quickly Migrate from Sybase to Oracle Exadata

Welcome. Changes and Choices

<Insert Picture Here> Introducing Data Modeling and Design with Oracle SQL Developer Data Modeler

ENZO UNIFIED SOLVES THE CHALLENGES OF OUT-OF-BAND SQL SERVER PROCESSING

SQL Replication Guide and Reference

In-memory Tables Technology overview and solutions

IBM INFORMATION MANAGEMENT SYSTEMS (IMS ) MIGRATION AND MODERNIZATION - CONVERSION OF HIERARCHICAL DL/1 STRUCTURES TO RDBMS

EII - ETL - EAI What, Why, and How!

New Security Options in DB2 for z/os Release 9 and 10

UltraQuest Cloud Server. White Paper Version 1.0

How to Use PIPS Access to/from SQL Database Utility Program. By PIPSUS Support Team Dr. Chouikha

SOFT 437. Software Performance Analysis. Ch 5:Web Applications and Other Distributed Systems

Chapter 1 - Web Server Management and Cluster Topology

What's so exciting about DB2 Native SQL Procedures?

How to Implement Multi-way Active/Active Replication SIMPLY

SOLUTION BRIEF. JUST THE FAQs: Moving Big Data with Bulk Load.

Real-time Data Replication

Microsoft SQL Server versus IBM DB2 Comparison Document (ver 1) A detailed Technical Comparison between Microsoft SQL Server and IBM DB2

scalability OneBridge

enterprise professional expertise distilled

Affordable, Scalable, Reliable OLTP in a Cloud and Big Data World: IBM DB2 purescale

Postgres Plus xdb Replication Server with Multi-Master User s Guide

Data Masking for Adabas. Becky Albin Chief IT Architect

Legacy Data Migration: DIY Might Leave You DOA

Performance Management for Cloud-based Applications STC 2012

Comparison of DBI Products and BMC SmartDBA

Improve your IT Analytics Capabilities through Mainframe Consolidation and Simplification

Enterprise Report Management CA View, CA Deliver, CA Dispatch, CA Bundl, CA Spool, CA Output Management Web Viewer

Cloud Ready Data: Speeding Your Journey to the Cloud

Consolidate by Migrating Your Databases to Oracle Database 11g. Fred Louis Enterprise Architect

Sybase Replication Server 15.6 Real Time Loading into Sybase IQ

CHAPTER 2 MODELLING FOR DISTRIBUTED NETWORK SYSTEMS: THE CLIENT- SERVER MODEL

Azure Scalability Prescriptive Architecture using the Enzo Multitenant Framework

CASE STUDY: Oracle TimesTen In-Memory Database and Shared Disk HA Implementation at Instance level. -ORACLE TIMESTEN 11gR1

OVERVIEW OF MICROSOFT AZURE

Distributed Data Management

Rehosting Mainframe Workloads

Improve Business Productivity and User Experience with a SanDisk Powered SQL Server 2014 In-Memory OLTP Database

Would-be system and database administrators. PREREQUISITES: At least 6 months experience with a Windows operating system.

be architected pool of servers reliability and

The Shortcut Guide to Balancing Storage Costs and Performance with Hybrid Storage

New method for data replication in distributed heterogeneous database systems

White Paper: Assessing Performance & Response Time Requirements

Desktop Virtualization Technologies and Implementation

CA IDMS Server r17. Product Overview. Business Value. Delivery Approach

Phire Architect Hardware and Software Requirements

Virtuoso Replication and Synchronization Services

Evolution of Distributed Database Management System

Submitted to: Service Definition Document for Database Management for IT Infrastructure Management

DB2 for z/os: Utilities and Application Development

How to Prepare for the Upgrade to Microsoft Dynamics CRM 2013 (On-premises)

How To Test For A Test On A Test Server

WITH A FUSION POWERED SQL SERVER 2014 IN-MEMORY OLTP DATABASE

Metalogic Data Migration Practice

Protecting Microsoft SQL Server

Data Virtualization and ETL. Denodo Technologies Architecture Brief

EonStor DS remote replication feature guide

Disaster Recovery and Business Continuity Basics The difference between Disaster Recovery and Business Continuity

GSX Monitor & Analyzer for Exchange On premise. Performance, Reporting, Management

industry perspective: MAKING SMARTER IT INVESTMENTS: Customizing the Cloud

Application retirement: enterprise data management strategies for decommissioning projects

Whitepaper Best of Both Worlds. Making the most out of your Office 365 Licensing and Increase Productivity How to add Lync Enterprise Voice

META DATA QUALITY CONTROL ARCHITECTURE IN DATA WAREHOUSING

Overview of Luna High Availability and Load Balancing

Data Access Guide. BusinessObjects 11. Windows and UNIX

Tier Architectures. Kathleen Durant CS 3200

BlackBerry Enterprise Server Version: 5.0. Upgrade Planning Guide

DBAs having to manage DB2 on multiple platforms will find this information essential.

Dedicated Real-time Reporting Instances for Oracle Applications using Oracle GoldenGate

Many DBA s are being required to support multiple DBMS s on multiple platforms. Many IT shops today are running a combination of Oracle and DB2 which

Optimizing Your Database Performance the Easy Way

Version Overview. Business value

Integrating data in the Information System An Open Source approach

VERITAS Business Solutions. for DB2

MANAGING USER DATA IN A DIGITAL WORLD

Distributed Database Management Systems

IBM DB2 for z/os. DB2 Version 9 - Zusammenfassung. (DB2_V9_SUMMARYnews.ppt) Dez, 09 1 (*)

CA Repository for z/os r7.2

Performance rule violations usually result in increased CPU or I/O, time to fix the mistake, and ultimately, a cost to the business unit.

VMware vcloud Air. Enterprise IT Hybrid Data Center TECHNICAL MARKETING DOCUMENTATION

Data Distribution with SQL Server Replication

1. INTRODUCTION TO RDBMS

ADDING A NEW SITE IN AN EXISTING ORACLE MULTIMASTER REPLICATION WITHOUT QUIESCING THE REPLICATION

Performance Optimization of Oracle Distributed Databases

Integrating Content Management Within Enterprise Applications: The Open Standards Option. Copyright Xythos Software, Inc All Rights Reserved

Real World Enterprise SQL Server Replication Implementations. Presented by Kun Lee

Transcription:

Keeping Databases in Sync during migration from z/os to a distributed platform Avijit Goswami, PMP, ITIL, IBM Certified DB2 DBA, Sr. Technology Architect, Infosys Limited avijit_goswami@infosys.com Abstract This paper is intended to show the different approaches that can be adopted to keep databases in sync for large scale Database migrations. The solutions documented in this article are based on the real life implementation of an Application Modernization and Re-hosting project that included migration of legacy DB2 z/os databases to UDB on LUW platform for a large organization in the USA. Synchronizing the centralized databases during migration is one of the critical success factors for a large scale database migration project. This article shows how a hybrid approach, depending on the complexity of the environment, can be adopted to overcome synchronization challenges during different phases of migration. The solutions discussed in the article should help database architects to make an appropriate decision on how the migration groups can be formed and how solutions can be implemented to minimize the impact. Introduction Many IT organizations today are gradually moving away from their legacy systems, replacing legacy data stores (including DB2, IDMS, IMS, and VSAM etc.) with different RDBMS databases residing on distributed platforms and legacy applications with web based applications. Today, projects requiring database migration from DB2 for z/os, IMS on z/os or IDMS on z/os to other RDBMS databases on distributed platforms are one of the top priorities for large organizations. These database migration projects help organizations simplify their technology environments by reducing the number of database platforms, taking advantage of the newest features on RDBMS platforms and finally reducing of cost of supporting multiple databases. However, when the legacy database is large and preserved as a centralized repository of mission critical data for diversified applications, it becomes immensely important that the integrity of data during different phases of application and data migration is guaranteed. For large scale application migrations, we generally create different logical groupings to reduce the complexity of the migration tasks and realize project objectives and goals in relatively shorter durations. This makes the task of synchronization of database objects more important during the whole life cycle of the project. Ignoring this aspect can contribute to project delay and in some cases failure of a data migration project. As mentioned in a Bloor Research white paper: Approximately 60 percent of data migration projects have overruns on time and / or budget, which affect business continuity and disrupt operations... Some projects fail completely. So, identifying issues with data synchronization issues ahead of time and putting a proper plan together can make the data migration project a smooth sailing. Problem Statement For many organizations it is very common that there is a centralized legacy database which can be accessed by multiple applications to read and update the common data. It makes life more complex in terms of how we arrive with logical application migration groups where impacted application programs and database tables are grouped in such a way that they are totally isolated from any other application programs. In most of the cases in complex environments, we end up creating logical groups where one database (here DB2) table is accessed by application programs outside the group and vice versa: the application programs in the group access DB2 tables that are residing outside the migration group. This

article provides a detailed approach on how we can overcome the data synchronization issues and meet the project objectives for large scale migrations. Solutions There can be multiple solutions that can be implemented to keep the databases in sync during the database migration. Some of the options are outlined below: Option 1: Migrate Database and Application in a group with remaining Legacy Applications modified to use UDB The following approach should be taken to migrate the impacted application code and databases to the new platform while changing the remaining legacy code to point to the migrated database instead of using DB2 on z/os. Migrate the legacy application code and database to the new platform a. The migrated code will start using the database migrated to UDB on LUW b. If the migrated application needs to access any table which is not yet migrated, then DB2 Connect using DRDA access would be used to access the database still residing on z/os Remaining applications that are yet to move to new platform, will access the migrated database using DRDA access a. A thorough impact analysis would be done to identify the impacted code b. The following coding method to be adopted for the impacted legacy code i. Three-part table names ii. Explicit connect statements c. The following precompiler options 1 to be used i. Use CONNECT(2), explicitly or by default ii. Use SQL(ALL) explicitly for a package that runs on a server that is not DB2 UDB for z/os d. The following remote-bind DRDA access process should be considered i. Bind the DBRM into a package at the remote location. ii. Bind the remote package and the DBRM into a plan at the local site, using the bind option DBPROTOCOL(DRDA). Advantages: 1. Single copy of the Database objects 2. No additional processing required to keep the Databases in sync 3. Minimal changes in the application code. Special attention on the Precompiler and Bind options to enable DRDA access 1 For a comprehensive procedure for pre-compiler and bind options using DRDA, refer to http://publib.boulder.ibm.com/infocenter/dzichelp/v2r2/index.jsp?topic=/com.ibm.db2.doc.apsg/q41cpp.htm

Disadvantages: 1. Temporary changes in the Legacy code to Connect to the Remote servers 2. Slight increase in response time due to network overhead The DRDA Connection between DB2 UDB on LUW and DB2 on z/os is shown in the diagram below: LUW Platform Centralized DB Migrated to LUW also used by nonmigrated application Migrated Application Application still not migrated DB2 Database on z/os interacting with DB on LUW z/os Platform

Option 2: Using DB2 Replication Centre on LUW and IBM DB2 Data Propagator/WebSphere Information Integrator for z/os, Version 8.1 or later In this tool based approach, the source and target tables would be synchronized using DB2 Replication capabilities. The following scenarios can be covered using this approach A. The XYZ Application residing on z/os is accessing a DB2 database for read only purposes. Two copies of the DB2 impacted objects should be retained; one in Mainframe and one in LUW. Any update to LUW UDB by ABC application should be replicated to z/os copy of DB2 using UDB Replication Center See the diagram below: z/os Platform XYZ Application residing on z/os Read only Copy of tables on z/os Replication to z/os using UDB Replication feature ABC Application migrated to LUW The internal process of Replication Center is as shown below. Centralized Database migrated to new platform LUW Platform B. XYZ Application residing on z/os accessing copy of DB2 objects to Update/Insert/Delete records. Updates to z/os DB2 objects should be replicated to UDB using DB2 DataPropagator/WebSphere Information Integratorfor z/os. This is shown in the diagram below.

z/os Platform XYZ Application residing on z/os Centralized Database on z/os Replication to UDB using DB2 z/os Data Propagator ABC Application migrated to LUW Centralized Database migrated to new platform LUW Platform C. ABC application accessing any XYZ Database on z/os platform can access the tables using Nicknames created in UDB federated server. The scenario which combines A and B should be avoided by creating migration groups strategically to avoid two way replications. The groups should be created in such a way so that XYZ Application programs making updates to DB2 tables owned by the ABC Application should be migrated along with ABC Applications programs. Option B should only be used when it is absolutely unavoidable to migrate the XYZ code together with the ABC application code. To create SQL replication from UDB LUW platform to DB2 on z/os platform, the following steps are in general followed on the LUW platform i. Create the Replication process related tables (Changed Data, Capture and Apply Control Tables) in LUW ii. Create a federation server in LUW to connect to DB2 on z/os iii. Identify the z/os tables where the changes will be replicated iv. Create federated nicknames in LUW platform for the target z/os tables v. Create subscriptions sets in LUW and create mapping between source (LUW table) and target tables (Nickname in LUW) vi. Activate the subscription sets. The diagram below depicts this scenario.

Advantages: Disadvantages: 1. Minimum dependency on which server the database is residing when migrating the application 2. The replication utilities will minimize effort for manual designing and coding bridge programs to keep the databases in sync 3. Easier to activate and deactivate replication process on member/table level based on changing requirements 1. Two copies of tables would consume additional storage space 2. Need additional memory for replication if more data being replicated and the number of concurrent transactions is high 3. Additional log volumes are required for source table and change data tables 4. The transaction response time may increase for those transactions that heavily update source tables Option 3: Database on Mainframe and Application Codes Migrated to new Platform This approach is based on a phase-wise migration where in the first phase all applications would be migrated to the new server on distributed platform. The migrated application will access the database residing on Mainframe DB2 connectors (i.e. DB2 Type-4 connector). In the second phase of the project, all the databases will be migrated to LUW UDB. Connections to the databases will be changed for the migrated applications. See the diagram below.

Advantages: Disadvantages: 1. Application and database migrations can be done independently 2. Complexity of application migration in terms of database dependencies can be reduced considerably 3. Could be a good approach when budget is a constraint and databases can be migrated outside application as a separate project 1. Network latency between Application and Database servers can become performance bottlenecks 2. Varied skillsets are required for the support engineers as application and database are in separate platforms 3. Application programs may need to be changed to use Host Variable Arrays and Multi Row fetch and inserts to reduce network latency Option 4: Hybrid Approach This approach deals with the most practical scenario of migrating the applications as logical groups to the new distributed platform along with the databases it owns (updates) in a phased manner. To ensure that the centralized databases are in sync and all applications getting the most updated data from DB2, following steps should be taken. A. In the first step a logical grouping of the application code along with the tables it updates will be produced. Then this group (e.g. Group A) of application code and database tables will be

migrated to the distributed platform. Any other tables residing on z/os which does not belong to this group will be accessed from distributed platform using DRDA Bind protocols. B. In this step, the tables which are under Group A but still need to stay on z/os platform as other application groups are reading data from these tables needs to be synchronized with UDB on LUW. This could be achieved using the UDB Replication Center. Advantages: 1. Reduced complexity in terms of keeping databases synchronized as the replication is needed only from LUW to z/os side 2. Flexibility in grouping the application programs and makes the migration groups smaller. This will also reduce the project risk

Disadvantages: 1. Two copies of common tables 2. Additional storage 3. Network overhead for replication Conclusion Synchronizing the centralized databases during migration is one of the critical success factors for a database migration project. As documented in this article adoption of a hybrid approach based on the complexity of the environment is the best approach in most of the situations. The solutions discussed in this article should help database architects to make an appropriate decision on how the migration groups can be formed to minimize the impact. References http://publib.boulder.ibm.com/infocenter/dzichelp/v2r2/index.jsp?topic=/com.ibm.db2.doc.aps g/q41cpp.htm http://supportline.microfocus.com/documentation/books/hc30/mmintr.htm http://cibecs.com/blog/2011/04/19/data-migration-best-practice/