Thursday, October 4, 2012

Resource Management : IPCRM

IPCRM command in linux is used to remove a shared memory segment.In order to remove a shared memory segment , we can get the shmid from the ipcs and remove using

Ipcrm –m 4227074   

Similarly a Message Queue can be removed by using,

ipcrm -q 4227074    

Sometimes when you shutdown the database instance, the shared memory segments may not be completely cleaned up by the Linux kernel. The shared memory left behind is not useful; but it hogs the system resources making less memory available to the other processes. In that case, you can check any lingering shared memory segments owned by the “oracle” user and then remove them, if any using the ipcrm command.