- 最后登录
- 2014-4-17
- 在线时间
- 12 小时
- 威望
- 0
- 金钱
- 67
- 注册时间
- 2012-12-6
- 阅读权限
- 10
- 帖子
- 17
- 精华
- 0
- 积分
- 0
- UID
- 781
|
7#
发表于 2013-3-15 11:14:53
本帖最后由 nan_dream 于 2013-3-15 11:16 编辑
退出重新登录还是不行,而且还发现一个很奇怪的现象:
SQL> show parameter instance_gr
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
instance_groups string prod,prod1
parallel_instance_group string
SQL> select name,value,isdefault from v$ses_optimizer_env where sid=65 order by 3,1;
NAME VALUE ISD
---------------------------------------- ------------------------- ---
_smm_max_size 50790 KB NO
_smm_min_size 253 KB NO
_smm_px_max_size 126976 KB NO
parallel_max_degree 4 NO
active_instance_count 2 YES
bitmap_merge_area_size 1048576 YES
cell_offload_compaction ADAPTIVE YES
cell_offload_plan_display AUTO YES
cell_offload_processing true YES
cpu_count 1 YES
cursor_sharing exact YES
NAME VALUE ISD
---------------------------------------- ------------------------- ---
db_file_multiblock_read_count 54 YES
dst_upgrade_insert_conv true YES
hash_area_size 131072 YES
is_recur_flags 0 YES
optimizer_capture_sql_plan_baselines false YES
optimizer_dynamic_sampling 2 YES
optimizer_features_enable 11.2.0.1 YES
optimizer_index_caching 0 YES
optimizer_index_cost_adj 100 YES
optimizer_mode all_rows YES
optimizer_secure_view_merging true YES
NAME VALUE ISD
---------------------------------------- ------------------------- ---
optimizer_use_invisible_indexes false YES
optimizer_use_pending_statistics false YES
optimizer_use_sql_plan_baselines true YES
parallel_autodop 0 YES
parallel_ddl_mode enabled YES
parallel_ddldml 0 YES
parallel_degree 0 YES
parallel_degree_limit 65535 YES
parallel_degree_policy manual YES
parallel_dml_mode disabled YES
parallel_execution_enabled true YES
NAME VALUE ISD
---------------------------------------- ------------------------- ---
parallel_force_local false YES
parallel_min_time_threshold 10 YES
parallel_query_default_dop 0 YES
parallel_query_mode enabled YES
parallel_threads_per_cpu 2 YES
pga_aggregate_target 245760 KB YES
query_rewrite_enabled true YES
query_rewrite_integrity enforced YES
result_cache_mode MANUAL YES
skip_unusable_indexes true YES
sort_area_retained_size 0 YES
NAME VALUE ISD
---------------------------------------- ------------------------- ---
sort_area_size 65536 YES
star_transformation_enabled false YES
statistics_level typical YES
total_cpu_count 2 YES
transaction_isolation_level read_commited YES
workarea_size_policy auto YES
50 rows selected.
SQL> alter session set parallel_instance_group='prod1';
Session altered.
SQL> select name,value,isdefault from v$ses_optimizer_env where sid=65 order by 3,1;
NAME VALUE ISD
---------------------------------------- ------------------------- ---
_smm_max_size 50790 KB NO
_smm_min_size 253 KB NO
_smm_px_max_size 126976 KB NO
parallel_execution_enabled false NO
parallel_max_degree 4 NO
active_instance_count 0 YES
bitmap_merge_area_size 1048576 YES
cell_offload_compaction ADAPTIVE YES
cell_offload_plan_display AUTO YES
cell_offload_processing true YES
cpu_count 1 YES
NAME VALUE ISD
---------------------------------------- ------------------------- ---
cursor_sharing exact YES
db_file_multiblock_read_count 54 YES
dst_upgrade_insert_conv true YES
hash_area_size 131072 YES
is_recur_flags 0 YES
optimizer_capture_sql_plan_baselines false YES
optimizer_dynamic_sampling 2 YES
optimizer_features_enable 11.2.0.1 YES
optimizer_index_caching 0 YES
optimizer_index_cost_adj 100 YES
optimizer_mode all_rows YES
NAME VALUE ISD
---------------------------------------- ------------------------- ---
optimizer_secure_view_merging true YES
optimizer_use_invisible_indexes false YES
optimizer_use_pending_statistics false YES
optimizer_use_sql_plan_baselines true YES
parallel_autodop 0 YES
parallel_ddl_mode enabled YES
parallel_ddldml 0 YES
parallel_degree 0 YES
parallel_degree_limit 65535 YES
parallel_degree_policy manual YES
parallel_dml_mode disabled YES
NAME VALUE ISD
---------------------------------------- ------------------------- ---
parallel_force_local false YES
parallel_min_time_threshold 10 YES
parallel_query_default_dop 0 YES
parallel_query_mode enabled YES
parallel_threads_per_cpu 2 YES
pga_aggregate_target 245760 KB YES
query_rewrite_enabled true YES
query_rewrite_integrity enforced YES
result_cache_mode MANUAL YES
skip_unusable_indexes true YES
sort_area_retained_size 0 YES
NAME VALUE ISD
---------------------------------------- ------------------------- ---
sort_area_size 65536 YES
star_transformation_enabled false YES
statistics_level typical YES
total_cpu_count 2 YES
transaction_isolation_level read_commited YES
workarea_size_policy auto YES
50 rows selected.
当设置了alter session set parallel_instance_group='prod1';之后,parallel_execution_enabled和 active_instance_count这两个参数改变了。 |
|