MySQL Forums
Forum List  »  Oracle

Re: Linking Oracle tables to MySQL
Posted by: Josh Chamas
Date: November 17, 2004 10:02AM

Marty Metras wrote:
> Josh,
>
> What I am doing now is exporting a block of data I
> might need as a flat text file from MySQL and
> importing it in to Oracle and then processing it
> to getthe few records I need.
> I am doing this with SQL Shell scripts using ssh
> and ftp. It works but the block of data I need
> keeps getting larger.
>
> Maybe with come creative scripting I can shorting
> the block of data.
>

If the original data does not delete records, then you could have a timestamp column, call it "updation" perhaps, and then you can just export/import the records that have changed recently. Sometimes an alternative to deleting rows is to mark them as inactive or deleted with a column. I don't know how dynamic your table is as this model does not fit in many cases.

Also, consider on the MySQL side of things that when you import the data, you might import it into a temporary staging table first, and then rename the table to the location you want while moving the current table away, and this would be less disruptive to your applications.

Regards,

Josh



> Thanks for your input Josh.
> Marty

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
6468
November 05, 2004 04:28PM
8272
November 16, 2004 06:39PM
3733
November 17, 2004 07:55AM
Re: Linking Oracle tables to MySQL
3602
November 17, 2004 10:02AM
3303
November 17, 2004 01:15PM
6705
November 17, 2004 01:46PM
2988
November 17, 2004 02:18PM
3231
November 17, 2004 02:41PM
2773
November 17, 2004 03:09PM
3324
December 08, 2004 04:01PM
3094
December 14, 2004 09:20AM
3151
December 14, 2004 09:27AM
3372
December 14, 2004 08:52PM
6674
t p
July 04, 2006 04:46PM
2987
t p
July 06, 2006 03:37PM


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.