Validate database object consistency after migrating from IBM Db2 z/OS to Amazon RDS for Db2
by Feng Cai via AWS Database Blog ([Global] oracle cloud)
URL: https://ift.tt/BhEoOHL
Amazon Relational Database Service (Amazon RDS) for Db2 manages time-consuming database administration tasks, such as provisioning, patching, backups, recovery, failure detection, and repair, allowing enterprises to focus on their business and the applications that support it. This offers an opportunity for customers running IBM Db2 for z/OS databases to migrate to RDS for Db2 as part of their mainframe modernization journey. By migrating mainframe workloads into RDS for Db2, you can experience the benefits of a fully managed, highly available, secure, and compliant service.
In this post, we delve into the best practices for migrating database objects from IBM Db2 z/OS to RDS for Db2 and walk you through how to validate these migrated database objects. It’s crucial to thoroughly validate the consistency of database objects, including schema structure, constraints, and dependencies.
Tools for database object migration:
The following are some of the tools available to migrate an application’s database objects. These tools facilitate the generation of the data definition language (DDL) for the Db2 z/OS tables. You can use DDL commands to create the objects in RDS for Db2.
Db2 z/OS tools such as BMC Catalog Manager, RC/Migrator, Db2 Administration Tool for z/OS.
Third party tools such as Erwin, Toad for Db2, Dbeaver .
IBM native tools such as IBM Data Studio, db2Look.
Although most DDLs are compatible, you might need to modify certain environment-specific keywords depending on the tools you use. For example, not all tools generate the keywords in italics in the following code snippet:
CREATE TABLE ABC()
IN "DBNAME"."TSNAME"
CCSID EBCDIC
Note: For the preceding tools to remotely connect to the Db2 z/OS instance, a separate Db2 connect license might be required. When Db2 connect isn’t an option, the Db2 Community Edition is a free option to consider.
Database object validation
As a best practice, validate the database objects after migrating them from the source Db2 for z/OS to the target RDS for Db2. Confirming the successful migration of the objects is a necessary prerequisite for data migration.
In the subsequent sections, we outline the steps involved in comparing and validating database objects across the source and target databases. The objective is to make sure that both the count and characteristics of objects, such as tables, views, stored procedures, and functions, are consistent between the two environments.
In this post, we provide steps to validate the following objects:
Schemas
Tables
Views
Materialized query tables (MQT)
Primary keys
Foreign keys
Unique indexes
Nonunique indexes
Triggers
Stored procedures
Functions
Sequences
Note: Amazon RDS for Db2 doesn’t provide native support for COBOL stored procedures. As a r...
Technical Manager @ G N Solutions Pvt. Ltd. | Designing Cloud Elements, Saving Costs with AI tools | Degree in Mechanical Engg | Expert in Database Technologies, RDBMS or NoSQL database
3wWe are in staffing, we provide you resources with DB2 technology