Results 1 to 13 of 13
  1. #1
    Join Date
    Mar 2006
    Posts
    7

    Question Unanswered: shared memory not initialized for INFORMIXSERVER 'handel'

    Hi all,

    when i ran the cmd $onstat - and then i got the error
    "shared memory not initialized for INFORMIXSERVER 'handel' "
    what happended? i set the parameters DBSERVERNAME,SERVERNUM,
    ONCONFIG,INFORMIXDIR,INFORMIXSERVER already.
    I used ids 10 on linux as4

    Thks for advance

    Chara

  2. #2
    Join Date
    May 2004
    Location
    New York
    Posts
    248
    please post your online.log

    plese run oninit with -v option
    are there any additional messages?

  3. #3
    Join Date
    Mar 2006
    Posts
    7
    Quote Originally Posted by chara_c
    Hi all,

    when i ran the cmd $onstat - and then i got the error
    "shared memory not initialized for INFORMIXSERVER 'handel' "
    what happended? i set the parameters DBSERVERNAME,SERVERNUM,
    ONCONFIG,INFORMIXDIR,INFORMIXSERVER already.
    I used ids 10 on linux as4

    Thks for advance

    Chara
    oninit -v
    oninit: Cannot open chunk '/home/informix/dbspaces/rootdbs'. errno = 2
    oninit: Fatal error in shared memory initialization
    but there are file '/home/informix/dbspaces/rootdbs'

    thks for response

  4. #4
    Join Date
    Mar 2006
    Posts
    7

    Question

    oninit -v
    oninit: Cannot open chunk '/home/informix/dbspaces/rootdbs'. errno = 2
    oninit: Fatal error in shared memory initialization

    online.log
    13:45:59 IBM Informix Dynamic Server Version 10.00.UC4
    13:45:59 Who: Session(1, informix@handel, 0, 0x44d7e018)
    Thread(7, main_loop(), 44d54018, 1)
    File: rspartn.c Line: 8671
    13:45:59 Results: Chunk 1 is being taken OFFLINE.
    13:45:59 Action: Restore chunk from archive.
    13:45:59 stack trace for pid 32512 written to /home/informix/tmp/af.3ef5567
    13:45:59 See Also: /home/informix/tmp/af.3ef5567
    13:46:00 chunk failed sanity check

    13:46:00 I/O error, Primary Chunk '/home/informix/dbspaces/rootdbs' -- Offline (sanity)
    13:46:00 IBM Informix Dynamic Server Stopped.

    13:46:00 mt_shm_remove: WARNING: may not have removed all/correct segments

    but there are '/home/informix/dbspaces/rootdbs'
    thks for response

  5. #5
    Join Date
    Aug 2003
    Location
    Argentina
    Posts
    780
    Hi,

    The IDS, not start-up because the chunk '/home/informix/dbspaces/rootdbs', not exist.
    Please check the ONCONFIG file and definition allocate espace, before start-up, run oncheck -pr to see errors posibles.

    Gustavo.

  6. #6
    Join Date
    Mar 2006
    Posts
    7

    Question

    Quote Originally Posted by gurey
    Hi,

    The IDS, not start-up because the chunk '/home/informix/dbspaces/rootdbs', not exist.
    Please check the ONCONFIG file and definition allocate espace, before start-up, run oncheck -pr to see errors posibles.

    Gustavo.
    Hi,
    here is the example of rootspace in onconfig :

    # Root Dbspace Configuration

    ROOTNAME rootdbs
    ROOTPATH /home/informix/dbspaces
    ROOTOFFSET 0
    ROOTSIZE 30000

    and i touch rootdbs file in ROOTPATH already but i still got the error
    pls help me and thks for advance

    Rgds,
    Chara_c

  7. #7
    Join Date
    Nov 2004
    Posts
    143
    Hello,

    Ddi you give the permission to the file rootdbs to informix after touching it? Give 770 to informix.

    Bye

    Nitin

  8. #8
    Join Date
    Mar 2006
    Posts
    7

    Question

    Quote Originally Posted by nitin_math
    Hello,

    Ddi you give the permission to the file rootdbs to informix after touching it? Give 770 to informix.

    Bye

    Nitin
    Hi,
    Yes, here is the permission file :

    [informix@handel dbspaces]$ ls -al
    -rwxrwx--- 1 informix informix 0 Mar 18 11:11 rootdbs

    Thks for advance
    Chara_c

  9. #9
    Join Date
    Nov 2004
    Posts
    143
    Hello,

    Is this the first time that the informix instance is coming up? Or it was running earrlier and suddenly the instance is down. If the instance has crashed and then you have touch the rootdbs file, then I suppose you will have to restore the last level 0 and start the instance.

    If it is the 1st time you are initializing the instance, then change the name of the root chunk to say ifxroot in onconfig file, touch a new file in the directory and give permission as 770 to informix and start the instance with oninit -iv (remember, it will delete all the data and initialize the instance).

    Bye

    Nitin

  10. #10
    Join Date
    Nov 2004
    Posts
    143
    Hello,

    I feel you have not given the ROOTPATH correctly. It should be:

    ROOTPATH /home/informix/dbspaces/rootdbs

    bye

    Nitin

  11. #11
    Join Date
    Mar 2006
    Posts
    7

    Question

    Quote Originally Posted by chara_c
    Hi all,

    when i ran the cmd $onstat - and then i got the error
    "shared memory not initialized for INFORMIXSERVER 'handel' "
    what happended? i set the parameters DBSERVERNAME,SERVERNUM,
    ONCONFIG,INFORMIXDIR,INFORMIXSERVER already.
    I used ids 10 on linux as4

    Thks for advance

    Chara
    Hi,

    Thank you very much.It's work fine !.I 'm in first installed

    Rdgs,

    Chara_c

  12. #12
    Join Date
    Aug 2003
    Location
    Argentina
    Posts
    780
    Hi,

    Please change following:
    ROOTNAME rootdbs
    ROOTPATH /home/informix/dbspaces/rootdbs.
    The file /home/informix/dbspaces/rootdbs, must exist and permissions 660 (chmod 660 /home/informix/dbspaces/rootdbs )
    Next run oninit -v

    Gustavo.

  13. #13
    Join Date
    Aug 2003
    Location
    Argentina
    Posts
    780
    Hi,

    Excuse me, must be:

    ROOTPATH /home/informix/dbspaces, then run chmod 660 /home/informix/dbspaces.

    Gustavo

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •