informix Shared memory 错误

其他用户运行onstat -时出错
[back@tonykorn97 ~]$ onstat -
onstat: Shared memory: permission denied.
[back@tonykorn97 ~]$


关闭数据库后重新启动出错
[informix@tonykorn97 ~]$ oninit -v
Checking group membership to determine server run mode...succeeded
Reading configuration file '/home/informix/etc/txfront.cfg'...succeeded
Creating /INFORMIXTMP/.infxdirs...succeeded
Creating infos file "/home/informix/etc/.infos.ontxfront"...succeeded
Linking conf file "/home/informix/etc/.conf.ontxfront"...succeeded
Writing to infos file...succeeded
Checking config parameters...succeeded
Allocating and attaching to shared memory...FAILED
oninit: Fatal error in shared memory creation
[informix@tonykorn97 ~]$

重新安装后进入informix用户
[informix@tonykorn97 ~]$ onstat -
*** WARNING: IBM Informix Dynamic Server is no longer running. ***

*** WARNING: IBM Informix Dynamic Server is no longer running. ***


IBM Informix Dynamic Server Version 10.00.UC4 -- Initialization -- Up 254 days 23:21:15 -- 141412 Kbytes

*** WARNING: IBM Informix Dynamic Server is no longer running. ***

[informix@tonykorn97 ~]$


查看共享内存
[root@tonykorn97 SERVER]# ipcs

------ Shared Memory Segments --------
key shmid owner perms bytes nattch status 
0x52574801 0 root 660 13733888 0 
0x52574802 32769 root 660 131072000 0 
0x52584801 65538 root 660 138342400 0 
0x52584802 98307 root 660 131072000 0

------ Semaphore Arrays --------
key semid owner perms nsems

------ Message Queues --------
key msqid owner perms used-bytes messages

[root@tonykorn97 SERVER]# ipcrm -M 0x52574801
[root@tonykorn97 SERVER]# ipcrm -M 0x52574802
[root@tonykorn97 SERVER]# ipcrm -M 0x52584801
[root@tonykorn97 SERVER]# ipcrm -M 0x52584802
[root@tonykorn97 SERVER]# ipcs

------ Shared Memory Segments --------
key shmid owner perms bytes nattch status

------ Semaphore Arrays --------
key semid owner perms nsems

------ Message Queues --------
key msqid owner perms used-bytes messages

[root@tonykorn97 SERVER]#


然后重新启动
[informix@tonykorn97 ~]$ onstat -
shared memory not initialized for INFORMIXSERVER 'ontxfront'
[informix@tonykorn97 ~]$ oninit -v
Checking group membership to determine server run mode...succeeded
Reading configuration file '/home/informix/etc/txfront.cfg'...succeeded
Creating /INFORMIXTMP/.infxdirs...succeeded


原文地址:http://blog.itpub.net/post/6414/462093


你可能感兴趣的:(数据库相关)