my sql data migration

26
Data Migration To MySQL Anil Yadav OSSCube

Upload: anil-yadav

Post on 14-Jan-2015

4.381 views

Category:

Technology


4 download

DESCRIPTION

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

TRANSCRIPT

Page 1: My Sql Data Migration

Data Migration To MySQL

Anil YadavOSSCube

Page 2: My Sql Data Migration

What is Migration?

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

Page 3: My Sql Data Migration

Why MySQL?

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

(Reason)

Page 4: My Sql Data Migration

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

Page 5: My Sql Data Migration

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?

Page 6: My Sql Data Migration

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

Page 7: My Sql Data Migration

Migration from Oracle

Page 8: My Sql Data Migration

How to Migrate?

Manually Automated

• MySQL Migration tool kit• SwissSQL• SQLWays

Page 9: My Sql Data Migration

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

Page 10: My Sql Data Migration

Oracle Compatible Datatype

Oracle MySQL

BFILE LONGBLOB

BLOB LONGBLOB

RAW BLOB

LONG RAW MEDIUM OR LONGBLOB

VARCHAR2 VARCHAR

FLOAT (24) REAL

CLOB, RAW MEDIUMTEXT

Page 11: My Sql Data Migration

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

Page 12: My Sql Data Migration

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?

Page 13: My Sql Data Migration

Migration Using MySQL Migration tool kit

Page 14: My Sql Data Migration

Migration using MySQL Migration Toolkit

Open Source Does

• Tables/View• Data

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

Page 15: My Sql Data Migration

Migration Using MySQL migration tool kitChoose Source Database

Page 16: My Sql Data Migration

Migration Using MySQL migration tool kitChoose Target Database

Page 17: My Sql Data Migration

Migration Using MySQL migration tool kitChoose Schema To Migrate

Page 18: My Sql Data Migration

Migration Using MySQL migration tool kitSelect Object to Migrate

Page 19: My Sql Data Migration

Migration Using MySQL migration tool kitSelect Migration Method

Page 20: My Sql Data Migration

Migration Using MySQL migration tool kit

Create MySQL Target Objects

Page 21: My Sql Data Migration

Migration Using MySQL migration tool kitMigrate Data to MySQL

Page 22: My Sql Data Migration

Migration Using MySQL migration tool kitReview Migration

Page 23: My Sql Data 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

Page 24: My Sql Data Migration

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.

Page 25: My Sql Data Migration

Any Question?

Page 26: My Sql Data Migration

Thank You!