Sunday, October 2, 2016

STMS: Clean-up STMS Transport Directory /usr/sap/trans


The directory /usr/sap/trans is filling up and most of the files are generated in cofile, datafile, sapnames and log directory which is the SAP transport files. You are planning to delete all these SAP transport files to regain space back in the /usr/sap/trans


The STMS is configured as DEV > QAS > PRD.  if devlopment system  is set as the domain controller. 

1.Login to the operating system as sidadm and go to /usr/sap/trans/SID/bin


2. First of all, you need to execute command tp CHECK ALL. The command will generate a list of all deletable files for cofile, datafile and log directories


3. The tp CHECK ALL command will logged all the information into /usr/sap/trans/SID/tmp/CHECK.LOG


4. Before you proceed with the file deletion, you can try to execute a delete test
5. You can get the log test from /usr/sap/trans/tmp/TESTOLD.LOG file


6. Before executing this step, you need create (if not exist) folder olddata. Assign the olddata with the sidadm:sapsys / rwxrwx–x / 771 authorization. Once created, you can proceed with the files deletion as per below. The command will delete files from the subdirectories cofiles, log, and olddata, and to move files from the subdirectory data to the subdirectory olddata. The log of the activity can be obtained from /usr/sap/trans/tmp/CLEAROLD.log


NOTE:
The tp CLEAROLD ALL command is executed as per settings below, which can be obtained by this command


1 comment: