同志们,如果linux的shmmax < oracle 的sga大小,那么就会把ORACLE的SGA分成N块shmmax的内存块 是吧
SQL> show sga;Total System Global Area 167772160 bytes
Fixed Size 1218316 bytes
Variable Size 79694068 bytes
Database Buffers 83886080 bytes
Redo Buffers 2973696 bytes
SQL>
[oracle@localhost ~]$ cat /etc/sysctl.conf | grep shmmaxkernel.shmmax = 80000000
为什么我查看的共享内存段只有一个啊:[oracle@localhost ~]$ ipcs -sa------ Shared Memory Segments --------
key shmid owner perms bytes nattch status
0x00000000 65537 oracle 640 4194304 13
0x00000000 98306 oracle 640 79691776 13
0x00000000 131075 oracle 640 79691776 13
0x229f8e04 163844 oracle 640 8388608 13------ Semaphore Arrays --------
key semid owner perms nsems
0x11769730 98304 oracle 640 154------ Message Queues --------
key msqid owner perms used-bytes messages
SQL> show sga;Total System Global Area 167772160 bytes
Fixed Size 1218316 bytes
Variable Size 79694068 bytes
Database Buffers 83886080 bytes
Redo Buffers 2973696 bytes
SQL>
[oracle@localhost ~]$ cat /etc/sysctl.conf | grep shmmaxkernel.shmmax = 80000000
为什么我查看的共享内存段只有一个啊:[oracle@localhost ~]$ ipcs -sa------ Shared Memory Segments --------
key shmid owner perms bytes nattch status
0x00000000 65537 oracle 640 4194304 13
0x00000000 98306 oracle 640 79691776 13
0x00000000 131075 oracle 640 79691776 13
0x229f8e04 163844 oracle 640 8388608 13------ Semaphore Arrays --------
key semid owner perms nsems
0x11769730 98304 oracle 640 154------ Message Queues --------
key msqid owner perms used-bytes messages
解决方案 »
- oracle数据库文件
- [Oracle]如何将表空间A下的用户切换到表空间B
- oracle 安装问题请各位帮忙
- 进入oracle的oem 时错误
- 请教一个全表取数效率优化问题!非常奇怪。
- oracle中,设定varchar2长度为4000,(最大只能存4000),为什么存到1333就不行了,多一个都不行,报 ORA-01480:trailling missing from STR bin
- 80分求,oracle如何在不删列数据的情况下从varchar2改为number型
- TO_NUMBER函数怎么用?
- 求救:关于CLOB的操作问题?在线等待,分数不够在加
- oracle 的sql 语句如何转换成sql server 的sql 语句
- sql developer 如何创建数据库(解决马上给分)
- SQL语言是1阶语言吗?
SELECT 4194304+79691776+79691776+8388608,167772160 FROM dual;
你的该参数设为(80000000/1024/1024)M,ORACLE也在严格遵守。
不过,很显然,你的该参数值偏小。
0x00000000 65537 oracle 640 4194304 13
0x00000000 98306 oracle 640 79691776 13
0x00000000 131075 oracle 640 79691776 13
0x229f8e04 163844 oracle 640 8388608 13
看共享内存段的时候不是只看非0x00000000 的吗?0x00000000 和0x229f8e04 又有啥区别呢
oracle@localhost:~$ getconf PAGESIZE
4096
如果你的pagesize 也是如此的话,你的shmmax 的大小应该为80000000*4=32k