MySQL Forums
Forum List  »  Oracle

Re: porting data from oracle to mysql
Posted by: Josh Chamas
Date: November 16, 2004 06:54PM

manish singh wrote:
> hi
> iam new to mysql and i have a question regarding
> porting/moving data from
> oracle database/s to my sql database.
> the scenario is likethis:
> we have 3 oracle databases and we have proposed
> a unified reporting environment
> where data from all these databases will be moved
> in one mysql db and then reports
> will be generated.
> now what are the things to keep in mind while
> pushing data from
> oracle to mysql and what are the different ways in
> which this can achieved efficiently?

If you are using a generic database API like JDBC or DBI, this is easy to create your own custom ETL process, but there are tool vendors like Embarcadero DT/Studio ( http://www.embarcadero.com ) that can also help with this. If you write your own program, consider either using multi-row insert statements of the form

insert into TABLE (col1, col2) values (row1, row1), (row2, row2), ..., (rowN, rowN)

to insert say 5000 rows in just one insert statement. Or build a text tab delimited file for use with LOAD DATA INFILE command.

Also consider the important decision between using InnoDB and MyISAM storage engine types for your tables. MyISAM can be very good for reporting where you do not need ACID transactional integrity whereas InnoDB gives you this, but at a cost of some per row overhead which can be substantial for long & narrow fact tables. Also MyISAM supports MERGE tables which can be used to give you a form of table partitioning if you are building a data warehouse.

BTW, if you do end up picking MyISAM + MERGE for partitioning and reporting, I think you will have a near ideal reporting environment, and a very good application of MySQL in your database infrastructure.

Regards,

Josh

Josh Chamas
Director, Professional Services
MySQL Inc., www.mysql.com
Get More with MySQL! http://www.mysql.com/consulting

Options: ReplyQuote


Subject
Views
Written By
Posted
15221
October 25, 2004 12:26AM
Re: porting data from oracle to mysql
12513
November 16, 2004 06:54PM
43184
November 16, 2004 09:47PM
13651
November 17, 2004 09:54PM
9883
November 17, 2004 11:36PM
7645
November 21, 2004 10:05PM
13149
November 22, 2004 04:18PM
6142
November 23, 2004 12:29AM
5531
November 23, 2004 01:07PM
5240
November 23, 2004 11:39PM
5550
November 24, 2004 12:06AM
4580
November 24, 2004 02:10AM
5715
November 24, 2004 03:36AM
4067
November 24, 2004 04:43AM
4470
November 24, 2004 03:49PM
4540
November 25, 2004 01:52AM
4547
January 13, 2005 01:42AM
7015
September 05, 2007 10:18AM
7624
January 14, 2008 02:38PM
6148
February 09, 2005 01:22AM
5639
February 10, 2005 05:18PM
5847
March 14, 2007 03:02AM
5328
February 06, 2009 02:07PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.