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 > Fatal error in shared memory initialization

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-12-04, 07:19
info93 info93 is offline
Registered User
 
Join Date: Apr 2004
Posts: 4
Fatal error in shared memory initialization

Hello, I try to up my informix server and I have this error

oninit: Cannot open chunk ''. errno = 2

oninit: Fatal error in shared memory initialization

I don't konw what to do. may you help me?
Reply With Quote
  #2 (permalink)  
Old 04-12-04, 09:03
RobP RobP is offline
Registered User
 
Join Date: Mar 2004
Location: Netherlands
Posts: 183
Oops, it seems one of your chunks/disks is being offline. There should be more info in your logfile (See MSGPATH parameter in your onconfig file).

If it wasn't your rootdbs there a big chance IDS has marked it down, only way to recovery in that case is a restore.

If you want more advice, please post the last 100 lines or so from you log file and the output of oncheck -pr (this still works even if the engine is down, it will be only very very slow (could take several minutes)).

If your rootdbs was unavailable then you could be lucky....

Hope this helps,

Rob Prop
Reply With Quote
  #3 (permalink)  
Old 04-12-04, 10:42
info93 info93 is offline
Registered User
 
Join Date: Apr 2004
Posts: 4
This is the whole error.

6:58:46 IBM Informix Dynamic Server Started.
16:58:46 Requested shared memory segment size rounded from 1KB to 4KB
16:58:46 Dynamically allocated new virtual shared memory segment (size 8192KB)

Mon Apr 12 16:58:46 2004

16:58:46 Event alarms enabled. ALARMPROG = '/home/informix/etc/no_log.sh'
16:58:46 Booting Language <c> from module <>
16:58:46 Loading Module <CNULL>
16:58:46 Booting Language <builtin> from module <>
16:58:46 Loading Module <BUILTINNULL>
16:58:51 Dynamically allocated new message shared memory segment (size 648KB)
16:58:51 IBM Informix Dynamic Server Version 9.40.UC2 Software Serial Number AAA#B000000
16:58:51 Cannot Open Primary Chunk '', errno = 2
oninit: Cannot open chunk ''. errno = 2
oninit: Fatal error in shared memory initialization
16:58:51 IBM Informix Dynamic Server Stopped.

16:58:51 mt_shm_remove: WARNING: may not have removed all/correct segments

Where is the file ONCONFIG?
Reply With Quote
  #4 (permalink)  
Old 04-12-04, 12:25
anix anix is offline
Registered User
 
Join Date: Mar 2004
Posts: 1
Please check if you have correct value
for ROOTPATH variable in onconfig file.
This error is reported when oninit process fails to open
a file(root chunk) mentioned in ROOTPATH.
onconfig file is generally located in $INFORMIXDIR/etc/$ONCONFIG, where INFORMIXDIR and ONCONFIG are environment variables.
hope this helps.
Reply With Quote
  #5 (permalink)  
Old 04-12-04, 14:45
RobP RobP is offline
Registered User
 
Join Date: Mar 2004
Location: Netherlands
Posts: 183
Also check if the variable ONCONFIG is set at all. If not IDS is using only the onconfig.std file, and the ROOTPATH in their will probably be empty.

Have you already found the solution??
Reply With Quote
  #6 (permalink)  
Old 04-13-04, 03:39
info93 info93 is offline
Registered User
 
Join Date: Apr 2004
Posts: 4
Thanks

Thanks ROOTPATH was wrong, I got it, but now we have another problem, the application server doesn't run because it doesn't find the database server. Where do I join the application with de database server?

java.sql.SQLException: com.informix.asf.IfxASFException: Attempt to connect to database server (ol_gandalf) failed.


Thank for all.
Reply With Quote
  #7 (permalink)  
Old 04-13-04, 13:51
RobP RobP is offline
Registered User
 
Join Date: Mar 2004
Location: Netherlands
Posts: 183
This is the sqlhosts file. This file should have an entry on the application server which point to the db server.

Hope this helps,

Rob Prop
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