码迷,mamicode.com
首页 > 数据库 > 详细

Oracle使用并行索引需要注意的问题

时间:2015-08-25 14:11:59      阅读:148      评论:0      收藏:0      [点我收藏+]

标签:

    当索引的结构。我们要建立索引快。它将并行加,加平行后。这将平行的列索引。

当并行度索引访问,CBO你可能会考虑并行运行,这可能会导致一些问题。作为server候用并行会引起更加严重的争用。当使用并行后。须要把并行度改回来。

SQL> drop table test purge;

SQL> create table test as select * from dba_objects;
SQL> create index ind_t_object_id on test(object_id) parallel 4 ;
SQL> select s.degree
      from dba_indexes s
     where s.index_name = upper(‘ind_t_object_id‘);
DEGREE
----------------------------------------
4

SQL> alter index ind_t_object_id noparallel;

SQL> select s.degree
      from dba_indexes s
     where s.index_name = upper(‘ind_t_object_id‘);
DEGREE
----------------------------------------
1

版权声明:本文博客原创文章,博客,未经同意,不得转载。

Oracle使用并行索引需要注意的问题

标签:

原文地址:http://www.cnblogs.com/bhlsheji/p/4757058.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!