Archives of the TeradataForum
Message Posted: Mon, 17 May 2004 @ 18:12:45 GMT
Subj: | | Re: Resusage Cleanup |
|
From: | | Nazy Gholizadeh |
This is the script I use. I am new at this and got this from our previous DBA...
DELETE DBC.SW_Event_Log
WHERE TheDate < DATE - 30;
DELETE DBC.HW_Event_Log
WHERE TheDate < DATE - 30;
DELETE DBC.LogonOff
WHERE LogDate < DATE - 60;
DELETE DBC.ResUsageSPMA
WHERE TheDate < DATE - 30;
DELETE DBC.ResUsageIPMA
WHERE TheDate < DATE - 30;
DELETE DBC.ResUsageSCPU
WHERE TheDate < DATE - 30;
DELETE DBC.ResUsageICPU
WHERE TheDate < DATE - 30;
DELETE DBC.ResUsageSCTL
WHERE TheDate < DATE - 30;
DELETE DBC.ResUsageSVPR
WHERE TheDate < DATE - 30;
DELETE DBC.ResUsageSVPR2
WHERE TheDate < DATE - 30;
DELETE DBC.ResUsageIVPR
WHERE TheDate < DATE - 30;
DELETE DBC.ResUsageSHST
WHERE TheDate < DATE - 30;
DELETE DBC.ResUsageSOBJ
WHERE TheDate < DATE - 30;
DELETE DBC.ResUsageSLDV
WHERE TheDate < DATE - 30;
I hope this helps.
|