Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cannot attach shared memory errno=156

Status
Not open for further replies.

Anykey

Programmer
May 23, 2003
3
0
0
ES
Informix Data Server 9.4
Linux SUSE 8.1

After starting the server (oninit -ivy) with succed, I can´t initialize it because it returns the following error:

Unable to attach shared memory
ISAM Error:Cannot attach shared memory

and

Unable to attach shared memory errno=156

Can anybody help me?
Thanks.
 
The informix engine already initialized. When you ran 'oninit -ivy' you initialized it.

oninit: Unknown option --
Usage: oninit { -[ipsvy] }

-i Initialize disk space and shared memory, leave in online mode.
-p Do not reclaim temporary tables.
-s Initialize shared memory, leave in quiescent mode.
-v verbose
-y Respond yes to all prompts
 
Hi,

to start an already initialized instance you only need to run oninit -v. And wait for the message
"Verbose output complete : mode = 5"
The prompt returns some messages before, but the server isn't online than, only after that last message

rgds
Uwe
 
You cannot use "oninit -ivy" if it's already initialized. just use 'oninit -y ' if it's previously configured.
 
Hi

This is my online.log:


21:10:44 IBM Informix Dynamic Server Started.

Thu Jul 31 21:10:44 2003

21:10:44 Event alarms enabled. ALARMPROG = '/usr/informix/etc/alarmprogram.sh'
21:10:44 Booting Language <c> from module <>
21:10:44 Loading Module <CNULL>
21:10:44 Booting Language <builtin> from module <>
21:10:44 Loading Module <BUILTINNULL>
21:10:49 Assert Failed: No Exception Handler
21:10:49 IBM Informix Dynamic Server Version 9.40.UC2
21:10:49 Who: Session(0, @, 0, (nil))
Thread(1, main_thread, 0, 1)
File: mtex.c Line: 431
21:10:49 Results: Exception Caught. Type: MT_EX_OS, Context: mem
21:10:49 Action: Please notify IBM Informix Technical Support.
21:10:49 stack trace for pid 9459 written to /tmp/af.3e969b9
21:10:49 See Also: /tmp/af.3e969b9, shmem.3e969b9.0
21:10:50 mtex.c, line 431, thread 1, proc id 9459, No Exception Handler.
21:10:50 invoke_alarm(): /bin/sh -c '/usr/informix/etc/alarmprogram.sh 5 6 &quot;Int
ernal Subsystem failure: 'MT'&quot; &quot;mtex.c, line 431, thread 1, proc id 9459, No Exc
eption Handler.&quot; '
21:10:50 invoke_alarm(): mt_exec failed, status 32512, errno 0
21:10:50 PANIC: Attempting to bring system down



Any idea?

Thanks.
 
Hi,

Tungaw:
you can use it as much as you like, also if the server is stil initilized, but you lose all your relations to the tablespaces and of course your database.

Anykey:
take a look in the /tmp/af.3e969b9. This is the stack from your crash. Maybe there's some more input. But if you ran onibit -ivy it shows someting clear, because you drop the running database down. That can cause such an error.
If you'd more trouble with that database you can user Informix Installations Support. Send a mail with the problem description, your S/N, online.log, onconfig and the af.3e969b9 files to them.
Pls take a look in the /tmp. If there's a file like shmem.3e969b9.0 it could be filled up your /tmp. This is the kernel-dump from the crash. If you want you can save it to tape or remove it if you thought that it will not be nec. for finding thge mail cause.

hth
Uwe


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top