Using IRTRACE 

IRTRACE is a tool for changing the settings of a precompiler trace and for displaying the current settings of a precompiler application.

All commands are entered at operating system level. IRTRACE and the precompiler application communicate via a shared memory segment.

If you change the trace settings of a precompiler application using IRTRACE, the system makes an entry in the shared memory segment. The precompiler application checks the entries in the shared memory at regular intervals and adjusts its trace settings accordingly. A precompiler application is assigned to the relevant entry in the shared memory using the application’s process ID. The entry in the shared memory remains the same and can be called up as long as the relevant process is active.

When a shared memory segment is used, the system creates a synchronization file (irtrace.shm), which is used by the IRTRACE processes and the application processes to access the shared memory. Regardless of the release, the system then stores this file in the directory /opt/sapdb/indep_prog/wrk . To enable this, the system registers the path /opt/sapdb/indep_prog when it is installed and creates the sub-directory wrk. In addition, the system also assigns read/write authorizations to the IRTRACE tool and the precompiler application.