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 to compare two table layout

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-09-11, 12:58
rreword rreword is offline
Registered User
 
Join Date: Jul 2011
Posts: 7
How to compare two table layout

Hi,

We have 4 different schema in same database, all schema contains similar table structures but we have found some layout differences in some of table.

Is there any command which compare table layout of same table from two difference schema?

This is for DB2 9

Thanks,

rwe
Reply With Quote
  #2 (permalink)  
Old 09-09-11, 13:05
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Optim Database Administrator has this feature I believe. Possibly Toad as well - check their web site.
Reply With Quote
  #3 (permalink)  
Old 09-09-11, 13:55
smith43017 smith43017 is offline
Registered User
 
Join Date: Sep 2006
Posts: 92
ODA had this option Select the schema and right click on it you have option compare schema.

Quest Toad for db2, DBARTISA's Change manager has this option.
Reply With Quote
  #4 (permalink)  
Old 09-09-11, 16:24
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
Or you can use db2look to generate DDL for different schemas and then do a "diff" on them.
Reply With Quote
  #5 (permalink)  
Old 09-09-11, 21:58
rreword rreword is offline
Registered User
 
Join Date: Jul 2011
Posts: 7
Thanks for reply...Currently we don't have Toad or any other tool... but getting table ddl and doing diff can give me answers..

Thanks for your quick reply...
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