Cleaning up the Transport Directory

Objective

After completing this lesson, you will be able to name tp commands to clean up the transport directory

Cleaning up the Transport Directory

Data files, cofiles, and different log files are written to the transport directory. These files are not deleted, overwritten, or reorganized automatically, so the transport administrator has to take care of them.

To clean up the transport directory, use the commands tp check all and tp clearold all. Over time, many files accumulate in the transport directories. These files contain important information, but they also use up disk space and become obsolete.

Hint

Before cleaning up the transport directory, SAP recommends making a copy of the transport directory and saving it for audit purposes.

The command tp check all searches for transport requests that are not marked for import into any SAP system, as revealed by the transport buffer entries. The transport requests are listed in file ALL_old.lis, which is located in transport subdirectory tmp.

The command tp clearold all uses the result list of the command tp check all to find files that are not needed anymore for import and that have exceeded a maximum age. To specify the maximum age, use the tp parameters DATALIFETIME, OLDDATALIFETIME, COFILELIFETIME, and LOGLIFETIME. Data files in the transport subdirectory data that are older than the parameter DATALIFETIME are moved to the transport subdirectory olddata. Files in the subdirectories log and cofiles are immediately deleted if they exceed the age specified by LOGLIFETIME or COFILELIFETIME respectively. Files in olddata are deleted if they are older than OLDDATALIFETIME.

Hint

With the command tp testold all, it is possible to create a list of files which will be deleted by the command tp clearold all. The result is located in subdirectory tmp.

Note

The files in the EPS subdirectory of the transport directory are not affected by this clean-up. The transport administrator has to care about them manually.

More Information

For more information, see:

  • SAP Note 41732 – Deletion of data in transport directory.

  • SAP Note 1694830 – tp clearold extension for cts+ directories and tmp directory.

Log in to track your progress & complete quizzes