Oracle使用并行建索引须要注意的问题
2015-12-24 12:31
591 查看
建索引时。我们为了建索引快。会加上并行,加上并行之后。此列索引就会是并行了。
訪问有并行度的索引时,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
訪问有并行度的索引时,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
相关文章推荐
- Java对Oracle中Clob类型数据的读取和写入(转)
- java 读取Oracle的clob,blob转换为字符串
- oracle 11g用户名密码区分大小写
- Oracle如何实现跨库查询
- ORACLE字符集基础知识(NLS)
- 再论ORACLE的全球化支持(GLOBALIZATION)
- oracle之乘法口诀
- oracle自治事务
- oracle基础知识
- 在windows Server 2008 R2上安装oracle 12C 出现的问题以及解决方法
- Oracle trunc()函数的用法
- Oracle基础
- oracle的commit详解
- Oracle PLSQL 数组及 ROWTYPE的使…
- Oracle plsql 记录和游标的用法
- Oracle连接查询
- oracle数据库之sql查询语句笔记
- oracle数据库笔记之数据库基本管理
- 使用sqoop将oracle数据迁移到hive中
- Oracle db中 CONNECT role的含义