Quantcast
Channel: DBA Sky » index
Browsing latest articles
Browse All 9 View Live

Move表、索引、LOB/Long

Move表、索引、LOB/Long [zt] 源文见:http://blog.oracle.com.cn/index.php/158838/viewspace-3665.html move一个表到另外一个表空间时,索引不会跟着一起move,而且会失效。(LOB类型例外) 表move,我们分为: *普通表move *分区表move *LONG,LOB大字段类型move来进行测试和说明。...

View Article



index range scan,index ffs,index ss,index fs

index rang scan 是根据索引的叶子block中数据去访问表,和 key 大小顺序一致 index FS 是根据索引的 extent /block 顺序去访问所有索引block,包括所有叶子和枝节点,这个顺序并不和 key 顺序一致。 index fast full scan只访问索引,所以和表无关,也即索引能提供查询所需的所有数据 index range scan 是...

View Article

监控索引是否使用过

在oracle 9i之后的版版本中可以使用以下语句来监控一个索引是否被使用过,这个特性为监控索引的使用,合理的调整表上的索引提供了方法,可以监控那些从来不使用的索引然后考虑删除或者重建。 1.使用alter index index_name monitoring usage;来打个摸个索引的使用监控。当然你不想监控索引的使用时,可以使用如下语句来关掉它:alter index index_name...

View Article

Oracle 不使用索引,索引失效的几种情况

1,<> 2,单独的>,<,(有时会用到,有时不会) 3,like “%_” 百分号在前. 4,表没分析. 5,单独引用复合索引里非第一位置的索引列. 6,字符型字段为数字时在where条件里不添加引号. 7,对索引列进行运算.需要建立函数索引. 8,not in ,not exist. 9,当变量采用的是times变量,而表的字段采用的是date变量时.或相反情况。 10,...

View Article

tips:index fast full scan

Scans all the block in the index Rows are not returned in sorted order Introduced in 7.3 and requires V733_PLANS_ENABLED=TRUE and CBO may be hinted using INDEX_FFS hint uses multiblock i/o can be...

View Article


索引扫描和联合索引的顺序

常用的有五种索引扫描方式: index unique scan index range scan index full scan index fast full scan index skip scan Index unique scan ~~~~~~~~~~~~~~~~~ 使用这种方式必须至少提供联合索引的第一列才能使用到联合索引。...

View Article

Clustering Factor notes

Introduction The index clustering factor is a key statistic that can improve both the Oracle optimizer’s performance, and the technician’s understanding of the utility of an index. It is used by...

View Article

判断索引需要重建的两个条件

1.校验索引结构,校验之后的索引结构信息会存在index_stats视图中。 analyze index <index_name> validate structure; 2.重建参考条件之一:index_stats中的height值,如果大于等于4,可能考虑需要重建。也可以参考user_indexs中的blevel值,这个值与height的换算关系为:height=blevel+1。...

View Article


row lock waits的两种情况

以下测试基于版本9207。 情形一:并发更新非唯一索引的索引字段引起的row lock waits在表上,不在索引上 SQL> create table test as select object_id,object_name from dba_objects; Table created. SQL> create index test_idx on test(object_id);...

View Article

Browsing latest articles
Browse All 9 View Live




Latest Images