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

Retrieving DB2 data across multiple mainframe machines.


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

New User


Joined: 09 Apr 2008
Posts: 83
Location: Chennai

PostPosted: Tue Jul 20, 2010 1:32 am
Reply with quote

Hi,
We have 3 mainframe machines A, B and C in our system. The DB2 database resides in the mainframe machine A and it is where the DB2 tables get updated through different transactions. We need to retrieve the data from this DB2 database,on machine A, from Machine B and C.
One of the approach would be to replicate the DB2 database in Machine B and C as same as in Machine A.
I wanted to know if there is any other approach by which we can retrieve the data.
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: Tue Jul 20, 2010 2:36 am
Reply with quote

Hello,

If you replicate the data on the B and C machines, there should be less impact on the transaction processing on machine A.

To do this in real time, suggest you read about DRDA ( distributed relational database access ). There are sometmes significant performance issues. . .
Back to top
View user's profile Send private message
Ajay Baghel

Active User


Joined: 25 Apr 2007
Posts: 206
Location: Bangalore

PostPosted: Tue Jul 20, 2010 8:02 pm
Reply with quote

From my little knowledge, but not very sure, but i think such programs have CONNECT TO ... statement

And the DBPROTOCOL is DRDA in the BIND Card.
Back to top
View user's profile Send private message
skkp2006

New User


Joined: 14 Jul 2006
Posts: 93
Location: Chennai,India

PostPosted: Tue Jul 20, 2010 8:36 pm
Reply with quote

Hello,

Sometime before we did some comparison study with the DRDA protocol.

Suggest You start from here to setup DRDA

For us the results were not looking good as the DRDA protocol was heavy on the CPU consumption time.....


And the BIND Control Card goes something like this.......


Code:
//SYSTSIN  DD *                                                         
DSN SYSTEM(DA21)                                                       
BIND PLAN(YOURPGM) MEMBER(YOURPGM) -                                   
     LIBRARY ('YOUR.LIB.DBR') -                       
     ACTION (REPLACE), VALIDATE(BIND), ISOLATION (CS) , FLAG (I), -     
     ACQUIRE (USE) , RELEASE (COMMIT)  , EXPLAIN (NO), RETAIN, -       
     OWNER(XXXXXX) , QUALIFIER(XXXXXX) , DBPROTOCOL(DRDA)               
END                                                                     



And to Connect to the Database

Code:
EXEC SQL CONNECT TO
         DB01
END-EXEC



Syam
Back to top
View user's profile Send private message
sushanth bobby

Senior Member


Joined: 29 Jul 2008
Posts: 1020
Location: India

PostPosted: Wed Jul 21, 2010 4:55 pm
Reply with quote

rahuindo,

You need to go for CDC( Change Data Capture ). Like capturing data from Daily Prod sub-system to warehousing sub-system.

Do you have any DB2 Tools like Log Analyzer, but using tools like that you get any DML activities against a table. It can generate DELETE , INSERT & UPDATE statements, which you can run on other sub-system with a little manipulations.

Also look into CURRENTSERVER option in BIND PLAN.

Thanks,
Sushanth
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 How to save SYSLOG as text data via P... All Other Mainframe Topics 4
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Store the data for fixed length COBOL Programming 1
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Mainframe openings in Techmahnidra fo... Mainframe Jobs 0
Search our Forums:

Back to Top