IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Database comparison of two similar kind of databases


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Subhu_Chatterbox

New User


Joined: 25 Feb 2010
Posts: 12
Location: Hyd

PostPosted: Fri Feb 26, 2010 4:15 pm
Reply with quote

I am having two similar kind of database one is of development and another is of production.
And they are out of synch, lots of data mismatches are there..
I have 2 ideas for that
1. unload those tables into flat files and compare through 3.12. But this is pretty lenghty
2. write query for each table

Is there any other way which we can do for the entire database?or some utility?
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Fri Feb 26, 2010 4:23 pm
Reply with quote

What your DBAs have to say on that?
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Fri Feb 26, 2010 4:26 pm
Reply with quote

Similar tables ? Or are they the same ?
Production tables are always leading, so get those production
tables into your development environment.
Why would one want to know the difference in data between
production and development?
Back to top
View user's profile Send private message
Bharath Bhat

Active User


Joined: 20 Mar 2008
Posts: 283
Location: chennai

PostPosted: Fri Feb 26, 2010 4:35 pm
Reply with quote

I do not worry about data difference between prod and dev. I just unload prod data and refresh dev tables whenever I need proper data.
Back to top
View user's profile Send private message
Subhu_Chatterbox

New User


Joined: 25 Feb 2010
Posts: 12
Location: Hyd

PostPosted: Fri Feb 26, 2010 5:06 pm
Reply with quote

We don't have access to refresh I guess. Being a support team member, we just need to make one report of discrepancies.
So is there anyway of comparing these two as a whole? any utility for this?
Back to top
View user's profile Send private message
Subhu_Chatterbox

New User


Joined: 25 Feb 2010
Posts: 12
Location: Hyd

PostPosted: Fri Feb 26, 2010 5:08 pm
Reply with quote

PeterHolland wrote:
Similar tables ? Or are they the same ?


They are same, but some data needs to be different, as per requirement.
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Fri Feb 26, 2010 5:24 pm
Reply with quote

I hope we are talking DB2 tables here, if thats the case (and why can i find that info?) try the following manual :

IBM DB2 Object Comparison Tool for z/OS SC18-9554-08

at :

publib.boulder.ibm.com/infocenter/dzichelp/v2r2/topic/com.ibm.db2tools.gou.doc.ug/gocugd24.pdf?noframes=true
Back to top
View user's profile Send private message
Subhu_Chatterbox

New User


Joined: 25 Feb 2010
Posts: 12
Location: Hyd

PostPosted: Fri Feb 26, 2010 5:27 pm
Reply with quote

Thanks Peter it helps icon_smile.gif
Back to top
View user's profile Send private message
tomehta

New User


Joined: 18 Aug 2008
Posts: 98
Location: India

PostPosted: Fri Mar 05, 2010 3:04 pm
Reply with quote

Hi Peter,
the tool seems to give compare the definiton of Db2 objects,
is there a way it can be used to compare the data in the application tables. Say I have to compare the data between a prod and a parallel environment table.

thanks
Back to top
View user's profile Send private message
Subhu_Chatterbox

New User


Joined: 25 Feb 2010
Posts: 12
Location: Hyd

PostPosted: Fri Mar 05, 2010 3:13 pm
Reply with quote

yes in case where refreshing is not possible....can anyone suggest any DB2 utility?
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Mar 05, 2010 8:29 pm
Reply with quote

Hello,

Unload both. Use SPUERC to compare the unloaded data.

Keep n mind that if there is anything in the data that is related to current date and/or time, the compare will show this as a mis-match.

If you need a custom coparison, you will need to implement a custom process.
Back to top
View user's profile Send private message
daveporcelan

Active Member


Joined: 01 Dec 2006
Posts: 792
Location: Pennsylvania

PostPosted: Fri Mar 05, 2010 8:48 pm
Reply with quote

We use IBM Optim (formerly PST), but it costs money.

It works great, and you can tell it to ignore timestamps during the compare.

I still do not understand why you would need to know or even care that production and test data is out of sync.

Even if you were to generate a report, by the time someone looked at it, it would be obsolete.

If a batch job or cics transaction ran against either set of data, the results of the report are inaccurate. What then?

This seams to me to be an excerise in futility.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts What database does Jobtrac use CA Products 4
No new posts Capturing COBOL job and program names... All Other Mainframe Topics 2
No new posts Products/Tools to Optimize Adabas Dat... Compuware & Other Tools 2
No new posts VB File comparison JCL & VSAM 1
No new posts AUTHORIZED database error in HALDB IMS DB/DC 2
Search our Forums:

Back to Top