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

时间:2023-03-09 17:23:09
Oracle使用并行索引需要注意的问题

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

当并行度索引访问,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

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

相关文章