关于IPC 参考
《第9章 System_V_IPC.doc》
组成System V IPC的三个进程间通信机制是:消息队列、信号量和共享内存。
[root@dba ~]# ipcs -m
------ Shared Memory Segments --------
key shmid owner perms bytes nattch status
0x740283f9 1900544 root 600 4 0
0x740283ce 2588673 root 600 4 0
0x74028435 65538 root 600 4 0
0x00000000 2949123 root 644 52 2
0x740283cd 2555908 root 600 4 0
0x00000000 2981893 root 644 16384 2
0x00000000 3014662 root 644 268 2
0x264feb88 3047431 oracle 640 608174080 18
0x00000000 3112968 root 600 393216 2 dest
0x00000000 3145737 root 600 393216 2 dest
0x00000000 3178506 root 600 393216 2 dest
0x00000000 3211275 root 600 393216 2 dest
0x00000000 3244044 root 600 393216 2 dest
0x00000000 3309582 root 600 393216 2 dest
0x00000000 3342351 root 600 393216 2 dest
0x00000000 3375120 root 600 393216 2 dest
0x00000000 3407889 root 600 393216 2 dest
[root@dba ~]# ipcrm -m shmid
/etc/sysctl.conf 中的安装时参数:
kernel.shmmax 要大于等于SGA_MAX_SIZE
如果小于 就会变成一个SGA有两个内存段 造成在两个内存段中来回切换 性能下降
[root@dba ~]# ipcs -m
------ Shared Memory Segments --------
key shmid owner perms bytes nattch status
0x740203cd 1605632 root 600 4 0
0x264feb88 2293761 oracle 640 318767104 18
0x740203cc 1572866 root 600 4 0
[root@dba ~]#
如果你的oracle异常停止 内存段不能释放 这时也无法启动
释放内存段的方法
[root@dba ~]# ipcrm -m SHMID
如果这条命令还不能释放 只能重新启动操作系统.
********************************************************************
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/24902906/viewspace-719137/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/24902906/viewspace-719137/