当linux服务器异常断电等情况重启时候,有时候会出现oracle 所占用的共享内存没有正常释放,这个时候在不重启服务器的前提下,需要手工删除共享内存段:
使用如下命令查看共享内存段信息:
ipcs -sa
------ Shared Memory Segments --------
key shmid owner perms bytes nattch status
0x00000000 32768 root 644 40 2
0x00000000 65537 root 644 16384 2
0x00000000 98306 root 644 268 2
0x3fd8259c 163844 oracle 600 163577856 19
------------------------------------------------------------------------------------------------------------------------
然后使用ipcrm -m命令删除共享内存段:
[oracle@lonion ~]$ ipcrm -m 163844 ------删除共享段内存
------------------------------------------------------------------------------------------------------------------------
记录下来,以备不时之需!