Oracle使用并行建索引需要注意的问题
2014-05-30 08:44
573 查看
建索引时,我们为了建索引快,会加上并行,加上并行之后,此列索引就会是并行了。访问有并行度的索引时,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
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使用并行索引需要注意的问题
- Oracle使用并行建索引须要注意的问题
- [转]AppFuse中使用Oracle需要注意的问题
- 使用Oracle SQL trace时需要注意的问题
- 【转】使用C#通过Oracle.DataAccess连接Oracle,部署时需要注意版本问题
- 使用C#通过Oracle.DataAccess连接Oracle,部署时需要注意版本问题
- 使用C#通过Oracle.DataAccess连接Oracle,部署时需要注意版本问题
- ibatis使用Oracle的regexp_replace等正则函数时需要注意转义问题
- 使用C#通过Oracle.DataAccess连接Oracle,部署时需要注意版本问题
- Oracle判断数据是否存在(使用游标判断需要注意的问题)
- web程序使用Oracle需要注意的问题.
- win7 64位下自行编译OpenCV2.4.10+CUDA toolkit 5.5的整个过程以及需要注意的问题(opencv+cuda并行计算元素的使用)
- win7 64位下自行编译OpenCV2.4.10+CUDA toolkit 5.5的整个过程以及需要注意的问题(opencv+cuda并行计算元素的使用)
- win7 64位下自行编译OpenCV2.4.10+CUDA toolkit 5.5的整个过程以及需要注意的问题(opencv+cuda并行计算元素的使用)
- 使用CHtmlView需要注意的问题之一
- vs.net中使用SuperMap需要注意的问题[转载]
- 关于sql server建立索引需要注意的问题
- 关于SQL SERVER建立索引需要注意的问题
- 使用Mount bind时需要注意的权限问题
- 使用UL 列表结构建立横向导航栏需要注意的问题