Ingres Community Forums Login Register Ingres.com  

Ingres Community Forum


Go Back   Ingres Community Forums > Ingres Forums > DBA Forum
 

Reply
 
LinkBack Thread Tools Display Modes
Old 2008-11-20   #1 (permalink)
Junior Member
 
Join Date: Nov 2008
Posts: 1
Default Export Ingres data to iSeries DB2

I need to export several data files/tables from Ingres II 2.1 on an HP UX system to an IBM iSeries DB2 platform. I can do this with a SQL tool that exists on the Ingres machine, but all that creates are flat files. I want to maintain the field names, definitions, etc. as well as the data. Are you aware of any tools or methods to do this?
markglazener is offline   Reply With Quote
Old 2008-11-20   #2 (permalink)
Ingres Corp
 
Join Date: Mar 2007
Location: Australia
Posts: 229
Blog Entries: 1
Default

Some of the case tools allow you to "reverse engineer" your database and generate a schema script, if you can find one that works with both Ingres and DB2 you may be able to do it that way.

If you're willing to do some hand work you could run "copydb" in Ingres, which would generate an unload script (copy.out) and a reload script (copy.in). The reload script will contain all the SQL (in Ingres format) needed to re-create the entire schema; with some massaging you may be able to convert the copy.in script into DB2 format.
stephenb is offline   Reply With Quote
Old 2008-11-21   #3 (permalink)
Member
 
daryl.monge@ingres.com's Avatar
 
Join Date: Mar 2007
Posts: 50
Default

XML is an effective (but verbose) means of completely describing both the table/column information as well as the data in a flat file export format.
daryl.monge@ingres.com is offline   Reply With Quote

Reply



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


© 2009 Ingres Corporation. All Rights Reserved