informix oninit: Fatal error in shared memory initialization
刚在 SUSE 10 上安装 的 INFORMIX 11.5 不能正常启动informix@linux-62xe:~> oninit
WARNING: server initialization failed, or possibly timed out (if -w was used).
Check the message log, online.log, for errors.
online.log如下
21:02:27IBM Informix Dynamic Server Started.
21:02:27Warning: The IBM IDS Developer Edition license restriction limits
21:02:27the total shared memory size for this server to 1048576 KB.
21:02:27The maximum allowable shared memory was reset to this size to start the database server.
Tue Mar 29 21:02:29 2011
21:02:29Event alarms enabled.ALARMPROG = '/opt/informix/etc/alarmprogram.sh'
21:02:29Booting Language <c> from module <>
21:02:29Loading Module <CNULL>
21:02:29Booting Language <builtin> from module <>
21:02:29Loading Module <BUILTINNULL>
21:02:35DR: DRAUTO is 0 (Off)
21:02:35DR: ENCRYPT_HDR is 0 (HDR encryption Disabled)
21:02:35Event notification facility epoll enabled.
21:02:35IBM Informix Dynamic Server Version 11.50.FC8DE Software Serial Number AAA#B000000
21:02:35Assert Warning: chunk failed sanity check
21:02:35IBM Informix Dynamic Server Version 11.50.FC8DE
21:02:35 Who: Session(1, informix@linux-62xe, 0, 0x4b7a0028)
Thread(8, main_loop(), 4b75d028, 1)
File: rspartn.c Line: 9418
21:02:35 Results: Chunk 1 is being taken OFFLINE.
21:02:35 Action: For all spaces other than temporary dbspaces, restore the space
containing the chunk from the archive. If this chunk belongs to a
temporary dbspace and if it is not the only chunk in that dbspace,
then drop and re-create the chunk. Otherwise drop and re-create
the temporary dbspace.
21:02:35stack trace for pid 14820 written to /opt/informix/tmp/af.3f0812b
21:02:35 See Also: /opt/informix/tmp/af.3f0812b
21:02:35chunk failed sanity check
21:02:35listener-thread: err = -25572: oserr = 99: errstr = : Network driver cannot bind a name to the port.
System error = 99.
21:02:35sql_listener: ASF_LISTEN failed
21:02:35Attempting to bring listener thread down.
21:02:36I/O error, Primary Chunk '/opt/informix/tmp/demo_on.rootdbs' -- Offline (sanity)
21:02:36oninit: Fatal error in shared memory initialization
21:02:36IBM Informix Dynamic Server Stopped.
21:02:36mt_shm_remove: WARNING: may not have removed all/correct segments
求各位大侠帮忙看看 Assert Warning: chunk failed sanity check
第一次安装,请先初始化! informix@linux-62xe:~/tmp> oninit -i
This action will initialize IBM Informix Dynamic Server;
any existing IBM Informix Dynamic Server databases will NOT be accessible -
Do you wish to continue (y/n)? y
INFORMIXSERVER does not match DBSERVERNAME or any of the DBSERVERALIASES.
FAILED
WARNING: server initialization failed, or possibly timed out (if -w was used).
Check the message log, online.log, for errors.
online.log 没有信息 我觉得你应该先看下安装文档。。
你这里没有在环境里配置参数INFORMIXDIR,INFORMIXSERVER,PATH等,
配置文件ONCONFIG中的内容似乎也没有配置。。。 楼主是不是没配置配置文件?
安装前主要的几个文件要配置一下下 INFORMIXDIR=/opt/informix
INFORMIXSERVER=sk
INFORMIXTERM=terminfo
DBPATH=$INFORMIXDIR
TERMCAP=$INFORMIXDIR/etc/termcap
PATH=$INFORMIXDIR/bin:$HOME/bin:$PATH
ONCONFIG=onconfig.std
DB_LOCALE=zh_cn.gb
CLIENT_LOCALE=zh_cn.gb
DB_LANG=zh_cn.gb
DBDATE=MDY4/
export INFORMIXDIR PATH ONCONFIG DB_LANG DB_LOCALE CLIENT_LOCALE DBDATE INFORMIXSERVER
SQLEXEC=$INFORMIXDIR/lib/sqlexec
.profile中有设置这些的 回复 6# shenkangxyz
跟你的onconfig , sqlhosts配置文件不配置。。。那英文提示已经很清楚了。 sqlhosts
vm162 onsoctcp 192.168.42.162sqlexec
vm162:/opt/informix/etc # oninit -v
Checking group membership to determine server run mode...succeeded
Reading configuration file '/opt/informix/etc/onconfig'...succeeded
Creating /INFORMIXTMP/.infxdirs...succeeded
Checking config parameters...succeeded
Allocating and attaching to shared memory...succeeded
Creating resident pool 14708 kbytes...succeeded
Allocating 100016 kbytes for buffer pool of 2K page size...succeeded
Creating infos file "/opt/informix/etc/.infos.vm162"...succeeded
Linking conf file "/opt/informix/etc/.conf.vm162"...succeeded
Initializing rhead structure...succeeded
Writing to infos file...succeeded
Initialization of Encryption...succeeded
Initializing ASF...succeeded
Initializing Dictionary Cache and SPL Routine Cache...succeeded
Bringing up ADM VP...succeeded
Creating VP classes...succeeded
Onlining 0 additional cpu vps...succeeded
Onlining 2 IO vps...succeeded
Forking main_loop thread...succeeded
Initializing DR structures...succeeded
Forking 1 'soctcp' listener threads...succeeded
Starting tracing...succeeded
Initializing 8 flushers...succeeded
oninit: Fatal error in shared memory initialization
WARNING: server initialization failed, or possibly timed out (if -w was used).
Check the message log, online.log, for errors. WARNING: server initialization failed, or possibly timed out (if -w was used).
Check the message log, online.log, for errors.
页:
[1]