- 最后登录
- 2019-8-29
- 在线时间
- 5 小时
- 威望
- 5
- 金钱
- 5
- 注册时间
- 2013-5-24
- 阅读权限
- 10
- 帖子
- 8
- 精华
- 0
- 积分
- 5
- UID
- 1106
|
1#
发表于 2013-9-6 17:39:47
|
查看: 6281 |
回复: 5
版本: redhat 10.2.0.4.0
RACDB1@rac1 /home/oracle$ uname -a
Linux rac1 2.6.18-164.el5 #1 SMP Tue Aug 18 15:51:54 EDT 2009 i686 i686 i386 GNU/Linux
RACDB1@rac1 /home/oracle$ sqlplus / as sysdba;
SQL*Plus: Release 10.2.0.4.0 - Production on Fri Sep 6 17:32:44 2013
Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production
With the Partitioning, Real Application Clusters, OLAP, Data Mining
and Real Application Testing options
应用中 我遇到如果px 数大于parallel_max_servers 后,会跨实例进行同时查询,这样对于大表全表扫描肯定会引起性能影响,然后查这资料说,设置alter session set parallel_instance_group='RACDB1'; 此会话就只在本节点运行,但是我测试发现, 并行却开不起了,即使我设置不超过本节点还是不行,有什么更好的办法么,还我理解没对(RACDB1为我运行的节点实例名)
SQL> alter session set parallel_instance_group='';
Session altered.
SQL> select /*+parallel(t 10)*/ count(1) from t;
COUNT(1)
----------
11900802
SQL> alter session set parallel_instance_group='RACDB1';
Session altered.
SQL> select /*+parallel(t 5)*/ count(1) from t;
COUNT(1)
----------
11900802
SQL> select /*+parallel(t 5)*/ count(1) from t;
COUNT(1)
----------
11900802
SQL> show parameter parallel
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
fast_start_parallel_rollback string LOW
parallel_adaptive_multi_user boolean TRUE
parallel_automatic_tuning boolean FALSE
parallel_execution_message_size integer 2148
parallel_instance_group string RACDB1
parallel_max_servers integer 5
parallel_min_percent integer 0
parallel_min_servers integer 0
parallel_server boolean TRUE
parallel_server_instances integer 2
parallel_threads_per_cpu integer 2
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
recovery_parallelism integer 0 |
|