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 > Why to split db2look file?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-10-10, 06:12
DB Guide DB Guide is offline
Registered User
 
Join Date: Oct 2009
Posts: 14
Why to split db2look file?

Hello,

When I generate db2look script, I always need to bifurcate the main script in to different files manually (Ex: sapatate file for tblspace ddl, table ddl, func & proc ddl, sequences ddl etc.)! and then execute those files in sequence saparately.

If i don't do that way and directly execute main db2look file, it gives "Object not Found" error for dependent object whose parent's ddl comes later in the script.

IN SHORT: Why db2look script is not in appropriate sequence? and is there any way to generate it with exact sequence of objects.

Thanks!

P.S.: db2 v9.1 on solaris 5.10
Reply With Quote
  #2 (permalink)  
Old 01-11-10, 14:39
MarkhamDBA MarkhamDBA is offline
Registered User
 
Join Date: Dec 2008
Location: Toronto, Canada
Posts: 381
there is a -ct option in db2look to generate DDL by object creation time. This should do.

db2look - DB2 Statistics and DDL Extraction Tool
__________________
DB2 v9.5 ESE on AIX v6.1/ v9./10 on z/OS
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