Thursday, 12 May 2016

Delete Background Job

Why Delete Background Job?

Old jobs  occupy space on the system. To avoid any inconsistencies within the system normally we delete the logs. Because if the file system gets full your SAP system will crash!

You can delete jobs in two ways:-
  1. Multiple jobs at once.
  2. Single job deletion.

Delete Multiple Jobs at once


The best way to do this is use  report RSBTCDEL2(New version of RSBTCDEL). Old job logs will be deleted and will not show in the job overview.

Step 1) Execute T-code SE38.
 
 
Step 2) Put the program name in the field as RSBRCDEL2. 
 
 
Step 3) Fill the proper details.
  1. Which job do you want to delete?If you put * means all jobs. If you want to delete jobs from a specific user , give UserName.
  2. Specify Status of Job to be deleted. Specify time period of Deletion. For instance , delete jobs older than 14 days.NOTE: Once the job is in active status, it is impossible to delete them.
  3. Specify Commit. Commit value is proportional to program performance. If the commit value  is high then job deletion will run faster. Recommended value is >= 1000.
  4. Check Test run to simulate the deletion.  Jobs will not be deleted. Once you are sure only then uncheck the Test run.
  5. Press Execute.

 

Single job deletion

You can also delete a single job from SM37.

Step 1) Execute SM37.
 
Step 2) Fill your criteria.
  1. Job name and username
  2. Status of the job.
  3. Select the date range.

 
Step 3) Select the job you want to delete
 
 
Step 4) Goto Job-> Delete.
 

You can also delete the jobs from OS level under directory
 /usr/sap/<SID>/SYS/global/<CLNT>JOBLG. Folder.

But deletion from OS level may cause Temse inconsistency issue.To remove inconsistencies  goto SP12-> Consistency check.Once you get the list , delete the objects.

Normally, Job-  SAP_REORG_JOBS (Program to Delete old background jobs) must be scheduled within the system with program RSBTCDEL2 at daily frequency.

3 comments:

  1. My friend Suggest me this blog and I can say this is the best blog to get the best knowledge.Thank you so much for this SAP Basis Training in Chennai blog

    ReplyDelete
  2. Thanks for the great information, was looking for this information from long.Great blogSAP MM Training in Chennai

    ReplyDelete
  3. Thanks for the great information, was looking for this information from long.Great blogSAP MM Training in Chennai

    ReplyDelete