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 > Database compare

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-11-03, 13:11
jfkuser jfkuser is offline
Registered User
 
Join Date: Mar 2003
Posts: 59
Database compare

Hi ,

We need to compare two databases from two different server. I tried generating database DDL using db2look and then using UNIX 'diff' command to check for the differences. But its giving me whole lot of differences even though there is a blank line in between.

Any suggestions.

Thanks in advance
j
Reply With Quote
  #2 (permalink)  
Old 12-12-03, 09:13
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
I do not know of any specific tool that will do what you want. You could try to do the following:

From your two databases A & B:

Generate a third DB (C) from the DDL of A.
db2move from B to C. If there are no errors, then A & B are the same.

HTH

Andy
Reply With Quote
  #3 (permalink)  
Old 12-12-03, 10:47
jsander jsander is offline
Registered User
 
Join Date: Apr 2003
Posts: 191
Re: Database compare

Hi,

3rd party tools like Powerdesigner DataArchitect should be able to compare two physical data models after reverse engineering from an odbc data source.

db2look does not lend itself well for diffing, unless you slice the statements into paragraphs, convert those paragraphs to one liners, sort them and then do the diff.

Another option would be to compare the system catalogs, if you just look for tables or indexes etc.

Johann

Quote:
Originally posted by jfkuser
Hi ,

We need to compare two databases from two different server. I tried generating database DDL using db2look and then using UNIX 'diff' command to check for the differences. But its giving me whole lot of differences even though there is a blank line in between.

Any suggestions.

Thanks in advance
j
Reply With Quote
  #4 (permalink)  
Old 12-15-03, 15:46
jsasvari jsasvari is offline
Registered User
 
Join Date: Jun 2003
Location: Canada
Posts: 37
Re: Database compare

You could try WinSQL by Synametrics (http://www.synametrics.com/Synametri...p/Products.jsp) or, if you are willing to spends some $$$, try ErWin or DBArtisan.

Cheers,

Julius
Reply With Quote
  #5 (permalink)  
Old 12-15-03, 19:20
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
Re: Database compare

You need WinSQL professional to use the database diff feature ...

If this is a one time requirement, yes, you can download a fully functional verison of winsql professinal and use the feature ... If not, it will cost $$s but less than many other tools

Cheers
Sathyaram

Quote:
Originally posted by jsasvari
You could try WinSQL by Synametrics (http://www.synametrics.com/Synametri...p/Products.jsp) or, if you are willing to spends some $$$, try ErWin or DBArtisan.

Cheers,

Julius
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
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