oninit
Posted in 2007
A user couldn't start a new IDS instance: oninit reported it couldn't open the root chunk /informix/dbspaces/online_root (errno 2) and failed in shared memory initialization. The file did exist, owned by informix:informix with 660 permissions, but was zero length — i.e. a brand-new instance that had never been initialized. Art Kagel advised running 'oninit -i' to initialize the on-disk structures; that then failed because INFORMIXSERVER didn't match DBSERVERNAME/DBSERVERALIASES in the ONCONFIG. After fixing that mismatch, initialization succeeded.
Auto-generated by DrWatson from the posts below — may be imperfect; read the full thread.
Topics: Storage & Space Management
when i run oninit
the following messages appear on screen
sh:/usr/informix/etc/alarmprogram.sh: not found
oninit: connot open chunk'/infomrix/dbspaces/online_root'.errno=2
oninit: Fatal error in shared memory initialization
plz do replay me how to resolve this one
Thanks
waqas
Looks like a typo in your $ONCONFIG file for ROOTPATH. 'informix' not
'infomrix'.
Bob Roussey
Unix / Informix Administration
Spirit Airlines
Robert.Roussey@SpiritAir.com
-----Original Message-----
From: ids-bounces@iiug.org [mailto:ids-bounces@iiug.org] On Behalf Of
WAQAS ARSHAD
Sent: Wednesday, April 25, 2007 7:59 AM
To: ids@iiug.org
Subject: oninit [9018]
when i run oninit
the following messages appear on screen
sh:/usr/informix/etc/alarmprogram.sh: not found
oninit: connot open chunk'/infomrix/dbspaces/online_root'.errno=2
oninit: Fatal error in shared memory initialization
plz do replay me how to resolve this one
Thanks
waqas
************************************************************************
*******
Forum Note: Use "Reply" to post a response in the discussion forum.
sorry i did mistake during posting the message
correct line is
oninit: connot open chunk'/informix/dbspaces/online_root'.errno=2
Errno 2 is 'No such file or directory' Does the file
'/informix/dbspaces/online_root' exist? Chunk files must pre-exist owned by
user informix and group informix with permissions 660.
Art S. Kagel
----- Original Message -----
From: Waqas Arshad <ids@iiug.org>
At: 4/25 8:12:14
sorry i did mistake during posting the message
correct line is
oninit: connot open chunk'/informix/dbspaces/online_root'.errno=2
*******************************************************************************
Forum Note: Use "Reply" to post a response in the discussion forum.
yes /informix/dbspaces/online_root exits
and it owned by informix user and group and permission is set to 660
after running messages display on screen are as follows
sender is null no mail will be sent
oninit:cannot open chunk '/informix/dbspaces/online_root'.errno=2
oninit: fatal error is shared memory initialization
I hate to be stubborn and sceptical, but that's not what the error message
says.
Please post the output from "ls -l /informix/dbspaces/online_root"
Art S. Kagel
----- Original Message -----
From: Waqas Arshad <ids@iiug.org>
At: 4/25 8:32:10
yes /informix/dbspaces/online_root exits
and it owned by informix user and group and permission is set to 660
after running messages display on screen are as follows
sender is null no mail will be sent
oninit:cannot open chunk '/informix/dbspaces/online_root'.errno=2
oninit: fatal error is shared memory initialization
*******************************************************************************
Forum Note: Use "Reply" to post a response in the discussion forum.
-rw-rw---- 1 informix informix 0 apr 25 17:00 /informix/dbspaces/online_root
I see from the zero length of this 'root' chunk and your original post that
this
is a new instance of IDS. Did you include the '-i' option to oninit to
initialize the on-disk data structures? If not try that.
Art S. Kagel
----- Original Message -----
From: Waqas Arshad <ids@iiug.org>
At: 4/25 8:41:27
-rw-rw---- 1 informix informix 0 apr 25 17:00 /informix/dbspaces/online_root
*******************************************************************************
Forum Note: Use "Reply" to post a response in the discussion forum.
oninit -i
informixserver does not match dbservername or any of the dbserveraliases
failed
Just what the message says: The value you have set in the exported environment
variable INFORMIXSERVER (if any) is not one of the names or aliases of the
server that are defined in the ONCONFIG file in the DBSERVERNAME or
DBSERVERALIASES parameters. Either set the INFORMIXSERVER correctly or update
the ONCONFIG file with the servername(s) you want to use.
Art S. Kagel
----- Original Message -----
From: Waqas Arshad <ids@iiug.org>
At: 4/25 8:50:55
oninit -i
informixserver does not match dbservername or any of the dbserveraliases
failed
*******************************************************************************
Forum Note: Use "Reply" to post a response in the discussion forum.
Thanks Dear Now it is successfully initialized Thanks again
On Wednesday 25 April 2007 14:50, WAQAS ARSHAD wrote:
> oninit -i>
> informixserver does not match dbservername or any of the
> dbserveraliases failed
Please compare your configuration of IDS with steps described in this
simple tutorial:
http://www-128.ibm.com/developerworks/db2/library/techarticle/dm-0603breitfeld/#
N101E5
Andreas
>
>
> *********************************************************************
>********** Forum Note: Use "Reply" to post a response in the
> discussion forum.
--
Andreas Breitfeld; Informix Development Munich
IBM Deutschland GmbH; Vorsitzender des Aufsichtsrats: Hans Ulrich
Maerki; Geschäftsführung: Martin Jetter (Vorsitzender), Rudolf Bauer,
Christian Diedrich, Christoph Grandpierre, Matthias Hartmann, Andreas
Kerstan; Sitz der Gesellschaft: Stuttgart; Registergericht: Amtsgericht
Stuttgart, HRB 14562; WEEE-Reg.-Nr. DE 99369940
Why don't you try ls -lb to display non-printable characters, just in case
your filename is not exactly what you thought it is...
-----Original Message-----
From: ids-bounces@iiug.org [mailto:ids-bounces@iiug.org] On Behalf Of WAQAS
ARSHAD
Sent: April 25, 2007 08:41 AM
To: ids@iiug.org
Subject: Re: RE: oninit [9027]
-rw-rw---- 1 informix informix 0 apr 25 17:00 /informix/dbspaces/online_root
****************************************************************************
***
Forum Note: Use "Reply" to post a response in the discussion forum.
Related threads
- Column name length in Informix
- Caching Data to Buffers
- Checkpoint Duration
- dbaccess standalone.
- Getting executable name.