Re: shmget: [EEXIST][17]: key XXXXXXXX: shared memory already exists ERROR
Posted in 2011
Art,
Tried that a few times as root and as informix but the engine is not initialized at all so nothing to kill here.
Sorry, IDS 11.7UC1GE on RHEL 5.5
I tried onclean as was suggested earlier but the following message came up when I ran it:
[dojo](PROD604:RT)(1)(informix)/u/informix/11_7/etc -> onclean
onclean: Cleaning up processes and resources for 'prod117_net'...
Do you wish to continue (y/n)? y
onclean: Cannot open the file /u/informix/11_7/etc/.conf.prod117_net.
Ensure that the value of the INFORMIXSERVER environment variable
matches the value of the DBSERVERNAME configuration parameter
from your onconfig file.
[dojo](PROD604:RT)(1)(informix)/u/informix/11_7/etc ->
----- Original Message -----
From: "Art Kagel" <art.kagel@gmail.com>
To: "June Nebab LKINY" <jnebab@idealcut.com>
Cc: "informix-list" <informix-list@iiug.org>
Sent: Tuesday, January 11, 2011 3:48:50 PM GMT -05:00 US/Canada Eastern
Subject: Re: shmget: [EEXIST][17]: key XXXXXXXX: shared memory already exists ERROR
Try running onmode -ky, that will usually kill any lingering shared memory segments. Or, if you have the $INFORMIXDIR/bin/onclean script, just run that and it will clean up. Onclean is a recent addition, so depending on your version you may or may not have it. (This is why it is important to ALWAYS include your platform and version information when you post.)
Art
Art S. Kagel
Advanced DataTools ( www.advancedatatools.com )
IIUG Board of Directors ( art@iiug.org )
Blog: http://informix-myview.blogspot.com/
Disclaimer: Please keep in mind that my own opinions are my own opinions and do not reflect on my employer, Advanced DataTools, the IIUG, nor any other organization with which I am associated either explicitly, implicitly, or by inference. Neither do those opinions reflect those of other individuals affiliated with any entity with which I am affiliated nor those of the entities themselves.
On Tue, Jan 11, 2011 at 3:24 PM, June Nebab LKINY < jnebab@idealcut.com > wrote:
I can not bring up engine due to the following message:
shmget: [EEXIST][17]: key XXXXXXXX: shared memory already exists
mt_shm_init: can't create resident segment
I ran "ipcs -m" and found the shared memory segment ID and key and cleaned it with "ipcrm -m <shmkeyid>" but the error persists and IDS engine is not starting up.
Tried changing SERVERNUM but error persists.
It is strange since I did not reboot the server nor did not change any onconfig parameter.
DISCLAIMER
This transmission and the information contained herein and/or in any attachments hereto and/or in any attachments thereto is privileged and/or confidential and is intended ONLY for the use of the individual(s) and/or entity(s) named above. If you are not the intended recipient, you are strictly prohibited from disclosing, printing, copying, using or disseminating this transmission and/or any such attachments and any information contained in this transmission and/or in any such attachments. ANY unauthorized interception of this transmission and/or any such attachments is a violation of federal criminal law.
If you have received this transmission in error please notify the sender immediately and delete the transmission and all such attachments.
_______________________________________________
Informix-list mailing list
Informix-list@iiug.org
http://www.iiug.org/mailman/listinfo/informix-list
DISCLAIMER
This transmission and the information contained herein and/or in any attachments hereto and/or in any attachments thereto is privileged and/or confidential and is intended ONLY for the use of the individual(s) and/or entity(s) named above. If you are not the intended recipient, you are strictly prohibited from disclosing, printing, copying, using or disseminating this transmission and/or any such attachments and any information contained in this transmission and/or in any such attachments. ANY unauthorized interception of this transmission and/or any such attachments is a violation of federal criminal law.
If you have received this transmission in error, please notify the sender immediately and delete the transmission and all such attachments