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 > how do I get DDL info for existing databases/tS/Tabels etc

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-20-04, 14:30
MahendraSetty MahendraSetty is offline
Registered User
 
Join Date: Apr 2004
Posts: 48
how do I get DDL info for existing databases/tS/Tabels etc

Hi,

How can I get DDL info for all table spaces/tables/indexes etc in a database in OS390 without using thirdparty tools.

Thanks
Reply With Quote
  #2 (permalink)  
Old 04-21-04, 05:05
nitingm nitingm is offline
Registered User
 
Join Date: Jul 2003
Location: Austin, TX, USA
Posts: 278
db2look

hi,

There is a utility called db2look that can generate ddl's for you. It is available on Linux/Unix/Windows.

I don't know whether if it is available on OS390. Please check the availability of the same.
__________________
HTH

Nitin

Ask the experienced rather than the learned
Reply With Quote
  #3 (permalink)  
Old 04-21-04, 05:46
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
Re: how do I get DDL info for existing databases/tS/Tabels etc

As Nitin says, you can use db2look if you are using DB2 connect ... It works with V8 on the server and DB2 Connect V8 FP 5 on the client ... Not sure if earlier versions could do this ...

But, the output is not that useful as using db2look against a unix db2 database ... When you run against a host database, it generates the basic DDL, but doesn't bother to generate in which tablespace the table or index is in


HTH

Sathyaram

Quote:
Originally posted by MahendraSetty
Hi,

How can I get DDL info for all table spaces/tables/indexes etc in a database in OS390 without using thirdparty tools.

Thanks
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #4 (permalink)  
Old 04-21-04, 06:35
cdhebar cdhebar is offline
Registered User
 
Join Date: Jul 2003
Posts: 6
Re: how do I get DDL info for existing databases/tS/Tabels etc

ON OS/390 Platform you need to use IBM "DB2 Admin Tool" or if you have BMC, you can use the BMC Catalog Manager to get the DDLs. You can get DDLs for an object and all its dependents including authorizations.
Reply With Quote
  #5 (permalink)  
Old 04-21-04, 12:42
MahendraSetty MahendraSetty is offline
Registered User
 
Join Date: Apr 2004
Posts: 48
Re: how do I get DDL info for existing databases/tS/Tabels etc

Yeah we can get DDL info very easily from BMC. What 'DB2 Admin Tool' we need to use to get this info if we dont have BMC ?

Thanks


Quote:
Originally posted by cdhebar
ON OS/390 Platform you need to use IBM "DB2 Admin Tool" or if you have BMC, you can use the BMC Catalog Manager to get the DDLs. You can get DDLs for an object and all its dependents including authorizations.
Reply With Quote
  #6 (permalink)  
Old 04-22-04, 12:37
MahendraSetty MahendraSetty is offline
Registered User
 
Join Date: Apr 2004
Posts: 48
Re: how do I get DDL info for existing databases/tS/Tabels etc

What IBMS 'DB2 Admin tools' are available ?

thnxs


Quote:
Originally posted by cdhebar
ON OS/390 Platform you need to use IBM "DB2 Admin Tool" or if you have BMC, you can use the BMC Catalog Manager to get the DDLs. You can get DDLs for an object and all its dependents including authorizations.
Reply With Quote
  #7 (permalink)  
Old 04-22-04, 19:21
cdhebar cdhebar is offline
Registered User
 
Join Date: Jul 2003
Posts: 6
"Admin Tools" is an IBM product. I think, it is bought separately from DB2.
Reply With Quote
  #8 (permalink)  
Old 04-22-04, 19:28
cdhebar cdhebar is offline
Registered User
 
Join Date: Jul 2003
Posts: 6
Reply With Quote
  #9 (permalink)  
Old 04-26-04, 11:48
MahendraSetty MahendraSetty is offline
Registered User
 
Join Date: Apr 2004
Posts: 48
So without using external tools, we cant get DDL INfo. Is this statement correct ? If wrong then why / How to get the DDL info ?

Thanks
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