Solved

DB2 ddl command

Posted on 2010-09-09
4
1,605 Views
Last Modified: 2012-06-21
Hi all DB2 experts !

I have received from our hosting company a zipped file with the following

1. One folder called lobs with 8  *.lob files
2.  One db2move.lst having over 700 row with the format
      !"ROBINSO0"."WMMATCH"!tab683.ixf!tab683.msg!  etc etc
3.  One MAXDB71.ddl   (CLP file) which, according to the header was created with DB2LOOK v. 9.5 on AIX/64 platform

4. Lots of *.ixf and *.msg files whose number I think it matches the number of rows specified in db2move.lst

Challenges
1.  From ddl file I noticed that DB2 Manager version is DB2?AIX  Version 9.5.4.  I am supposed to restore these on a new DB2 v 9.5 running on Windows platform.  Is that possible ?

2.  If the answer at 1 is affirmative, what is the command line and/or tool(s) to run this ddl ?
     Should I put all these files in bin> folder ?

and

3.  As you probably noticed the reason to do the above is to import tables/data  from Maximo application to a new database.  Once the new db is setup I have to pass it on to the developers to work on a Java interface accessing this new backend database.  Should I start fresh with a new database or use a Maximo DB2 which I can automatically create by running Maximo application on my Windows platform

Any input and/or hint will be greatly appreciated !

Cheers

0
Comment
Question by:Bibecu
  • 3
4 Comments
 
LVL 45

Accepted Solution

by:
Kdo earned 500 total points
Comment Utility
HiBibecu,

1.  Yes.  (The answers get trickier from here on.....)

2.  I don't know what the ddl file is.  Go ahead and put all of the files in one folder.  It's probably easier that way.

3.  It looks like the tables were dumped to a set of files with the EXPORT command.  The inverse process would be to load the data with the IMPORT command.  Both commands are part of the command line interface.

EXPORT TO filename OF {IXF | DEL | WSF}
[LOBS TO lob-path [ {,lob-path} ... ] ][LOBFILE lob-file [ {,lob-file} ... ] ]

There are more parameters to the command, but this is the key part that generated the EXPORT files, including the LOB files.

To load those files, you'll have to run an IMPORT with the correct parameters/options.

IMPORT FROM filename OF {IXF | ASC | DEL | WSF}
[LOBS FROM lob-path [ {,lob-path} ... ] ]


Kent
0
 

Author Comment

by:Bibecu
Comment Utility
Thanks Kent,

I will try tomorrow and let you know

About the ddl file mentioned above, it can be opened with a text application such as notepad or Wordpad
It seems that there are lots of DB2 statements in it, create, updates, etc

You are right, these files were created with an export command.  Forgot to mentioned that a file called export.out was also provided with the files mentioned above

Cheers
0
 
LVL 45

Expert Comment

by:Kdo
Comment Utility

.ddl is a well known extension in the Windows world.  I was concerned that it might be a binary file instead of containing the database's DDL.


Kent
0
 
LVL 45

Expert Comment

by:Kdo
Comment Utility

I have GOT to get stronger reading glasses.  I read 'ddl' as 'dll'.  Not at all the same thing...

Apologies if I confused you.


Kent
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Recursive SQL in UDB/LUW (you can use 'recursive' and 'SQL' in the same sentence) A growing number of database queries lend themselves to recursive solutions.  It's not always easy to spot when recursion is called for, especially for people una…
Recursive SQL in UDB/LUW (it really isn't that hard to do) Recursive SQL is most often used to convert columns to rows or rows to columns.  A previous article described the process of converting rows to columns.  This article will build off of th…
This video discusses moving either the default database or any database to a new volume.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now