my sql data migration

Post on 14-Jan-2015

4.381 Views

Category:

Technology

4 Downloads

Preview:

Click to see full reader

DESCRIPTION

This is a presentation to migrate database from any DB to MySQL.

TRANSCRIPT

Data Migration To MySQL

Anil YadavOSSCube

What is Migration?

Data migration is the process of transferring data between storage types, formats, or computer systems.

Why MySQL?

Cost EOL H/W and S/W Integration to newer system Trend Supports all features now

(Reason)

Migration Checklist

What are characteristics of the application?

• OLTP, Data warehouse etc

How quickly do you need to migrate? • Weeks, Months

What tools are available too perform the migration?

• ETL, Scripts, ER Tools, Manual

How many objects will be migrated? • Tables, Indexes, Views, Stored Procedures • Triggers, Sequences, Others

Migration Checklist

How large is the database? • MB, GB, TB

Are you looking to increase capacity or scalability?

• If so, how much?

How many concurrent users?

Data Migration Life Cycle

Document SourceObjectsRelationshipRules

Design targetsObjectsRelationshipRules

Design ETL FlowSimple moveTransformationAggregation

Build/Run Migrations ETL Runs Scheduled/Recurring Validation Migrate Code?

Performance Test

Simulation Metric Analysis Review

Migration from Oracle

How to Migrate?

Manually Automated

• MySQL Migration tool kit• SwissSQL• SQLWays

Oracle Datatypes

Oracle 10g supports 22 native datatypes

MySQL supports most except .• INTERVAL DAY TO SECOND• INTERVAL YEAR TO M MONTH • ROWID • TIMESTAMP WITH LOCAL TIME ZONE• TIMESTAMP WITH TIM ME ZONE• UROWID

Oracle Compatible Datatype

Oracle MySQL

BFILE LONGBLOB

BLOB LONGBLOB

RAW BLOB

LONG RAW MEDIUM OR LONGBLOB

VARCHAR2 VARCHAR

FLOAT (24) REAL

CLOB, RAW MEDIUMTEXT

Oracle Predicates Supported by MySQL Comparison conditions Exists conditions Floating-point conditions In conditions Is/member conditions Null conditions Pattern matching conditionss Range conditions XML conditions

Constraint

There are some constraint for migration. MySQL does not support some major function.

• Package• No Raise error capability• Mail sending• Application error generation• Exception handling

Is there any solution for above?

Migration Using MySQL Migration tool kit

Migration using MySQL Migration Toolkit

Open Source Does

• Tables/View• Data

Does Not (Yet)• Sequence• Stored procedure• Trigger

Migration Using MySQL migration tool kitChoose Source Database

Migration Using MySQL migration tool kitChoose Target Database

Migration Using MySQL migration tool kitChoose Schema To Migrate

Migration Using MySQL migration tool kitSelect Object to Migrate

Migration Using MySQL migration tool kitSelect Migration Method

Migration Using MySQL migration tool kit

Create MySQL Target Objects

Migration Using MySQL migration tool kitMigrate Data to MySQL

Migration Using MySQL migration tool kitReview Migration

Migration using other tool

Some Object can not migrate using MySQL migration tool kit.

• Stored procedure• Function• Sequence• Package• Trigger

Write code manually or use other tool

Migration using other tool

SQLWays can migrate following object alos • Stored Procedure• Function• Sequence

Still no tool available to migrate• Package• Trigger

We have alternative for package and triggers.

Any Question?

Thank You!

top related