oracle学习小结3之索引
来源:互联网 发布:股票网络销售好做吗 编辑:程序博客网 时间:2024/05/15 23:50
今天归纳索引的常用操作
1) 索引分为B树索引和位图索引
创建
create index scott.event_index
on scott.event(name)
pctfree 25
storage(initial 500k)
tablespace system;
如果是位图索引,则create bitmap index .........
2) 查找某个用户的索引的好似用情况,
select index_name,index_type,tablespace_name,uniqueness,status from dba_indexes where owner='SCOTT';
查找scott用户基于表和列的信息
select index_name,table_name,column_name,index_owner,table_owner from dba_ind_columns where table_owner='SCOTT';
3)
重建立和维护索引
alter index scott.emp_ename_index rebuild
......
回收索引空间
alter index scott.emp_ename_idx deallocate unused;
合拼索引碎片
alter index scott.emp_ename_idx coalesce;
4) 查看索引使用情况
alter index emp_ename_idx monitoring usage;
这里可以打开监督索引的开关
然后做一些查询后,可以用
select * from v$object_usage;
来查看索引使用情况
再次执行 alter index emp_ename_idx monitoring usage;
则关闭开关.
5) 删除索引
drop index scott.emp_ename_idx;
1) 索引分为B树索引和位图索引
创建
create index scott.event_index
on scott.event(name)
pctfree 25
storage(initial 500k)
tablespace system;
如果是位图索引,则create bitmap index .........
2) 查找某个用户的索引的好似用情况,
select index_name,index_type,tablespace_name,uniqueness,status from dba_indexes where owner='SCOTT';
查找scott用户基于表和列的信息
select index_name,table_name,column_name,index_owner,table_owner from dba_ind_columns where table_owner='SCOTT';
3)
重建立和维护索引
alter index scott.emp_ename_index rebuild
......
回收索引空间
alter index scott.emp_ename_idx deallocate unused;
合拼索引碎片
alter index scott.emp_ename_idx coalesce;
4) 查看索引使用情况
alter index emp_ename_idx monitoring usage;
这里可以打开监督索引的开关
然后做一些查询后,可以用
select * from v$object_usage;
来查看索引使用情况
再次执行 alter index emp_ename_idx monitoring usage;
则关闭开关.
5) 删除索引
drop index scott.emp_ename_idx;
- oracle学习小结3之索引
- oracle学习小结3之索引
- oracle学习之索引
- oracle学习之索引误区
- oracle学习小结之五
- oracle学习小结之五
- oracle函数索引小结
- oracle索引知识小结
- Oracle索引小结
- oracle学习之--9,oracle索引
- Mysql之索引小结
- oracle学习之索引与约束
- oracle学习之约束与索引
- 【Oracle学习】之 索引(index)
- oracle学习笔记--之--时间timestamp小结
- 72、oracle函数索引小结
- 全文索引Lucene学习小结之项目设计
- oracle索引的学习
- oracle 学习小结4
- 爱是永恒,依然爱是您
- 碟评--梁紫丹新碟<<紫色的声音>>
- spring mvc之把信息提示带到下个页面
- spring mvc中的页面跳转
- oracle学习小结3之索引
- jad反编译工具的使用
- 林锐的软件工程IDP读书心得
- 恢复sql 2005误删除的数据
- 用程序自动把视频文件转为flv文件
- oracle学习小结2
- (转)阻止网页挂马的若干工具收藏
- ffpmeg参数说明
- (转)Oracle开发专题之:时间运算