12
返回列表 发新帖
楼主: panzhkn

[讨论] oracle 进程突现大量换页导致小型机重启

[复制链接]
论坛徽章:
47
蒙奇·D·路飞
日期:2017-03-27 08:04:23马上有车
日期:2014-02-18 16:41:112014年新春福章
日期:2014-02-18 16:41:11一汽
日期:2013-09-01 20:46:27复活蛋
日期:2013-03-13 07:55:232013年新春福章
日期:2013-02-25 14:51:24ITPUB 11周年纪念徽章
日期:2012-10-09 18:03:322012新春纪念徽章
日期:2012-02-13 15:13:202012新春纪念徽章
日期:2012-02-13 15:13:202012新春纪念徽章
日期:2012-02-13 15:13:20
11#
发表于 2010-1-20 04:30 | 只看该作者
> 我们这里是运行客户端的一个报表引起的,一月初将系统从原来的ibm3655rac集群(32位Linux32位oracle10.2.0.4)
> 迁移到ibmp550小机rac集群上,该报表就引起了这样的问题。这样的问题怎么解决,

Are you saying this problem didn't happen before and happened after the migration, and the client side reporting program remained the same?

There's no magic here. Just check the program. Make sure it does not do unnecessary big sorting and hashing, and no in-memory array that is too big to fit in memory. As DBA, you also can check the trace file to see the SQL that caused the problem. Watch the session when the reporting program runs. Monitor pga_alloc_mem column of v$process or v$sesstat for 'session pga memory' statistic.

Yong Huang

使用道具 举报

回复
论坛徽章:
3
CTO参与奖
日期:2009-02-12 11:45:48生肖徽章2007版:狗
日期:2009-03-10 21:17:06生肖徽章2007版:羊
日期:2009-11-16 18:43:22
12#
发表于 2010-1-20 10:35 | 只看该作者
迁移后导致宕机的关键应该是,原来是32位linux,只能用1.7G内存,即使出现问题也不会完全使用系统内存,各个节点之间通讯是正常的,rac不会踢出这个节点,最多在数据库中报ora-4030;但在aix上, memory(kbytes)       unlimited,直接导致系统失去响应,从而使另一个节点把该节点踢掉

使用道具 举报

回复
论坛徽章:
0
13#
 楼主| 发表于 2010-1-20 11:34 | 只看该作者
原32位Linux下,sga为1.7g,物理内存为8g;aix下物理内存为16g,sga设为8g,aix内存使用确实是unlimited。发生时,系统确实失去响应。oracle进程会去占用系统内存吗?除了修改报表sql语句外,还有什么办法吗?望指教!

使用道具 举报

回复
论坛徽章:
47
蒙奇·D·路飞
日期:2017-03-27 08:04:23马上有车
日期:2014-02-18 16:41:112014年新春福章
日期:2014-02-18 16:41:11一汽
日期:2013-09-01 20:46:27复活蛋
日期:2013-03-13 07:55:232013年新春福章
日期:2013-02-25 14:51:24ITPUB 11周年纪念徽章
日期:2012-10-09 18:03:322012新春纪念徽章
日期:2012-02-13 15:13:202012新春纪念徽章
日期:2012-02-13 15:13:202012新春纪念徽章
日期:2012-02-13 15:13:20
14#
发表于 2010-1-21 01:57 | 只看该作者
hxre's message #12 is good. The AIX box is 64-bit. Correct? "memory(kbytes) unlimited" probably refers to the fact that the OS and Oracle software is 64-bit so there's practically no limit in memory usage. But this is not shell limit, as seen in `ulimit -m' command output, because by default it should be unlimited on Linux as well.

> oracle进程会去占用系统内存吗?

Of course. Why not?

> 除了修改报表sql语句外,还有什么办法吗?

If you don't, you must add more physical memory to the box or reduce SGA.

There're times an Oracle session should not use that much PGA and it does. It could be due to a bug. Work with Oracle. A similar case on my mind is:
http://www.freelists.org/post/or ... -AGGREGATE-TARGET,3

Yong Huang

使用道具 举报

回复
论坛徽章:
138
19周年集字徽章-19
日期:2020-06-08 08:30:56马上加薪
日期:2014-02-19 11:55:14马上有对象
日期:2014-02-19 11:55:14马上有钱
日期:2014-02-19 11:55:14马上有房
日期:2014-02-19 11:55:14马上有车
日期:2014-02-19 11:55:14马上有房
日期:2014-02-18 16:42:022014年新春福章
日期:2014-02-18 16:42:02路虎
日期:2013-11-22 12:26:18问答徽章
日期:2014-05-08 12:15:31
15#
发表于 2010-1-21 08:42 | 只看该作者
建议你先看看为什么内存会突然增大很多,是不是有什么特殊的操作

使用道具 举报

回复

您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

TOP技术积分榜 社区积分榜 徽章 团队 统计 知识索引树 积分竞拍 文本模式 帮助
  ITPUB首页 | ITPUB论坛 | 数据库技术 | 企业信息化 | 开发技术 | 微软技术 | 软件工程与项目管理 | IBM技术园地 | 行业纵向讨论 | IT招聘 | IT文档
  ChinaUnix | ChinaUnix博客 | ChinaUnix论坛
CopyRight 1999-2011 itpub.net All Right Reserved. 北京盛拓优讯信息技术有限公司版权所有 联系我们 未成年人举报专区 
京ICP备16024965号-8  北京市公安局海淀分局网监中心备案编号:11010802021510 广播电视节目制作经营许可证:编号(京)字第1149号
  
快速回复 返回顶部 返回列表