Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Mon, 17 May 2004 @ 18:12:45 GMT


     
  <Prev Next>   <<First <Prev
Next>
Last>>
 


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.



     
  <Prev Next>   <<First <Prev
Next>
Last>>
 
 
 
 
 
 
 
 
 
  
  Top Home Privacy Feedback  
 
 
Copyright for the TeradataForum (TDATA-L), Manta BlueSky    
Copyright 2016 - All Rights Reserved    
Last Modified: 15 Jun 2023