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
18010
October 25, 2004 12:26AM
Re: porting data from oracle to mysql
13898
November 16, 2004 06:54PM
45694
November 16, 2004 09:47PM
14896
November 17, 2004 09:54PM
11080
November 17, 2004 11:36PM
8768
November 21, 2004 10:05PM
14413
November 22, 2004 04:18PM
7161
November 23, 2004 12:29AM
6675
November 23, 2004 01:07PM
6216
November 23, 2004 11:39PM
6573
November 24, 2004 12:06AM
5674
November 24, 2004 02:10AM
6850
November 24, 2004 03:36AM
4949
November 24, 2004 04:43AM
5439
November 24, 2004 03:49PM
5543
November 25, 2004 01:52AM
5564
January 13, 2005 01:42AM
8147
September 05, 2007 10:18AM
8838
January 14, 2008 02:38PM
7318
February 09, 2005 01:22AM
6676
February 10, 2005 05:18PM
6917
March 14, 2007 03:02AM
6504
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.