oracle to sql server migration process

Post on 09-May-2015

2.909 Views

Category:

Technology

3 Downloads

Preview:

Click to see full reader

TRANSCRIPT

<Insert Picture Here>

Database MigrationSQL Server to Oracle11g

Key Aspects of a Migration

• What is migration?• Conversion of an existing application environment into a

new architecture by preserving data and functionality of the old architecture

• What are the key components in a migration?• Schema (table definitions)• Data (content of tables)• Application

• What are the major steps in a migration?• Analysis• Migration• Testing• Deployment

Migration - SQL Server to Oracle11g

• Migration Process• Oracle Migration Workbench• Database Migration Verifier

Process

1. Migrating Schema and objects

2. Migrating Business Logic

3. Migrating the Clients applications

Migrating Schema and Objects

• Tables and Data• Primary Keys• Check Constraints• Foreign Keys• Indexes• Views• Groups / Users

• Databases

• Stored Procedures

• Triggers

• Grants

• Rules

• Defaults

• User Defined Types

Migratable Objects in the database

Migrating the Business Logic

• Primarily in Transact-SQL (T/SQL)• Triggers, Stored Procedures• Conversion to PL/SQL handled by Migration Workbench

• Extended Stored Procedures• Callouts from the database packaged as DLL’s and

written in C,C++• Manual conversion process

• .NET CLR Stored Procedures• Stored procedures written in a .NET language• 10gR2 supports these

Business Logic in the database in SQL Server

• No big issue if you don’t have any business logic on the client

• Adapt the way how to call the business logic• Managing Resultsets • Adapt the way how to access the database• Error Handling• In some cases need some rewriting

Migrating the Clients applications

7. Production

2. Assessment

3. Migration

4. Testing

1. Evaluation

5. Optimization

6. Customer Acceptance

8. ProjectSupport

MigrationLifecycle

Migration Tools Support

Migration - SQL Server to Oracle11g

• Migration Process• SQL Developer Migration Workbench• Database Migration Verifier

What is the SQL Developer Migration Workbench?

• SQL Developer Migration Workbench:• Is a wizard-driven Java tool• Simplifies the process of migrating third-party databases

to the Oracle platform• Migrates the entire database

schema, including triggers and stored procedures

Migration Workbench Capabilities

• Migration Workbench enables you to:• Perform the migration in stages using wizards and

scripts• Retrieve source database information via online capture

or an offline capture• Customize work-in-progress database objects in a

repository• Parses and transforms stored procedures, triggers, and

views to Oracle PL/SQL • Monitor the status of the migration via reports and

messages

Migration Workbench UI

Translation Scratch EditorStatement Level Translation

Translation Diff EditorMatching Statements and Blocks

T-SQL Editor Code Folding / Syntax Highlighting

SQL Developer Migration WorkbenchUsing Workbench Within Migrations

1. Capture the source database structure into Source Model (online/offline)

2. Convert to Oracle Model • Create a representation of the structure of the destination

database

3. Migrate the source database• Create the schema online or offline• Transfer the data online or offline

Migration - SQL Server to Oracle11g

• Migration Process• Oracle Migration Workbench• Database Migration Verifier

Database Migration Verifier

• Compares schema and data between source and migrated Oracle database

• Supports verification of tables, indexes, function, stored procedures, and triggers, and view objects

• Validates data in migrated Oracle database against source database

• Generates a Verification Report of schema and data verification failures summarized by object name and type

Database Migration Verifier

• Provides command line tool interface, allowing tool to be seamlessly integrated into existing testing processes

• Provides portable Java application implementation allowing tool to be easily moved between Windows and UNIX environments

• Provides support for Microsoft SQL Server 2000 and Sybase Adaptive Server 12 source databases

AQ&Q U E S T I O N SQ U E S T I O N S

A N S W E R SA N S W E R S

top related