Shutdown and shared memory files

When Adaptive Server starts, it creates the following file in $SYBASE to store information about the shared memory segments that it uses:

SERVER_NAME.krg

If Adaptive Server allocates more than one shared memory segment either during start-up or after start-up due to reconfiguration, it stores memory segment information in the file:

SERVER_NAME.srgNUM

where NUM is a number from 0 to 255. Note that Adaptive Server allocates a maximum of 257 shared memory segments.

When Adaptive Server is shut down in a normal manner, the shared memory files are automatically removed. If Adaptive Server crashes or is stopped with the kill -9 command, these files are not deleted. You need read and write permissions on these files to restart Adaptive Server after a crash or a kill -9 command, as Adaptive Server must be able to overwrite the previously created shared memory files.