If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Extract table structure from ixf file

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-23-06, 06:55
magro magro is offline
Registered User
 
Join Date: Nov 2003
Posts: 5
Extract table structure from ixf file

Hi everyone!

I need your help:

I have IXF files for several tables with content from a DB2 zOS V7 installation, extracted from a db2connect client.

I have an IBM DB2 UDB Version 8.1.6 ESE on my computer and need to extract only the structural information from the IXF-files (because I have to reconstruct them in an Oracle DB).

Is there any way to do that directly from the ixf-files?

I have searched the DB2 section of this forum but my keywords didn't produce a helpful result.

Thanks a lot!

Regards,

M.

P.S.: Ahem, by the way - I know that importing the ixf into my db2 installation would be an option. But I was interested in a "direct" way from the ixf to the create statement....

Last edited by magro; 02-23-06 at 07:27.
Reply With Quote
  #2 (permalink)  
Old 02-23-06, 08:58
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Reply With Quote
  #3 (permalink)  
Old 02-23-06, 11:22
J Petruk J Petruk is offline
Registered User
 
Join Date: Mar 2004
Location: Toronto, ON, Canada
Posts: 513
Quote:
Originally Posted by magro
P.S.: Ahem, by the way - I know that importing the ixf into my db2 installation would be an option. But I was interested in a "direct" way from the ixf to the create statement....
Just a note on that... you can specify ROWCOUNT 1 so you don't have to load the whole thing.

My suggestion:
-------------------
db2 "IMPORT FROM myfile.ixf OF IXF ROWCOUNT 1 CREATE INTO B" >> /dev/null
db2look -d LISDEV -t B -e
db2 "DROP TABLE B" >> /dev/null
------------------

OK, it's cheating... but no table, just the DDL output... done!
__________________
--
Jonathan Petruk
DB2 Database Consultant
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On