建索引時。我們為了建索引快。會加上並行,加上並行之后。此列索引就會是並行了。
訪問有並行度的索引時,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