Oracle建索引時(shí),我們?yōu)榱私ㄋ饕欤瑫?huì)加上并行,加上并行之后,此列索引就會(huì)是并行了。訪問有并行度的索引時(shí),CBO可能可能會(huì)考慮
Oracle建索引時(shí),我們?yōu)榱私ㄋ饕欤瑫?huì)加上并行,加上并行之后,此列索引就會(huì)是并行了。訪問有并行度的索引時(shí),CBO可能可能會(huì)考慮并行執(zhí)行,這可能會(huì)引發(fā)一些問題,如在服務(wù)器資源緊張的時(shí)候用并行會(huì)引起更加嚴(yán)重的爭用。當(dāng)使用并行后,需要把并行度改回來。
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 中并行度的設(shè)置需要考慮的因素
本文永久更新鏈接地址:
聲明:本網(wǎng)頁內(nèi)容旨在傳播知識(shí),若有侵權(quán)等問題請(qǐng)及時(shí)與本網(wǎng)聯(lián)系,我們將在第一時(shí)間刪除處理。TEL:177 7030 7066 E-MAIL:11247931@qq.com