Oracle建索引時,我們為了建索引快,會加上并行,加上并行之后,此列索引就會是并行了。訪問有并行度的索引時,CBO可能可能會考慮
Oracle建索引時,我們為了建索引快,會加上并行,加上并行之后,此列索引就會是并行了。訪問有并行度的索引時,CBO可能可能會考慮并行執行,這可能會引發一些問題,如在服務器資源緊張的時候用并行會引起更加嚴重的爭用。當使用并行后,需要把并行度改回來。
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 中并行度的設置需要考慮的因素
本文永久更新鏈接地址:
聲明:本網頁內容旨在傳播知識,若有侵權等問題請及時與本網聯系,我們將在第一時間刪除處理。TEL:177 7030 7066 E-MAIL:11247931@qq.com