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 > db2look

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-05-10, 16:15
blazer789 blazer789 is offline
Registered User
 
Join Date: Jun 2009
Posts: 221
db2look

Is there any way to extract the DDL of the existing wrapper on the database ?

I know we can do it by running db2look -d dbname -wrapper and grep for the create wrapper or create server statement but because db2look with -wrapper option is returning the DDL for all its federated objects, the box is going out of memory. So I need a workaround to extract the DDL of just the wrapper/server create statements. Any help would be appreciated.
Reply With Quote
  #2 (permalink)  
Old 01-05-10, 17:01
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Not sure what you mean by "going out of memory". If you are concerned about the disk space, you can pipe db2look output directly through grep, without writing the script to disk.
Reply With Quote
  #3 (permalink)  
Old 01-05-10, 20:34
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
The only other alternatives would be to find some other tool (if there are any) or to piece together the statements based on the DB2 catalog tables. That's what db2look is doing as well.
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
Reply With Quote
  #4 (permalink)  
Old 01-06-10, 16:26
blazer789 blazer789 is offline
Registered User
 
Join Date: Jun 2009
Posts: 221
Thanks stolze
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