DSODB purging

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
skathaitrooney
Participant
Posts: 103
Joined: Tue Jan 06, 2015 4:30 am

DSODB purging

Post by skathaitrooney »

Hello Experts,

I need to purge DSODB tables sustaining the records for the last 3 months or so.

I am following the below technote by IBM

http://www-01.ibm.com/support/docview.w ... wg21659783

My question was that has anybody purged their logs before using this method or by any method other than this(for eg. by preparing DML's themselves)

I have a DB2 database.

Please share your experience if anyone has done this before.
felixyong
Participant
Posts: 35
Joined: Tue Jul 22, 2003 7:24 pm
Location: Australia

Re: DSODB purging

Post by felixyong »

Hi

This link provide you the instruction - http://www-01.ibm.com/support/knowledge ... inodb.html

I hit problem using the stool so I just use the SQL option to delete it directly.
Regards
Felix
skathaitrooney
Participant
Posts: 103
Joined: Tue Jan 06, 2015 4:30 am

Post by skathaitrooney »

Thanks Felix. I manually ran the sql's as mentioned by you.. did not face any issues. Thanks a lot, your post really helped. Cheers!
rkashyap
Premium Member
Premium Member
Posts: 532
Joined: Fri Dec 02, 2011 12:02 pm
Location: Richmond VA

Post by rkashyap »

Please note that SQLs on Deleting data by using SQL Queries do not purge DSODB.DataLocator.

We were advised to run following SQL also.

Code: Select all

DELETE FROM DSODB.DataLocator L  WHERE NOT EXISTS (SELECT 1 FROM DSODB.JobRunLink J WHERE J.LocatorId = L.LocatorId);
In addition to indexes mentioned in patch_JR46761_index_server_all_[version], an additional index was created to support above SQL.

Code: Select all

CREATE INDEX DSODB.JobRunLinkLocatorId ON DSODB.JobRunLink(LocatorID);
Post Reply