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 > comparing schema in db2

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-30-10, 09:13
oracle10gsingh oracle10gsingh is offline
Registered User
 
Join Date: Nov 2007
Posts: 72
comparing schema in db2

Dear All,

I am new to db2 ..and i want to compare 2 schema's like objects there in x schema not there in y schema and object datatype there x schema different in y schema ...can someone provide me the sql .how to do it ?
Reply With Quote
  #2 (permalink)  
Old 07-30-10, 09:36
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
Use the catalog tables (syscat).

Andy
Reply With Quote
  #3 (permalink)  
Old 07-30-10, 09:39
oracle10gsingh oracle10gsingh is offline
Registered User
 
Join Date: Nov 2007
Posts: 72
can you provide me SQL ....
Reply With Quote
  #4 (permalink)  
Old 08-02-10, 04:02
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
What exactly is the problem you're facing? You just have to join a couple catalog tables and apply the predicates.
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
Reply With Quote
  #5 (permalink)  
Old 08-03-10, 04:22
nvk@vhv nvk@vhv is offline
Registered User
 
Join Date: Jan 2010
Posts: 294
Hi,

have a look at the Aqua DataStudio. This Tool has a utilty to compare Schemas in a database:
Database query tool - Aqua Data Studio is the query analyzer that works with Oracle, DB2, Sybase, MySQL and more.

Cheers
nvk
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