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 04-15-04, 15:40
toby25 toby25 is offline
Registered User
 
Join Date: Sep 2003
Posts: 63
db2look

I need to capture tablespace ddl and table ddl seperately from production database? does anyone know how to do it using db2look?

Thanks in advance
toby
Reply With Quote
  #2 (permalink)  
Old 04-16-04, 04:19
Tank Tank is offline
Registered User
 
Join Date: Feb 2004
Location: Copenhagen
Posts: 220
Yes probably

Please post OS and Version

If you're on AIX/Unix/Linux
type: 'db2look' and you will
get an exhaustive listing of
options that will allow you to
specify your output.

BOW
__________________
Kristian K. Hansen
Project Supervisor
National Board of Health
Reply With Quote
  #3 (permalink)  
Old 04-18-04, 01:06
famudba famudba is offline
Registered User
 
Join Date: Jan 2004
Location: Tallahassee, FL, USA
Posts: 96
db2look -d DBname -e -x -o outputfile


this will give all tables,index,views,alias,grants.


for only tablespaces


use this , to get DDl for BPs;Tablespaces

db2look -d DBname -l -o outputfilename


if you want only DB & DBM cfg

use this

db2look -d DBname -f -o outputfilename


Hope this will help you


Lekharaju Ennam
Certified Oracle8i & DB2 UDB DBA
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