Using the IPC Cleanup feature for the Sybase agent

When the Adaptive Server starts, it creates shared memory files in $SYBASE to store information about the shared memory segments that it uses. Adaptive Server start-up parameter -M can be used to change the location of directory that stores shared memory files. The start-up parameter -M should be updated in RUN_$Server file.

If the Sybase home directory is unmounted, the Sybase clean script cannot access the shared memory files and does not clean the IPC resources that are allocated by the Sybase processes. Hence, the agent requires shared memory files to be present in the following directory on local system /var/tmp/sybase_shm/$Server.

In the $SYBASE/$SYBASE_ASE/install directory, edit the RUN_$Server file. Change the location of the directory that stores shared memory files to /var/tmp/sybase_shm/$Server using the -M option.

For example, the file RUN_Sybase_Server resembles the following before the change:

/home/sybase/ASE-15_0/bin/dataserver \

-sSybase_Server \

-d/home/sybase/data/master.dat \

-e/home/sybase/ASE-15_0/install/Sybase_Server.log \

-c/home/sybase/ASE-15_0/Sybase_Server.cfg \

-M/home/sybase/ASE-15_0 \

After the replacement, the file resembles:

/home/sybase/ASE-15_0/bin/dataserver \

-sSybase_Server \

-d/home/sybase/data/master.dat \

-e/home/sybase/ASE-15_0/install/Sybase_Server.log \

-c/home/sybase/ASE-15_0/Sybase_Server.cfg \

-M/var/tmp/sybase_shm/Sybase_Server \

Here Sybase_Server is the name of the Adaptive server.

Note:

Make sure you create the /var/tmp/sybase_shm/Sybase_Server directory with proper permissions.