在Oracle 11g中用看Oracle的共享内存段---------IPCS
很早之前,在一次讲课了,用了命令ipcs,发现oracle的共享内段好小,如下:
oracle@mydb ~]$ ipcs -a------ Shared Memory Segments --------
key shmid owner perms bytes nattch status
0x00000000 32768 root 644 72 2
0x00000000 65537 root 644 16384 2
0x00000000 98306 root 644 280 2
0x00000000 1409028 oracle 640 4096 0
0x00000000 1441797 oracle 640 4096 0
0x079918e8 1474566 oracle 640 4096 0 ------ Semaphore Arrays --------
key semid owner perms nsems
0x87a36da4 1343489 oracle 640 154 ------ Message Queues --------
key msqid owner perms used-bytes messages
今天突然想起,刚好有空,来总结一下:
上面显示Oracle共享内存段只有4096个字节,这太小了吧,哦,对了,我这是Oracle11g:
sys@OCM> select * from v$version;BANNER
--------------------------------------------------------------------------------
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
PL/SQL Release 11.2.0.3.0 - Production
CORE 11.2.0.3.0 Production
TNS for Linux: Version 11.2.0.3.0 - Production
NLSRTL Version 11.2.0.3.0 - Production
Oraccle11g的对内存的管理用了两个新的参数:
sys@OCM> show parameter memoryNAME TYPE VALUE
------------------------------------ ----------- ------------------------------
hi_shared_memory_address integer 0
memory_max_target big integer 1G
memory_target big integer 0
shared_memory_address integer 0
会不会是参数memory_max_target在作怪呢,把它关了试试,我这里把它设为0,然后重启数据库。
sys@OCM> alter system set memory_max_target=0 scope=spfile;System altered.sys@OCM> startup force;
ORACLE instance started.Total System Global Area 943669248 bytes
Fixed Size 2234000 bytes
Variable Size 541067632 bytes
Database Buffers 394264576 bytes
Redo Buffers 6103040 bytes
Database mounted.
Database opened.
再看共享内存:
[oracle@mydb ~]$ ipcs -a------ Shared Memory Segments --------
key shmid owner perms bytes nattch status
0x00000000 32768 root 644 72 2
0x00000000 65537 root 644 16384 2
0x00000000 98306 root 644 280 2
0x00000000 1802244 oracle 640 4096 0
0x00000000 1835013 oracle 640 4096 0
0x079918e8 1867782 oracle 640 4096 0 ------ Semaphore Arrays --------
key semid owner perms nsems
0x87a36da4 1736705 oracle 640 154 ------ Message Queues --------
key msqid owner perms used-bytes messages
怎么回事,没变啊?
是不是参数没改对,继续校验参数:
sys@OCM> show parameter memNAME TYPE VALUE
------------------------------------ ----------- ------------------------------
hi_shared_memory_address integer 0
memory_max_target big integer 904M
memory_target big integer 0
shared_memory_address integer 0
果然没改过来,是不是命令alter system set memory_max_target=0 scope=spfile;没用啊,不能怎么设,但这命令本身设置重启也没报错。
来个狠一点的命令重置默认值:
sys@OCM> alter system reset memory_max_target;System altered.sys@OCM> startup force;
ORACLE instance started.Total System Global Area 680665088 bytes
Fixed Size 2231352 bytes
Variable Size 276825032 bytes
Database Buffers 394264576 bytes
Redo Buffers 7344128 bytes
Database mounted.
Database opened.
sys@OCM> show parameter memNAME TYPE VALUE
------------------------------------ ----------- ------------------------------
hi_shared_memory_address integer 0
memory_max_target big integer 0
memory_target big integer 0
shared_memory_address integer 0
这下可以了,参数memory_max_target终于等于0了。
我们再来看ORACLE共享内存:
[oracle@mydb ~]$ ipcs -a------ Shared Memory Segments --------
key shmid owner perms bytes nattch status
0x00000000 32768 root 644 72 2
0x00000000 65537 root 644 16384 2
0x00000000 98306 root 644 280 2
0x00000000 1933316 oracle 640 12582912 30
0x00000000 1966085 oracle 640 671088640 30
0x079918e8 1998854 oracle 640 2097152 30 ------ Semaphore Arrays --------
key semid owner perms nsems
0x87a36da4 1867777 oracle 640 154 ------ Message Queues --------
key msqid owner perms used-bytes messages
可以了!已从4096字节变成671088640多字节了。,总结只要把参数memory_max_target设为0就能看到。这里不建议大家去这样改,只是为了解释一下这个现象。
上面那幅图留给童鞋们思考,不再解释了。。。
转载于:https://blog.51cto.com/guoyjoe/1431363
在Oracle 11g中用看Oracle的共享内存段---------IPCS相关推荐
- linux如何看分配固定共享内存段,Linux共享内存的查看和删除
在使用共享内存的程序异常退出时,由于没有释放掉共享内存,在调试时会出现错误.您可以使用shell命令来查看与释放已经分配的共享内存,下面将详细说明如何进行查看和释放分配的共享内存的方法. 预备知识 L ...
- 如何查询oracle的共享内存,[20190104]ipcs查看共享内存段.txt
[20190104]ipcs查看共享内存段.txt --//数据库启动异常,有时候会留下一些共享内存段没有清理,需要使用ipcrm清理. --//由于服务器上跑2个实例,必须选择正确的共享内存段,否则 ...
- oracle12 共享内存不存在,DBA警世录:Oracle的共享内存段
DBA警世录:Oracle的共享内存段 最近看到ITPUB上有这样一个帖子,觉得有点意思,收录一下,以为借鉴. 这位朋友的Apache和Oracle运行在同一台主机上:平台是redhat as 3 , ...
- oracle 11g sga max,oracle 10g 11g中的SGA_MAX_SIZE与SGA_TARGET参数
oracle 10g中的SGA_MAX_SIZE与SGA_TARGET参数 sga_target是自动管理内存时使用的,这样你就不用设置DB_CACHE_SIZE,SHARED_POOL_SIZE等参 ...
- Linux释放内存及手动释放Oracle共享内存段
free -m #echo 3 > /proc/sys/vm/drop_caches#cat /proc/sys/vm/drop_caches3 free -m 手动删除Oracle共享内存段 ...
- linux操作系统中查找某个进程,在linux下查看有哪些操作系统进程正在使用某一个共享内存段...
[root@abc log]# ipcs -m ------ Shared Memory Segments -------- key shmid owner perms bytes nattch st ...
- linux共享内存原IPCS,linux调试工具ipcs的深入分析
用ipcs调试共享内存 测试源程序如下: #include #include #include #include #include #include #include void error_out(c ...
- UC编程9-管道pipe操作和共享内存段shm操作
//myuc.h #include<stdio.h>//io流 #include<stdlib.h>//标准库 #include<unistd.h>//uc标准头文 ...
- Oracle 11g 新特性 -- 自适应游标共享(Adaptive Cursor Sharing: ACS) 说明
一.自适应游标共享(Adaptive Cursor Sharing) 说明 1.1 ACS概述 绑定变量使Oracle DB 可以为多条SQL 语句共享单个游标,以减少分析SQL 语句所使用的共享内存 ...
最新文章
- pch在c语言中占内存字节数,2018年9月计算机二级C语言考试章节习题及答案(6).docx...
- KeyWordHelper-关键字提取类(注:使用第三方组件DictSeg.dll)
- linux安装metasploit,centos如何安装metasploit
- 自己对Delphi中使用正则表达式的研究心得
- doctype的三种类型
- Sql Server 2005的1433端口打开和进行远程连接
- DOF和MultiSwitch的使用
- 巨一自动化工业机器人_2021第11届深圳国际工业自动化及机器人展览会
- 北京链安:火币生态链Heco主网上线一月,已达到以太坊峰值5倍处理能力
- 存数据返回他的序列号id_使用excel进行数据分析
- oracle dba_hist tablepsace,oracle数据库dba_hist等视图中的Delta相关字段介绍
- 最新的Functions 类
- shell 死循环if判断_一个简单的shell脚本问题!怎么出现了死循环呢?谢谢
- 树莓派4B无显示屏系统安装(Raspbian)
- LabView学习之旅(2)labview基础编程
- 百度地图/腾讯地图/世界开源地图经纬度API查询接口
- 机器人视觉硬件方案设计对比
- ACE初学者使用指南
- Ubuntu下的文件比较工具--meld
- 英文双引号引发的杯具
热门文章
- InvalidateRect()、UpdateWindow()、RedrawWindow()区别
- GetClientRect()和GetWindowRect()
- 电脑端跳转手机版的php代码,帝国CMS电脑端自动跳转到手机端移动端的方法
- matlab参数识别,教程:matlab参数识别(包括微分方程和simulink)
- 英语语法---句子成分总结
- 英语语法---副词详解
- c#sort升序还是降序_被玩坏的数组排序之sort函数
- linux内核杂记(8)-进程调度(3)
- 【Python】Python办公自动化 | 一键给PDF文件加密,超方便
- 【小白学PyTorch】11.MobileNet详解及PyTorch实现