Entering content frameFunction documentationFunctionality of Automatic Adjustment Locate the document in its SAP Library structure

Use

When you restart the SAP instance using command startsap, the program sapstart is automatically called. This program automatically calls the program sapcpe. The program sapcpe ensures that the automatic adjustment of the executables is made by copying /usr/sap/<SAPSID>/exe/ctrun from the central directory to the local /usr/sap/<SAPSID>/exe/run directory.

At all subsequent startups, sapcpe checks that the local executables are still current and copies any new or altered executables from the central /usr/sap/<SID>/SYS/exe/ctrun directory.

File Structure for Using Local Executables

This graphic is explained in the accompanying text

Prerequisites

If you start an R/3 instance and the following 3 conditions are met, sapcpe starts automatically:

/usr/sap/<SID>/SYS/exe/run is located on the host system of the R/3 instance and is for locally-stored executables.
/usr/sap/<SID>/SYS/exe/ctrun accesses (normally using NFS mount) the central directory of the executables.

How you set up your system is described in Installing Local Executables with an Automatic Adjustment.

Features

Log File

If sapcpe is called from sapstart, it writes all actions to the log file in the local directory /usr/sap/<SAPSID>/<INSTANZ-NAME>/work/sapcpe.log.

Compressed Executables Files

sapcpe can work with compressed executable files (<file name>.Z) in the central directory.

If you have a large number of distributed R/3 instances (more than 5), SAP recommends storing executables in compressed form in the central directory.

The benefit: Compressed files reduce the network load caused by copying executables by approximately 50%.

sapcpe detects changes in compressed files using the time stamp. If the compressed file is newer than the local copy, sapcpe copies the compressed file from the central directory to the local directory and decompresses it.

Access Authorization and Ownership

There are no special access authorizations required for sapcpe. Therefore, take the following security precautions:

Note

Do not set the set user ID bit (UNIX systems) for sapcpe authorization.

Since sapcpe is executed as user <SID>adm, certain programs cannot be updated The program also cannot update programs which are active when sapcpe tries to update a local system. If sapcpe encounters ownership or authorization problems, it records the problems in its log file. You must then update the relevant executables manually, or correct the problem and restart the instance.

Normally, only the SAP operating system monitor saposcol is affected by this. Program saposcol is a part of the SAP performance monitor and therefore, is the only SAP program that must run as root.

saposcol is started when the SAP System is started. As soon as a saposcol error message is logged in the sapcpe log file displaying that saposcol must be updated, then you must stop the program and copy the executable manually from the central executable directory to the local executable directory.

Caution

Do not update saposcol by running the program from the central executables directory. The program may terminate abnormally if paging over the network is so slow that it produces time-outs.

Activities

Install the local executables using the automatic adjustment as described in Installing Local Executables using Automatic Adjustment.

 

 

Leaving content frame