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

[讨论] 一个index在几分钟内大小增加了6G,归档不多

[复制链接]
论坛徽章:
71
2015年新春福章
日期:2015-03-06 11:57:312013年新春福章
日期:2013-02-25 14:51:24双黄蛋
日期:2013-01-06 13:31:18蜘蛛蛋
日期:2013-01-06 10:26:08茶鸡蛋
日期:2012-11-21 19:35:23ITPUB 11周年纪念徽章
日期:2012-10-09 18:05:07版主2段
日期:2012-05-15 15:24:11铁扇公主
日期:2012-02-21 15:02:402012新春纪念徽章
日期:2012-02-13 15:13:512012新春纪念徽章
日期:2012-02-13 15:13:51
11#
 楼主| 发表于 2010-9-20 18:04 | 只看该作者
已经提交SR ,  SR号  3-2127227881 , Index space expand to 17.5G suddenly .

使用道具 举报

回复
论坛徽章:
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
12#
发表于 2010-9-21 01:23 | 只看该作者
What you described is very much like what alter index allocate extent does. If no human has explicitly done that, there could be a bug that essentially does the same but then the new extents are not used.

We can't view your SR. So you have to tell us what Oracle says. Thanks for keeping us posted.

Your message #9 has "Unformatted Blocks = 3405". It should be 1137328. You're using 16k db_block_size.

Yong Huang

使用道具 举报

回复
论坛徽章:
71
2015年新春福章
日期:2015-03-06 11:57:312013年新春福章
日期:2013-02-25 14:51:24双黄蛋
日期:2013-01-06 13:31:18蜘蛛蛋
日期:2013-01-06 10:26:08茶鸡蛋
日期:2012-11-21 19:35:23ITPUB 11周年纪念徽章
日期:2012-10-09 18:05:07版主2段
日期:2012-05-15 15:24:11铁扇公主
日期:2012-02-21 15:02:402012新春纪念徽章
日期:2012-02-13 15:13:512012新春纪念徽章
日期:2012-02-13 15:13:51
13#
 楼主| 发表于 2010-9-21 09:10 | 只看该作者
原帖由 Yong Huang 于 2010-9-21 01:23 发表
What you described is very much like what alter index allocate extent does. If no human has explicitly done that, there could be a bug that essentially does the same but then the new extents are not used.

We can't view your SR. So you have to tell us what Oracle says. Thanks for keeping us posted.

Your message #9 has "Unformatted Blocks = 3405". It should be 1137328. You're using 16k db_block_size.

Yong Huang
  


haah, yes, i make a mistake on the script (copied from line #8 but forgot to modify some string).  
    dbms_output.put_line(' Unformatted Blocks = '||l_full_blocks||' and Bytes = '||l_unformatted_bytes);

Actually ,  we had encountered the similar isssue two times,  and we found so many "insert and delete" operations
(logminer analysis) at first time , an index space expanded very fast (80m-->3G) but count of table rows was small ,  
so we suspected that maybe mass "insert and delete" operation was the root cause , we also did not find "alter index "
statements in the logminer content table ,  because the growth was not too big ,  we didn't think it may be a bug .

Until the second similar issue happened again , we did not find "alter index" or mass "insert and delete" operations,  and
index size expanded from 80M  to 17.5G ,  we began to doubt it was a bug  .  

I will continue to update reply from Oracle support  .

[ 本帖最后由 tolywang 于 2010-9-21 09:12 编辑 ]

使用道具 举报

回复
论坛徽章:
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-9-22 02:10 | 只看该作者
> maybe mass "insert and delete" operation was the root cause

Will the index grow larger and larger if you keep doing insert and delete from your sqlplus session? Do it at a quiet time so it won't drag down the performance of the production database, or do it in test or dev. You probably don't even need a commit between insert and delete, but each new insert must be a different key.

Yong Huang

使用道具 举报

回复

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

本版积分规则 发表回复

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