Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

please advice how to solve this problem I have linux with informix DB its fail on - Fatal error in shared memory creation

su - informix

-sh-2.05b$ oninit -v

    ONCONFIG /usr/informix/etc/onconfig.active is not owned by user with id 4000.
    Checking group membership to determine server run modesucceeded
    Reading configuration file '/usr/informix/etc/onconfig.active'...succeeded
    Creating /INFORMIXTMP/.infxdirs ... succeeded
     Creating infos     file "/usr/informix/etc/.infos.active_trm" ... "/usr/informix/etc/.conf.active_trm" ... s succeeded
    Writing to infos file ... succeeded
    Checking config parameters...succeeded
    Allocating and attaching to shared memory...FAILED
    oninit: Fatal error in shared memory creation

oninit -i

  This action will initialize IBM Informix Dynamic Server;
   any existing IBM Informix Dynamic Server databases will NOT be accessible -
   Do you wish to continue (y/n)? 
   please enter 'y' or 'n'...
   Do you wish to continue (y/n)? y
   oninit: Fatal error in shared memory creation
share|improve this question

1 Answer 1

up vote 0 down vote accepted

Your shared memory segments may not have cleared properly. Run onclean -ky command. This should hopefully clear any lingering shared memory segments.

If this doesn't work, run ipcs command to identify the memory segments and remove using ipcrm

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.