20160318瞭解oracle版本升級的一些引數變化
[20160318]瞭解oracle版本升級的一些引數變化.txt
--曾經寫過一篇瞭解oracle版本升級後一些引數變化,可以透過如下連線瞭解:
http://blog.itpub.net/267265/viewspace-1655594/
--實際上還有一個簡單的方法就是提示opt_param('optimizer_features_enable' '11.2.0.1') ,然後順便執行一條sql語句,檢視執行計
--劃就可以那些引數發生了變化.透過例子說明:
1.環境:
SCOTT@book> @ &r/ver1
PORT_STRING VERSION BANNER
------------------------------ -------------- --------------------------------------------------------------------------------
x86_64/Linux 2.4.xx 11.2.0.4.0 Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
SCOTT@book> show parameter OPTIMIZER_FEATURES_ENABLE
NAME TYPE VALUE
------------------------------------ ------- ---------
optimizer_features_enable string 11.2.0.4
2.簡單執行某個語句:
SCOTT@book> select /*+ opt_param('optimizer_features_enable' '10.2.0.4') */ * from dept where deptno=10;
DEPTNO DNAME LOC
---------- -------------- -------------
10 ACCOUNTING NEW YORK
SCOTT@book> @ &r/dpc '' outline
PLAN_TABLE_OUTPUT
-------------------------------------
SQL_ID by919k30x9mas, child number 0
-------------------------------------
select /*+ opt_param('optimizer_features_enable' '10.2.0.4') */ * from
dept where deptno=10
Plan hash value: 2852011669
----------------------------------------------------------------------------------------
| Id | Operation | Name | E-Rows |E-Bytes| Cost (%CPU)| E-Time |
----------------------------------------------------------------------------------------
| 0 | SELECT STATEMENT | | | | 1 (100)| |
| 1 | TABLE ACCESS BY INDEX ROWID| DEPT | 1 | 20 | 1 (0)| 00:00:01 |
|* 2 | INDEX UNIQUE SCAN | PK_DEPT | 1 | | 0 (0)| |
----------------------------------------------------------------------------------------
Query Block Name / Object Alias (identified by operation id):
-------------------------------------------------------------
1 - SEL$1 / DEPT@SEL$1
2 - SEL$1 / DEPT@SEL$1
Outline Data
-------------
/*+
BEGIN_OUTLINE_DATA
IGNORE_OPTIM_EMBEDDED_HINTS
OPTIMIZER_FEATURES_ENABLE('10.2.0.4')
DB_VERSION('11.2.0.4')
OPT_PARAM('_optimizer_undo_cost_change' '11.2.0.4')
OPT_PARAM('_optimizer_null_aware_antijoin' 'true')
OPT_PARAM('_optimizer_extend_jppd_view_types' 'true')
OPT_PARAM('_replace_virtual_columns' 'true')
OPT_PARAM('_first_k_rows_dynamic_proration' 'true')
OPT_PARAM('_bloom_pruning_enabled' 'true')
OPT_PARAM('_optimizer_multi_level_push_pred' 'true')
OPT_PARAM('_optimizer_group_by_placement' 'true')
OPT_PARAM('_optimizer_extended_cursor_sharing_rel' 'simple')
OPT_PARAM('_optimizer_adaptive_cursor_sharing' 'true')
OPT_PARAM('_optimizer_improve_selectivity' 'true')
OPT_PARAM('_optimizer_enable_density_improvements' 'true')
OPT_PARAM('_optimizer_native_full_outer_join' 'force')
OPT_PARAM('_optimizer_enable_extended_stats' 'true')
OPT_PARAM('_nlj_batching_enabled' 1)
OPT_PARAM('_optimizer_extended_stats_usage_control' 192)
OPT_PARAM('_bloom_folding_enabled' 'true')
OPT_PARAM('_optimizer_coalesce_subqueries' 'true')
OPT_PARAM('_optimizer_fast_pred_transitivity' 'true')
OPT_PARAM('_optimizer_fast_access_pred_analysis' 'true')
OPT_PARAM('_optimizer_unnest_disjunctive_subq' 'true')
OPT_PARAM('_optimizer_unnest_corr_set_subq' 'true')
OPT_PARAM('_optimizer_distinct_agg_transform' 'true')
OPT_PARAM('_aggregation_optimization_settings' 0)
OPT_PARAM('_optimizer_connect_by_elim_dups' 'true')
OPT_PARAM('_optimizer_eliminate_filtering_join' 'true')
OPT_PARAM('_connect_by_use_union_all' 'true')
OPT_PARAM('_optimizer_join_factorization' 'true')
OPT_PARAM('_optimizer_use_cbqt_star_transformation' 'true')
OPT_PARAM('_optimizer_table_expansion' 'true')
OPT_PARAM('_and_pruning_enabled' 'true')
OPT_PARAM('_optimizer_distinct_placement' 'true')
OPT_PARAM('_optimizer_use_feedback' 'true')
OPT_PARAM('_optimizer_try_st_before_jppd' 'true')
OPT_PARAM('_optimizer_interleave_jppd' 'true')
OPT_PARAM('_px_partition_scan_enabled' 'true')
OPT_PARAM('_optimizer_false_filter_pred_pullup' 'true')
OPT_PARAM('_optimizer_enable_table_lookup_by_nl' 'true')
OPT_PARAM('_optimizer_full_outer_join_to_outer' 'true')
ALL_ROWS
OUTLINE_LEAF(@"SEL$1")
INDEX_RS_ASC(@"SEL$1" "DEPT"@"SEL$1" ("DEPT"."DEPTNO"))
END_OUTLINE_DATA
*/
Predicate Information (identified by operation id):
---------------------------------------------------
2 - access("DEPTNO"=10)
Note
-----
- Warning: basic plan statistics not available. These are only collected when:
* hint 'gather_plan_statistics' is used for the statement or
* parameter 'statistics_level' is set to 'ALL', at session or system level
--如果 /*+ opt_param('optimizer_features_enable' '11.2.0.1') */ ,明顯少許多.
/*+
BEGIN_OUTLINE_DATA
IGNORE_OPTIM_EMBEDDED_HINTS
OPTIMIZER_FEATURES_ENABLE('11.2.0.1')
DB_VERSION('11.2.0.4')
OPT_PARAM('_optimizer_undo_cost_change' '11.2.0.4')
OPT_PARAM('_optimizer_extended_stats_usage_control' 192)
OPT_PARAM('_px_partition_scan_enabled' 'true')
OPT_PARAM('_optimizer_false_filter_pred_pullup' 'true')
OPT_PARAM('_optimizer_enable_table_lookup_by_nl' 'true')
OPT_PARAM('_optimizer_full_outer_join_to_outer' 'true')
ALL_ROWS
OUTLINE_LEAF(@"SEL$1")
INDEX_RS_ASC(@"SEL$1" "DEPT"@"SEL$1" ("DEPT"."DEPTNO"))
END_OUTLINE_DATA
*/
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/267265/viewspace-2059388/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle升級中的引數補充Oracle
- Oracle可變引數的優化Oracle優化
- oracle 升級12c引數樣例Oracle
- Oracle優化相關的一些引數Oracle優化
- oracle版本升級路線圖Oracle
- 【UP_ORACLE】使用DBUA一鍵化靜默升級到19C以及DBUA引數詳解Oracle
- 【Oracle版本升級圖--小麥苗】Oracle
- 由於版本升級引發的SQL語句故障SQL
- Oracle 各版本引數/隱藏引數 介紹Oracle
- 12. Oracle版本、補丁及升級——12.3. 升級Oracle
- 瞭解GoldenGate Replicat的HANDLECOLLISIONS引數Go
- 升級xCode9 導航欄變化及一些小技巧XCode
- oracle ASM引數ASM_POWER_LIMIT以及其它一些引數詳解OracleASMMIT
- 由於版本升級引發的SQL語句故障(續)SQL
- 一場版本升級引發的效能血案的追凶過程
- node 版本升級
- gcc版本升級GC
- NiFi版本升級Nifi
- Redis的跨版本升級Redis
- 如何升級fedora的版本
- 升級mac的PHP版本MacPHP
- 深入瞭解jquery中的ajax方法引數jQuery
- 10g升級至11g需要考慮的引數優化優化
- 詳細瞭解 synchronized 鎖升級過程synchronized
- 禁止wordpress版本自動升級的解決方案
- Win10怎麼升級版本 Win10升級版本的方法Win10
- oracle版本升級:從11.2.0.1到11.2.0.3Oracle
- oracle小版本升級patch過程和分析Oracle
- 使用version引數解決Oracle資料泵版本差異Oracle
- 使用 JUnit 5.7 進行引數化測試:深入瞭解 @EnumSource
- ORACLE初始化引數的配置Oracle
- oracle初始化引數Oracle
- Oracle引數檔案 各引數解釋Oracle
- python版本升級Python
- Oracle 10g NLS 環境變數設定/和以前版本有變化Oracle 10g變數
- 使用version引數解決Oracle資料泵版本差異(引用)Oracle
- Oracle一些引數的理解 cursor_sharingOracle
- 詳解Oracle建立表的引數Oracle