楼主: feng_xin

[精华] help! 查询DBA_SEGMENTS突然变得很慢

[复制链接]
论坛徽章:
20
ITPUB元老
日期:2005-02-28 12:57:002012新春纪念徽章
日期:2012-02-13 15:10:582012新春纪念徽章
日期:2012-02-13 15:10:582012新春纪念徽章
日期:2012-02-13 15:10:582012新春纪念徽章
日期:2012-02-13 15:10:58马上有车
日期:2014-02-19 11:55:14马上有房
日期:2014-02-19 11:55:14马上有钱
日期:2014-02-19 11:55:14马上有对象
日期:2014-02-19 11:55:142012新春纪念徽章
日期:2012-02-13 15:10:58
41#
发表于 2002-9-17 17:00 | 只看该作者
So, you can temporary use this SQL 'select count(*)  from sys.seg$'  TO replace 'select count(*) from segments'.  We have a customer who have the same problem, that is Oracle815 problem.  May be some index or table extents in System cannot be cached for nested loop operation.

使用道具 举报

回复
招聘 : HTML页面制作
论坛徽章:
74
喜羊羊
日期:2015-04-29 17:32:03夏利
日期:2013-11-30 17:08:44雪佛兰
日期:2013-09-02 10:24:402013年新春福章
日期:2013-02-25 14:51:24蜘蛛蛋
日期:2012-11-26 22:08:56ITPUB 11周年纪念徽章
日期:2012-10-09 18:03:32双黄蛋
日期:2012-05-17 22:25:44版主3段
日期:2012-05-15 15:24:11茶鸡蛋
日期:2012-04-06 17:43:25茶鸡蛋
日期:2012-03-26 21:29:09
42#
 楼主| 发表于 2002-9-17 17:14 | 只看该作者
最初由 richto 发布
[B]So, you can temporary use this SQL 'select count(*)  from sys.seg$'  TO replace 'select count(*) from segments'.  We have a customer who have the same problem, that is Oracle815 problem.  May be some index or table extents in System cannot be cached for nested loop operation. [/B]


May be some index or table extents in System cannot be cached for nested loop operation? 对这句不是很理解,能详细讲讲吗? 在什么情况下会出现这种情况,是由于什么原因引起的,出现这种情况为什么会严重影响查询性能?

真对不起,浪费您的时间了,您也可以给我推荐一些资料来看。非常感谢!

使用道具 举报

回复
论坛徽章:
86
ITPUB元老
日期:2005-02-28 12:57:002012新春纪念徽章
日期:2012-01-04 11:49:542012新春纪念徽章
日期:2012-02-13 15:13:202012新春纪念徽章
日期:2012-02-13 15:13:202012新春纪念徽章
日期:2012-02-13 15:13:202012新春纪念徽章
日期:2012-02-13 15:13:202012新春纪念徽章
日期:2012-02-13 15:13:20咸鸭蛋
日期:2012-05-08 10:27:19版主8段
日期:2012-05-15 15:24:112013年新春福章
日期:2013-02-25 14:51:24
43#
发表于 2002-9-17 17:29 | 只看该作者

May be some index or table extents in System cannot be cached for nested loop op

也许一些系统的表或者索引的数据不能被缓存在内存中用于nested loop

这样nested loop 每次都需要直接从物理文件读取

使用道具 举报

回复
招聘 : HTML页面制作
论坛徽章:
74
喜羊羊
日期:2015-04-29 17:32:03夏利
日期:2013-11-30 17:08:44雪佛兰
日期:2013-09-02 10:24:402013年新春福章
日期:2013-02-25 14:51:24蜘蛛蛋
日期:2012-11-26 22:08:56ITPUB 11周年纪念徽章
日期:2012-10-09 18:03:32双黄蛋
日期:2012-05-17 22:25:44版主3段
日期:2012-05-15 15:24:11茶鸡蛋
日期:2012-04-06 17:43:25茶鸡蛋
日期:2012-03-26 21:29:09
44#
 楼主| 发表于 2002-9-17 17:39 | 只看该作者

Re: May be some index or table extents in System cannot be cached for nested loo

最初由 biti_rainy 发布
[B]也许一些系统的表或者索引的数据不能被缓存在内存中用于nested loop

这样nested loop 每次都需要直接从物理文件读取 [/B]


