Chinaunix首页 | 论坛 | 博客
  • 博客访问: 539416
  • 博文数量: 65
  • 博客积分: 1158
  • 博客等级: 少尉
  • 技术积分: 1261
  • 用 户 组: 普通用户
  • 注册时间: 2012-07-18 22:07
文章分类

全部博文(65)

文章存档

2016年(1)

2014年(2)

2013年(9)

2012年(53)

分类: Oracle

2012-11-23 19:17:17

1.重建索引

alter index index_name1 rebuild;

2.重建索引并转移到别的表空间

alter index index_name1 rebuild tablespace other_tablespace;  --这个表空间要首先创建

3.修改索引的一些参数设置

alter index index_name rebuild pctfree 30 storage(next 100k);

4.自动为索引分配空间

alter index index_name allocate extent;

5.整合索引碎片

alter index index_name coalesce;

6.删除一个索引

drop index index_name;

7.开启对索引的监控,然后分析索引

--首先开启对索引的监控

alter index index_name  monitoring usage;

--然后执行一个与索引有关的查询

--接着关闭对索引的监控

alter index index_name  nomonitoring usage;

--然后查询v$object_usage视图

select index_name,start_monitoring,end_monitoring
from  v$object_usage
where index_name = '........'
阅读(1918) | 评论(0) | 转发(0) |
0

上一篇:RAC故障处理一例

下一篇:恺撒的密码

给主人留下些什么吧!~~