If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

á
Go Back  dBforums > Database Server Software > Informix > oninit -iv

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old
Registered User
 
Join Date: Feb 2003
Posts: 1
oninit -iv

We are installing informix on a solaris box for the first time so I'm new in this thing.

I'm getting these error messages when trying to start Informix for the first time....

$ oninit -iv

This action will initialize Informix Dynamic Server;
any existing Informix Dynamic Server databases will NOT be accessible -
Do you wish to continue (y/n)? y
Checking group membership to determine server run modesucceeded
Reading configuration file '/mnt/informix/etc/onconfig.infx'...succeeded
Creating /INFORMIXTMP/.infxdirs ... FAILED
Creating infos file "/mnt/informix/etc/.infos.infxsrv01" ... "/mnt/informix/etc/
.conf.infxsrv01" ... succeeded
Writing to infos file ... succeeded
Checking config parameters...succeeded
Allocating and attaching to shared memory...FAILED
oninit: Fatal error in shared memory creation


Also this appear in my online.log

14:38:10 shmat: [EMFILE][24]: out of shared memory segments, check system SHMSE
G

14:38:10 mt_shm_init: can't create virtual segment

14:39:12 shmget: [EEXIST][17]: key 52574801: shared memory already exists
14:39:12 mt_shm_init: can't create resident segment

15:07:00 shmat: [EMFILE][24]: out of shared memory segments, check system SHMSE
G

15:07:00 mt_shm_init: can't create virtual segment

15:12:34 shmget: [EEXIST][17]: key 52574801: shared memory already exists
15:12:34 mt_shm_init: can't create resident segment

15:22:02 shmget: [EEXIST][17]: key 52574801: shared memory already exists
15:22:02 mt_shm_init: can't create resident segment

15:35:45 shmget: [EEXIST][17]: key 52574801: shared memory already exists
15:35:45 mt_shm_init: can't create resident segment

15:56:06 shmget: [EEXIST][17]: key 52574801: shared memory already exists
15:56:06 mt_shm_init: can't create resident segment
"online.log" [Read only] 23 lines, 917 characters

Any help would really be appreciated it!!!
Reply With Quote
  #2 (permalink)  
Old
Registered User
 
Join Date: Feb 2003
Posts: 60
Check the realease notes in the žINFORMIXDIR/release directory, and check the value of the ONCONFIG parameters : SHMBASE that you have to set for your system.
Reply With Quote
  #3 (permalink)  
Old
Registered User
 
Join Date: Aug 2002
Location: Bonn/Germany
Posts: 152
Re: oninit -iv

You need to adjust your kernel parameters (/etc/system)
according to the informix releasenotes.

In order to start your databaseserver without adjusting
these kernel parameters you might consider decreasing
your BUFFERS onconfig parameter to 2000 and your
SHMVIRTSIZE onconfig parameter to 8192.

After that you have to check if any SHM resources are
still allocated by informix:

ipcs -mopb | grep informix

If you don't have a second informix instance running on
this machine, you could remove these segments
with the ipcrm command.

Then try re-initializing your databaseserver again with
"oninit -ivy".

If this works now, change your kernel parameters according
to the IFMX release notes, reset your BUFFERS and
SHMVIRTSIZE onconfig parameters, re-boot your machine
and try to start the informix databaseserver using
"oninit" (not "oninit -i" because you have already successfully
inititalized the instance).


Quote:
Originally posted by nfigueroa
We are installing informix on a solaris box for the first time so I'm new in this thing.

I'm getting these error messages when trying to start Informix for the first time....

$ oninit -iv

This action will initialize Informix Dynamic Server;
any existing Informix Dynamic Server databases will NOT be accessible -
Do you wish to continue (y/n)? y
Checking group membership to determine server run modesucceeded
Reading configuration file '/mnt/informix/etc/onconfig.infx'...succeeded
Creating /INFORMIXTMP/.infxdirs ... FAILED
Creating infos file "/mnt/informix/etc/.infos.infxsrv01" ... "/mnt/informix/etc/
.conf.infxsrv01" ... succeeded
Writing to infos file ... succeeded
Checking config parameters...succeeded
Allocating and attaching to shared memory...FAILED
oninit: Fatal error in shared memory creation


Also this appear in my online.log

14:38:10 shmat: [EMFILE][24]: out of shared memory segments, check system SHMSE
G

14:38:10 mt_shm_init: can't create virtual segment

14:39:12 shmget: [EEXIST][17]: key 52574801: shared memory already exists
14:39:12 mt_shm_init: can't create resident segment

15:07:00 shmat: [EMFILE][24]: out of shared memory segments, check system SHMSE
G

15:07:00 mt_shm_init: can't create virtual segment

15:12:34 shmget: [EEXIST][17]: key 52574801: shared memory already exists
15:12:34 mt_shm_init: can't create resident segment

15:22:02 shmget: [EEXIST][17]: key 52574801: shared memory already exists
15:22:02 mt_shm_init: can't create resident segment

15:35:45 shmget: [EEXIST][17]: key 52574801: shared memory already exists
15:35:45 mt_shm_init: can't create resident segment

15:56:06 shmget: [EEXIST][17]: key 52574801: shared memory already exists
15:56:06 mt_shm_init: can't create resident segment
"online.log" [Read only] 23 lines, 917 characters

Any help would really be appreciated it!!!
__________________

Best regards

Eric
--
IT-Consulting Herber
WWW: http://www.herber-consulting.de
Email: eric@herber-consulting.de

***********************************************
Download the IFMX Database-Monitor for free at:
http://www.herber-consulting.de/BusyBee
***********************************************
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On