我想知道为什么不能缓存在内存中呢? 在什么情况下会出现这种情况,是由于什么原因引起的?

使用道具 举报

回复
论坛徽章:
86
ITPUB元老
日期:2005-02-28 12:57:002012新春纪念徽章
日期:2012-01-04 11:49:542012新春纪念徽章
日期:2012-02-13 15:13:202012新春纪念徽章
日期:2012-02-13 15:13:202012新春纪念徽章
日期:2012-02-13 15:13:202012新春纪念徽章
日期:2012-02-13 15:13:202012新春纪念徽章
日期:2012-02-13 15:13:20咸鸭蛋
日期:2012-05-08 10:27:19版主8段
日期:2012-05-15 15:24:112013年新春福章
日期:2013-02-25 14:51:24
45#
发表于 2002-9-17 17:43 | 只看该作者

赫赫

我只是翻译这句话

别问我为什么  

如果真如楼上的这个预测,那就是bug

使用道具 举报

回复
论坛徽章:
20
ITPUB元老
日期:2005-02-28 12:57:002012新春纪念徽章
日期:2012-02-13 15:10:582012新春纪念徽章
日期:2012-02-13 15:10:582012新春纪念徽章
日期:2012-02-13 15:10:582012新春纪念徽章
日期:2012-02-13 15:10:58马上有车
日期:2014-02-19 11:55:14马上有房
日期:2014-02-19 11:55:14马上有钱
日期:2014-02-19 11:55:14马上有对象
日期:2014-02-19 11:55:142012新春纪念徽章
日期:2012-02-13 15:10:58
46#
发表于 2002-9-17 17:44 | 只看该作者
Thanks, biti_rainy !
That is what I guessed, since the problem happened in Israel, I could not check their database myself.  According to your plan, which is the same as what we have in my database.  The symptom is that both of you have many tables and indexes in your database.  Due to some table growth, new extents are created in System, if Oracle has problem to cache(or being flushed) new extents.  For Nested Loop operation is a disaster.  Oracle have to re-read a table and index everytime.  I think that is the problem on Oracle815 only.  I have not seem any in other versions.  
I don't recommend Import and Expert system tables.

使用道具 举报

回复
论坛徽章:
20
ITPUB元老
日期:2005-02-28 12:57:002012新春纪念徽章
日期:2012-02-13 15:10:582012新春纪念徽章
日期:2012-02-13 15:10:582012新春纪念徽章
日期:2012-02-13 15:10:582012新春纪念徽章
日期:2012-02-13 15:10:58马上有车
日期:2014-02-19 11:55:14马上有房
日期:2014-02-19 11:55:14马上有钱
日期:2014-02-19 11:55:14马上有对象
日期:2014-02-19 11:55:142012新春纪念徽章
日期:2012-02-13 15:10:58
47#
发表于 2002-9-17 17:46 | 只看该作者
Again, it is an Oracle bug, it cannot be explain.

使用道具 举报

回复
论坛徽章:
3
ITPUB元老
日期:2005-02-28 12:57:00授权会员
日期:2005-10-30 17:05:33会员2006贡献徽章
日期:2006-04-17 13:46:34
48#
发表于 2002-9-17 18:25 | 只看该作者
到最后还是oracle的bug



顺便提一句
你做过system 的anaylze吗?

使用道具 举报

回复
论坛徽章:
3
ITPUB元老
日期:2005-02-28 12:57:00授权会员
日期:2005-10-30 17:05:33会员2006贡献徽章
日期:2006-04-17 13:46:34
49#
发表于 2002-9-17 19:23 | 只看该作者
系统表做过分析,应该删除。
但是看metalink的其他帖子好像加/*+ RULE */提示都可以解决的。
可能真是一个BUG。
我们这儿又来了一个高手richto

使用道具 举报

回复
论坛徽章:
5
授权会员
日期:2005-10-30 17:05:332014年新春福章
日期:2014-02-18 16:41:11马上有车
日期:2014-02-18 16:41:112015年新春福章
日期:2015-03-04 14:19:112015年新春福章
日期:2015-03-06 11:57:31
50#
发表于 2002-9-17 21:45 | 只看该作者

关注!

不好意思, 显然是灌水!

使用道具 举报

回复

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

本版积分规则 发表回复

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