免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1498 | 回复: 2
打印 上一主题 下一主题

oracle 8.17中如何快速删除一个有很多extent的表 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-01-18 15:51 |只看该作者 |倒序浏览
问题背景:由于表空间缺省存储参数配置的不很理想,每个extent的大小都为20K,pctincrease为0,导致某张表占用了10万个左右的extent,如果用命令truncate table table_name来删除里面的数据,命令返回时间估计要几十个小时,而且CPU资源消耗特别多。

请问:各位大侠有没有遇到过类似的问题?怎么处理既可以提高效率又对系统的资源消耗不是很大?

论坛徽章:
0
2 [报告]
发表于 2005-01-18 15:54 |只看该作者

oracle 8.17中如何快速删除一个有很多extent的表

对上面的问题再补充一下:表空间管理是字典方式。

论坛徽章:
0
3 [报告]
发表于 2005-01-19 00:37 |只看该作者

oracle 8.17中如何快速删除一个有很多extent的表

truncate table table_name just move the high water mark.  it's a short time operation.

options:
"exp compress=y" it,  drop the table and then import it
or
create a new table with the desired storage parameters and
insert into ... select * from old table. then rename the new table back to the original.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP