C Common Utilities and Scripts

This appendix covers the following topic:

RMIPC.SH Script

The rmipc.sh script is a utility script that cleans up shared memory segments and semaphores for a given Unix User ID. This file will be present as part of every OFSAA application build and is available in the $FIC_HOME/ficdb/bin folder. Passing the User ID as a command line is optional. When it is not passed as a command line argument, the shell script will default the ID to that of the currently logged-in Unix user. The script will first check for any running OFSAA processes (for example BSP, FTP, PFT) before attempting to remove any shared memory segments or semaphores. If there are any running OFSAA processes, the script will not run.

Note:

The script will always consider only the first 8 characters of the User ID while determining the list of open semaphores/shared-memory arrays.

If you are using AIX platforms, then this script will also kill your AM process since the AM process also creates semaphores in AIX. Any process under the OFSAA Unix ID provided which creates semaphores or shared memory segments may be killed. Also, be careful if OFSAA has been installed using the same Unix user as the installed Oracle database as this script will clean up all semaphores / shared memory arrays used by the Oracle database. The script is not meant to be used in a batch process.