请指教如何解决这个问题,我的 Linux 上有 informix DB,但它失败了 - 共享内存创建时发生致命错误
su - informix
-sh-2.05b$ oninit -v
ONCONFIG /usr/informix/etc/onconfig.active is not owned by user with id 4000.
Checking group membership to determine server run modesucceeded
Reading configuration file '/usr/informix/etc/onconfig.active'...succeeded
Creating /INFORMIXTMP/.infxdirs ... succeeded
Creating infos file "/usr/informix/etc/.infos.active_trm" ... "/usr/informix/etc/.conf.active_trm" ... s succeeded
Writing to infos file ... succeeded
Checking config parameters...succeeded
Allocating and attaching to shared memory...FAILED
oninit: Fatal error in shared memory creation
启动-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)?
please enter 'y' or 'n'...
Do you wish to continue (y/n)? y
oninit: Fatal error in shared memory creation
答案1
您的共享内存段可能未正确清除。运行 onclean -ky 命令。这有望清除所有残留的共享内存段。
如果这不起作用,请运行 ipcs 命令来识别内存段并使用 ipcrm 删除
答案2
确保您660
对ROOTPATH
文件拥有权限,请参阅的位置$INFORMIX/etc/[your_onconfig]
。
启动oninit -ivy
以获取更多详细信息或查看MSGPATH
文件日志。