Real Time Load

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
arjun_004
Participant
Posts: 12
Joined: Wed Feb 07, 2007 2:10 am
Location: Mumbai
Contact:

Real Time Load

Post by arjun_004 »

Hi All,

We have the the requirement to load the Real time data from Sql Server to DB2 using Datastage 8.1

Any record inserted/deleted/updated in the sql server table needs to inserted in the DB2 table.

Kindly suggest any design/stages or approach.
Thanks & Regards
Arjun Kumar
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Can you capture the real time data from the same source as SQL Server is capturing it from? If you wait till it's in SQL Server it's not real time any more.

The next best thing is some kind of CDC approach, for example scraping the SQL Server transaction logs. Investigate IBM's CDC product and IBM's CDC stage in DataStage if you'd like to explore this route.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
qt_ky
Premium Member
Premium Member
Posts: 2895
Joined: Wed Aug 03, 2011 6:16 am
Location: USA

Post by qt_ky »

Another possible approach is to enable (license) the Federation Server feature within DB2. It can give you DB2 nicknames (pointers) that when queried, updated, inserted, deleted, etc., via DB2, the execution passes through to SQL Server, Oracle, other databases, etc. To physically replicate the SQL Server into DB2 would require other replication products as Ray mentioned, or a development effort. For that purpose, I would recommend evaluating existing commercial products that have already been tested and proven to do the work for you.
Choose a job you love, and you will never have to work a day in your life. - Confucius
arjun_004
Participant
Posts: 12
Joined: Wed Feb 07, 2007 2:10 am
Location: Mumbai
Contact:

Post by arjun_004 »

Please suggest the specific Product/version which can help in pulling the Real time Data from SQL server to DB2.

2 to 3 sec delay in getting the data is acceptable in my case.

Will this approach work if i try to execute the DS job multiple times in a loop. using ksh or loop stage is Datastage.We are expecting less then 100 records in the source.
Thanks & Regards
Arjun Kumar
qt_ky
Premium Member
Premium Member
Posts: 2895
Joined: Wed Aug 03, 2011 6:16 am
Location: USA

Post by qt_ky »

The companion product, InfoSphere Replication Server, is described in the Information Server Introduction PDF file, which is installed on your client or available online. It supports SQL Server. That's a product you could evaluate. However, if you're need is to replicate only one small table, then developing your own method is going to cost much less.
Choose a job you love, and you will never have to work a day in your life. - Confucius
SURA
Premium Member
Premium Member
Posts: 1229
Joined: Sat Jul 14, 2007 5:16 am
Location: Sydney

Post by SURA »

Try it with trail version which will support upto 1000 rows. If you are happy then go with it. But it will be expensive.

DS User
cppwiz
Participant
Posts: 135
Joined: Tue Sep 04, 2007 11:27 am

Post by cppwiz »

InfoSphere Change Data Capture can scrape the SQL Server transaction logs and replicate the data to DB2.

http://www-01.ibm.com/software/data/inf ... a-capture/
kwwilliams
Participant
Posts: 437
Joined: Fri Oct 21, 2005 10:00 pm

Post by kwwilliams »

Then publish to a queue where you can use the DTS stage to ensure that you are not losing any of the data in the process. If you are looking for 2-3 second latency you really don't have any other options than a always on job that reads either queue messages or services that supply the information. It will take longer than 2-3 seconds to start a DataStage job.
Post Reply