Informix/informix troubleshooting
How To Remove Shared Memory Segments
@ipajama
2014. 10. 22. 14:46
728x90
Question
Remove Shared Memory Segments
Answer
Directions for removing shared memory segments are as follows: (must be root)
- Get your SERVERNUM from the onconfig
- Convert that to hex and add it to 5256 in hex
- ipcs -m |grep 5256+SERVERNUM(in hex)
- The ID is the second column in the output. Write down each of the ID numbers.
- Take the list of IDs and run ipcrm -m ID for each ID.
so an example is as follows:
1. onstat -c |grep SERVERNUM
SERVERNUM 60 # Unique id corresponding to a Dynamic Server Instance
2. 0x5256 + 0x3c = 0x5292
3. ipcs -m |grep 5292
m 121 0x52924801 --rw-rw---- root informix
m 122 0x52924802 --rw-rw---- root informix
m 123 0x52924803 --rw-rw-rw- root informix
4. ipcrm -m 121
ipcrm -m 122
ipcrm -m 123
5. this command will confirm the segment has been removed
ipcs -m |grep 5292
http://www-01.ibm.com/support/knowledgecenter/api/content/SSGU8G_11.50.0/com.ibm.admin.doc/ids_admin_1218.htm
http://www-01.ibm.com/support/docview.wss?uid=swg21326141
728x90