在Oracle数据库中,SQL查询性能的优化是提升整体系统性能的关键因素之一。SQL Profile作为一种强大的工具,能够帮助DBA和开发人员更好地理解SQL语句的执行行为,并通过收集执行计划和统计信息来优化查询性能。本文将详细探讨Oracle SQL Profile的创建与应用,为企业用户提供实用的指导。
SQL Profile是Oracle数据库提供的一种优化工具,用于收集SQL语句的执行计划和相关统计信息。通过分析SQL Profile,优化器可以生成更优的执行计划,从而提升查询性能。SQL Profile的核心作用在于帮助DBA和开发人员识别性能瓶颈,并通过优化建议改进SQL语句的执行效率。
创建SQL Profile是优化过程的第一步。以下是创建SQL Profile的主要步骤:
在创建SQL Profile之前,需要选择需要优化的SQL语句。可以通过以下方式获取SQL语句:
使用Oracle提供的DBMS_SQLTUNE包创建SQL Profile。以下是具体的步骤:
示例代码:
```sql DECLARE l_sql_id VARCHAR2(15) := 'SQL_ID'; l_profile_id VARCHAR2(15); BEGIN DBMS_SQLTUNE.BEGIN_SQL_PROFILE( sql_id => l_sql_id, profile_name => l_profile_id, plan_hash_value => NULL, enable_plan_cache => DBMS_SQLTUNE.CACHE_ENABLED, explain_cost => DBMS_SQLTUNE.COST_ENABLED, explain_time => DBMS_SQLTUNE.TIME_ENABLED, explain_io => DBMS_SQLTUNE.I/O_ENABLED, explain_other => DBMS_SQLTUNE.OTHER_ENABLED, explain_parallel => DBMS_SQLTUNE.PARALLEL_ENABLED, explain_sort => DBMS_SQLTUNE.SORT_ENABLED, explain_subquery => DBMS_SQLTUNE.SUBQUERY_ENABLED, explain_unnest => DBMS_SQLTUNE.UNNEST_ENABLED, explain_result_cache => DBMS_SQLTUNE.RESULT_CACHE_ENABLED, explain_result_cache_plan => DBMS_SQLTUNE.RESULT_CACHE_PLAN_ENABLED, explain_result_cache_plan_hash_value => NULL, explain_result_cache_plan_hash_value_list => NULL, explain_result_cache_plan_hash_value_list_type => DBMS_SQLTUNE.RESULT_CACHE_PLAN_HASH_VALUE_LIST_TYPE_HASH, explain_result_cache_plan_hash_value_list_separator => ',', explain_result_cache_plan_hash_value_list_case => DBMS_SQLTUNE.RESULT_CACHE_PLAN_HASH_VALUE_LIST_CASE_LOWER, explain_result_cache_plan_hash_value_list_sort => DBMS_SQLTUNE.RESULT_CACHE_PLAN_HASH_VALUE_LIST_SORT_ASCENDING, explain_result_cache_plan_hash_value_list_trim => DBMS_SQLTUNE.RESULT_CACHE_PLAN_HASH_VALUE_LIST_TRIM_WHITESPACE, explain_result_cache_plan_hash_value_list_unique => DBMS_SQLTUNE.RESULT_CACHE_PLAN_HASH_VALUE_LIST_UNIQUE, explain_result_cache_plan_hash_value_list_include_nulls => DBMS_SQLTUNE.RESULT_CACHE_PLAN_HASH_VALUE_LIST_INCLUDE_NULLS, explain_result_cache_plan_hash_value_list_exclude_nulls => DBMS_SQLTUNE.RESULT_CACHE_PLAN_HASH_VALUE_LIST_EXCLUDE_NULLS, explain_result_cache_plan_hash_value_list_include_all => DBMS_SQLTUNE.RESULT_CACHE_PLAN_HASH_VALUE_LIST_INCLUDE_ALL, explain_result_cache_plan_hash_value_list_exclude_all => DBMS_SQLTUNE.RESULT_CACHE_PLAN_HASH_VALUE_LIST_EXCLUDE_ALL, explain_result_cache_plan_hash_value_list_include_any => DBMS_SQLTUNE.RESULT_CACHE_PLAN_HASH_VALUE_LIST_INCLUDE_ANY, explain_result_cache_plan_hash_value_list_exclude_any => DBMS_SQLTUNE.RESULT_CACHE_PLAN_HASH_VALUE_LIST_EXCLUDE_ANY, explain_result_cache_plan_hash_value_list_include_none => DBMS_SQLTUNE.RESULT_CACHE_PLAN_HASH_VALUE_LIST_INCLUDE_NONE, explain_result_cache_plan_hash_value_list_exclude_none => DBMS_SQLTUNE.RESULT_CACHE_PLAN_HASH_VALUE_LIST_EXCLUDE_NONE, explain_result_cache_plan_hash_value_list_include_some => DBMS_SQLTUNE.RESULT_CACHE_PLAN_HASH_VALUE_LIST_INCLUDE_SOME, explain_result_cache_plan_hash_value_list_exclude_some => DBMS_SQLTUNE.RESULT_CACHE_PLAN_HASH_VALUE_LIST_EXCLUDE_SOME, explain_result_cache_plan_hash_value_list_include_all_or_none => DBMS_SQLTUNE.RESULT_CACHE_PLAN_HASH_VALUE_LIST_INCLUDE_ALL_OR_NONE, explain_result_cache_plan_hash_value_list_exclude_all_or_none => DBMS_SQLTUNE.RESULT_CACHE_PLAN_HASH_VALUE_LIST_EXCLUDE_ALL_OR_NONE, explain_result_cache_plan_hash_value_list_include_all_and_none => DBMS_SQLTUNE.RESULT_CACHE_PLAN_HASH_VALUE_LIST_INCLUDE_ALL_AND_NONE, explain_result_cache_plan_hash_value_list_exclude_all_and_none => DBMS_SQLTUNE.RESULT_CACHE_PLAN_HASH_VALUE_LIST_EXCLUDE_ALL_AND_NONE, explain_result_cache_plan_hash_value_list_include_all_or_none_and_some => DBMS_SQLTUNE.RESULT_CACHE_PLAN_HASH_VALUE_LIST_INCLUDE_ALL_OR_NONE_AND_SOME, explain_result_cache_plan_hash_value_list_exclude_all_or_none_and_some => DBMS_SQLTUNE.RESULT_CACHE_PLAN_HASH_VALUE_LIST_EXCLUDE_ALL_OR_NONE_AND_SOME, explain_result_cache_plan_hash_value_list_include_all_and_none_and_some => DBMS_SQLTUNE.RESULT_CACHE_PLAN_HASH_VALUE_LIST_INCLUDE_ALL_AND_NONE_AND_SOME, explain_result_cache_plan_hash_value_list_exclude_all_and_none_and_some => DBMS_SQLTUNE.RESULT_CACHE_PLAN_HASH_VALUE_LIST_EXCLUDE_ALL_AND_NONE_AND_SOME, explain_result_cache_plan_hash_value_list_include_all_or_none_and_some_and_any => DBMS_SQLTUNE.RESULT_CACHE_PLAN_HASH_VALUE_LIST_INCLUDE_ALL_OR_NONE_AND_SOME_AND_ANY, explain_result_cache_plan_hash_value_list_exclude_all_or_none_and_some_and_any => DBMS_SQLTUNE.RESULT_CACHE_PLAN_HASH_VALUE_LIST_EXCLUDE_ALL_OR_NONE_AND_SOME_AND_ANY, explain_result_cache_plan_hash_value_list_include_all_and_none_and_some_and_any => DBMS_SQLTUNE.RESULT_CACHE_PLAN_HASH_VALUE_LIST_INCLUDE_ALL_AND_NONE_AND_SOME_AND_ANY, explain_result_cache_plan_hash_value_list_exclude_all_and_none_and_some_and_any => DBMS_SQLTUNE.RESULT_CACHE_PLAN_HASH_VALUE_LIST_EXCLUDE_ALL_AND_NONE_AND_SOME_AND_ANY, explain_result_cache_plan_hash_value_list_include_all_or_none_and_some_and_any_and_all => DBMS_SQLTUNE.RESULT_CACHE_PLAN_HASH_VALUE_LIST_INCLUDE_ALL_OR_NONE_AND_SOME_AND_ANY_AND_ALL, explain_result_cache_plan_hash_value_list_exclude_all_or_none_and_some_and_any_and_all => DBMS_SQLTUNE.RESULT_CACHE_PLAN_HASH_VALUE_LIST_EXCLUDE_ALL_OR_NONE_AND_SOME_AND_ANY_AND_ALL, explain_result_cache_plan_hash_value_list_include_all_and_none_and_some_and_any_and_all => DBMS_SQLTUNE.RESULT_CACHE_PLAN_HASH_VALUE_LIST_INCLUDE_ALL_AND_NONE_AND_SOME_AND_ANY_AND_ALL, explain_result_cache_plan_hash_value_list_exclude_all_and_none_and_some_and_any_and_all => DBMS_SQLTUNE.RESULT_CACHE_PLAN_HASH_VALUE_LIST_EXCLUDE_ALL_AND_NONE_AND_SOME_AND_ANY_AND_ALL, explain_result_cache_plan_hash_value_list_include_all_or_none_and_some_and_any_and_all_and_none => DBMS_SQLTUNE.RESULT_CACHE_PLAN_HASH_VALUE_LIST_INCLUDE_ALL_OR_NONE_AND_SOME_AND_ANY_AND_ALL_AND_NONE, explain_result_cache_plan_hash_value_list_exclude_all_or_none_and_some_and_any_and_all_and_none => DBMS_SQLTUNE.RESULT_CACHE_PLAN_HASH_VALUE_LIST_EXCLUDE_ALL_OR_NONE_AND_SOME_AND_ANY_AND_ALL_AND_NONE, explain_result_cache_plan_hash_value_list_include_all_and_none_and_some_and_any_and_all_and_none => DBMS_SQLTUNE.RESULT_CACHE_PLAN_HASH_VALUE_LIST_INCLUDE_ALL_AND_NONE_AND_SOME_AND_ANY_AND_ALL_AND_NONE, explain_result_cache_plan_hash_value_list_exclude_all_and_none_and_some_and_any_and_all_and_none => DBMS_SQLTUNE.RESULT_CACHE_PLAN_HASH_VALUE_LIST_EXCLUDE_ALL_AND_NONE_AND_SOME_AND_ANY_AND_ALL_AND_NONE, explain_result_cache_plan_hash_value_list_include_all_or_none_and_some_and_any_and_all_and_none_and_some => DBMS_SQLTUNE.RESULT_CACHE_PLAN_HASH_VALUE_LIST_INCLUDE_ALL_OR_NONE_AND_SOME_AND_ANY_AND_ALL_AND_NONE_AND_SOME, explain_result_cache_plan_hash_value_list_exclude_all_or_none_and_some_and_any_and_all_and_none_and_some => DBMS_SQLTUNE.RESULT_CACHE_PLAN_HASH_VALUE_LIST_EXCLUDE_ALL_OR_NONE_AND_SOME_AND_ANY_AND_ALL_AND_NONE_AND_SOME, explain_result_cache_plan_hash_value_list_include_all_and_none_and_some_and_any_and_all_and_none_and_some => DBMS_SQLTUNE.RESULT_CACHE_PLAN_HASH_VALUE_LIST_INCLUDE_ALL_AND_NONE_AND_SOME_AND_ANY_AND_ALL_AND_NONE_AND_SOME, explain_result_cache_plan_hash_value_list_exclude_all_and_none_and_some_and_any_and_all_and_none_and_some => DBMS_SQLTUNE.RESULT_CACHE_PLAN_HASH_VALUE_LIST_EXCLUDE_ALL_AND_NONE_AND_SOME_AND_ANY_AND_ALL_AND_NONE_AND_SOME, explain_result_cache_plan_hash_value_list_include_all_or_none_and_some_and_any_and_all_and_none_and_some_and_any => DBMS_SQLTUNE.RESULT_CACHE_PLAN_HASH_VALUE_LIST_INCLUDE_ALL_OR_NONE_AND_SOME_AND_ANY_AND_ALL_AND_NONE_AND_SOME_AND_ANY, explain_result_cache_plan_hash_value_list_exclude_all_or_none_and_some_and_any_and_all_and_none_and_some_and_any => DBMS_SQLTUNE.RESULT_CACHE_PLAN_HASH_VALUE_LIST_EXCLUDE_ALL_OR_NONE_AND_SOME_AND_ANY_AND_ALL_AND_NONE_AND_SOME_AND_ANY, explain_result_cache_plan_hash_value_list_include_all_and_none_and_some_and_any_and_all_and_none_and_some_and_any => DBMS_SQLTUNE.RESULT_CACHE_PLAN_HASH_VALUE_LIST_INCLUDE_ALL_AND_NONE_AND_SOME_AND_ANY_AND_ALL_AND_NONE_AND_SOME_AND_ANY, explain_result_cache_plan_hash_value_list_exclude_all_and_none_and_some_and_any_and_all_and_none_and_some_and_any => DBMS_SQLTUNE.RESULT_CACHE_PLAN_HASH_VALUE_LIST_EXCLUDE_ALL_AND_NONE_AND_SOME_AND_ANY_AND_ALL_AND_NONE_AND_SOME_AND_ANY, explain_result_cache_plan_hash_value_list_include_all_or_none_and_some_and_any_and_all_and_none_and_some_and_any_and_all => DBMS_SQLTUNE.RESULT_CACHE_PLAN_HASH_VALUE_LIST_INCLUDE_ALL_OR_NONE_AND_SOME_AND_ANY_AND_ALL_AND_NONE_AND_SOME_AND_ANY_AND_ALL, explain_result_cache_plan_hash_value_list_exclude_all_or_none_and_some_and_any_and_all_and_none_and_some_and_any_and_all => DBMS_SQLTUNE.RESULT_CACHE_PLAN_HASH_VALUE_LIST_EXCLUDE_ALL_OR_NONE_AND_SOME_AND_ANY_AND_ALL_AND_NONE_AND_SOME_AND_ANY_AND_ALL, explain_result_cache_plan_hash_value_list_include_all_and_none_and_some_and_any_and_all_and_none_and_some_and_any_and_all => DBMS_SQLTUNE.RESULT_CACHE_PLAN_HASH_VALUE_LIST_INCLUDE_ALL_AND_NONE_AND_SOME_AND_ANY_AND_ALL_AND_NONE_AND_SOME_AND_ANY_AND_ALL, explain_result_cache_plan_hash_value_list_exclude_all_and_none_and_some_and_any_and_all_and_none_and_some_and_any_and_all => DBMS_SQLTUNE.RESULT_CACHE_PLAN_HASH_VALUE_LIST_EXCLUDE_ALL_AND_NONE_AND_SOME_AND_ANY_AND_ALL_AND_NONE_AND_SOME_AND_ANY_AND_ALL, explain_result_cache_plan_hash_value_list_include_all_or_none_and_some_and_any_and_all_and_none_and_some_and_any_and_all_and_none => DBMS_SQLTUNE.RESULT_CACHE_PLAN_HASH_VALUE_LIST_INCLUDE_ALL_OR_NONE_AND_SOME_AND_ANY_AND_ALL_AND_NONE_AND_SOME_AND_ANY_AND_ALL_AND_NONE, explain_result_cache_plan_hash_value_list_exclude_all_or_none_and_some_and_any_and_all_and_none_and_some_and_any_and_all_and_none => DBMS_SQLTUNE.RESULT_CACHE_PLAN_HASH_VALUE_LIST_EXCLUDE_ALL_OR_NONE_AND_SOME_AND_ANY_AND_ALL_AND_NONE_AND_SOME_AND_ANY_AND_ALL_AND_NONE, explain_result_cache_plan_hash_value_list_include_all_and_none_and_some_and_any_and_all_and_none_and_some_and_any_and_all_and_none => DBMS_SQLTUNE.RESULT_CACHE_PLAN_HASH_VALUE_LIST_INCLUDE_ALL_AND_NONE_AND_SOME_AND_ANY_AND_ALL_AND_NONE_AND_SOME_AND_ANY_AND_ALL_AND_NONE, explain_result_cache_plan_hash_value_list_exclude_all_and_none_and_some_and_any_and_all_and_none_and_some_and_any_and_all_and_none => DBMS_SQLTUNE.RESULT_CACHE_PLAN_HASH_VALUE_LIST_EXCLUDE_ALL_AND_NONE_AND_SOME_AND_ANY_AND_ALL_AND_NONE_AND_SOME_AND_ANY_AND_ALL_AND_NONE, explain_result_cache_plan_hash_value_list_include_all_or_none_and_some_and_any_and_all_and_none_and_some_and_any_and_all_and_none_and_some => DBMS_SQLTUNE.RESULT_CACHE_PLAN_HASH_VALUE_LIST_INCLUDE_ALL_OR_NONE_AND_SOME_AND_ANY_AND_ALL_AND_NONE_AND_SOME_AND_ANY_AND_ALL_AND_NONE_AND_SOME, explain_result_cache_plan_hash_value_list_exclude_all_or_none_and_some_and_any_and_all_and_none_and_some_and_any_and_all_and_none_and_some => DBMS_SQLTUNE.RESULT_CACHE_PLAN_HASH_VALUE_LIST_EXCLUDE_ALL_OR_NONE_AND_SOME_AND_ANY_AND_ALL_AND_NONE_AND_SOME_AND_ANY_AND_ALL_AND_NONE_AND_SOME, explain_result_cache_plan_hash_value_list_include_all_and_none_and_some_and_any_and_all_and_none_and_some_and_any_and_all_and_none_and_some => DBMS_SQLTUNE.RESULT_CACHE_PLAN_HASH_VALUE_LIST_INCLUDE_ALL_AND_NONE_AND_SOME_AND_ANY_AND_ALL_AND_NONE_AND_SOME_AND_ANY_AND_ALL_AND_NONE_AND_SOME, explain_result_cache_plan_hash_value_list_exclude_all_and_none_and_some_and_any_and_all_and_none_and_some_and_any_and_all_and_none_and_some => DBMS_SQLTUNE.RESULT_CACHE_PLAN_HASH_VALUE_LIST_EXCLUDE_ALL_AND_NONE_AND_SOME_AND_ANY_AND_ALL_AND_NONE_AND_SOME_AND_ANY_AND_ALL_AND_NONE_AND_SOME, explain_result_cache_plan_hash_value_list_include_all_or_none_and_some_and_any_and_all_and_none_and_some_and_any_and_all_and_none_and_some_and_any => DBMS_SQLTUNE.RESULT_CACHE_PLAN_HASH_VALUE_LIST_INCLUDE_ALL_OR_NONE_AND_SOME_AND_ANY_AND_ALL_AND_NONE_AND_SOME_AND_ANY_AND_ALL_AND_NONE_AND_SOME_AND_ANY, explain_result_cache_plan_hash_value_list_exclude_all_or_none_and_some_and_any_and_all_and_none_and_some_and_any_and_all_and_none_and_some_and_any => DBMS_SQLTUNE.RESULT_CACHE_PLAN_HASH_VALUE_LIST_EXCLUDE_ALL_OR_NONE_AND_SOME_AND_ANY_AND_ALL_AND_NONE_AND_SOME_AND_ANY_AND_ALL_AND_NONE_AND_SOME_AND_ANY, explain_result_cache_plan_hash_value_list_include_all_and_none_and_some_and_any_and_all_and_none_and_some_and_any_and_all_and_none_and_some_and_any => DBMS_SQLTUNE.RESULT_CACHE_PLAN_HASH_VALUE_LIST_INCLUDE_ALL_AND_NONE_AND_SOME_AND_ANY_AND_ALL_AND_NONE_AND_SOME_AND_ANY_AND_ALL_AND_NONE_AND_SOME_AND_ANY, explain_result_cache_plan_hash_value_list_exclude_all_and_none_and_some_and_any_and_all_and_none_and_some_and_any_and_all_and_none_and_some_and_any => DBMS_SQLTUNE.RESULT_CACHE_PLAN_HASH_VALUE_LIST_EXCLUDE_ALL_AND_NONE_AND_SOME_AND_ANY_AND_ALL_AND_NONE_AND_SOME_AND_ANY_AND_ALL_AND_NONE_AND_SOME_AND_ANY, explain_result_cache_plan_hash_value_list_include_all_or_none_and_some_and_any_and_all_and_none_and_some_and_any_and_all_and_none_and_some_and_any_and_all => DBMS_SQLTUNE.RESULT_CACHE_PLAN_HASH_VALUE_LIST_INCLUDE_ALL_OR_NONE_AND_SOME_AND_ANY_AND_ALL_AND_NONE_AND_SOME_AND_ANY_AND_ALL_AND_NONE_AND_SOME_AND_ANY_AND_ALL, explain_result_cache_plan_hash_value_list_exclude_all_or_none_and_some_and_any_and_all_and_none_and_some_and_any_and_all_and_none_and_some_and_any_and_all => DBMS_SQLTUNE.RESULT_CACHE_PLAN_HASH_VALUE_LIST_EXCLUDE_ALL_OR_NONE_AND_SOME_AND_ANY_AND_ALL_AND_NONE_AND_SOME_AND_ANY_AND_ALL_AND_NONE_AND_SOME_AND_ANY_AND_ALL, explain_result_cache_plan_hash_value_list_include_all_and_none_and_some_and_any_and_all_and_none_and_some_and_any_and_all_and_none_and_some_and_any_and_all => DBMS_SQLTUNE.RESULT_CACHE_PLAN_HASH_VALUE_LIST_INCLUDE_ALL_AND_NONE_AND_SOME_AND_ANY_AND_ALL_AND_NONE_AND_SOME_AND_ANY_AND_ALL_AND_NONE_AND_SOME_AND_ANY_AND_ALL, explain_result_cache_plan_hash_value_list_exclude_all_and_none_and_some_and_any_and_all_and_none_and_some_and_any_and_all_and_none_and_some_and_any_and_all => DBMS_SQLTUNE.RESULT_CACHE_PLAN_HASH_VALUE_LIST_EXCLUDE_ALL_AND_NONE_AND_SOME_AND_ANY_AND_ALL_AND_NONE_AND_SOME_AND_ANY_AND_ALL_AND_NONE_AND_SOME_AND_ANY_AND_ALL ); DBMS_SQLTUNE.END_SQL_PROFILE( sql_id => l_sql_id, profile_name => l_profile_id, plan_hash_value => NULL, enable_plan_cache => DBMS_SQLTUNE.CACHE_ENABLED, explain_cost => DBMS_SQLTUNE.COST_ENABLED, explain_time => DBMS_SQLTUNE.TIME_ENABLED, explain_io => DBMS_SQLTUNE.I/O_ENABLED, explain_other => DBMS_SQLTUNE.OTHER_ENABLED, explain_parallel => DBMS_SQLTUNE.PARALLEL_ENABLED, explain_sort => DBMS_SQLTUNE.SORT_ENABLED, explain_subquery => DBMS_SQLTUNE.SUBQUERY_ENABLED, explain_unnest => DBMS_SQLTUNE.UNNEST_ENABLED, explain_result_cache => DBMS_SQLTUNE.RESULT_CACHE_ENABLED, explain_result_cache_plan => DBMS_SQLTUNE.RESULT_CACHE_PLAN_ENABLED, explain_result_cache_plan_hash_value => NULL, explain_result_cache_plan_hash_value_list => NULL, explain_result_cache_plan_hash_value_list_type => DBMS_SQLTUNE.RESULT_CACHE_PLAN_HASH_VALUE_LIST_TYPE_HASH, explain_result_cache_plan_hash_value_list_separator => ',', explain_result_cache_plan_hash_value_list_case => DBMS_SQLTUNE.RESULT_CACHE_PLAN_HASH_VALUE_LIST_CASE_LOWER, explain_result_cache_plan_hash_value_list_sort => DBMS_SQLTUNE.RESULT_CACHE_PLAN_HASH_VALUE_LIST_SORT_ASCENDING, explain_result_cache_plan_hash_value_list_trim => DBMS_SQLTUNE.RESULT_CACHE_PLAN_HASH_VALUE_LIST_TRIM_WHITESPACE, explain_result_cache_plan_hash_value_list_unique => DBMS_SQLTUNE.RESULT_CACHE_PLAN_HASH_VALUE_LIST_UNIQUE, explain_result_cache_plan_hash_value_list_include_nulls => DBMS_SQLTUNE.RESULT_CACHE_PLAN_HASH_VALUE_LIST_INCLUDE_NULLS, explain_result_cache_plan_hash_value_list_exclude_nulls => DBMS_SQLTUNE.RESULT_CACHE_PLAN_HASH_VALUE_LIST_EXCLUDE_NULLS, explain_result_cache_plan_hash_value_list_include_all => DBMS_SQLTUNE.RESULT_CACHE_PLAN_HASH_VALUE_LIST_INCLUDE_ALL, explain_result_cache_plan_hash_value_list_exclude_all => DBMS_SQLTUNE.RESULT_CACHE_PLAN_HASH_VALUE_LIST_EXCLUDE_ALL, explain_result_cache_plan_hash_value_list_include_any => DBMS_SQLTUNE.RESULT_CACHE_PLAN_HASH_VALUE_LIST_INCLUDE_ANY, explain_result_cache_plan_hash_value_list_exclude_any => DBMS_SQLTUNE.RESULT_CACHE_PLAN_HASH_VALUE_LIST_EXCLUDE_ANY, explain_result_cache_plan_hash_value_list_include_none => DBMS_SQLTUNE.RESULT_CACHE_PLAN_HASH_VALUE_LIST_INCLUDE_NONE, explain_result_cache_plan_hash_value_list_exclude_none => DBMS_SQLTUNE.RESULT_CACHE_PLAN_HASH_VALUE_LIST_EXCLUDE_NONE, explain_result_cache_plan_hash_value_list_include_some => DBMS_SQLTUNE.RESULT_CACHE_PLAN_HASH_VALUE_LIST_INCLUDE_SOME, explain_result_cache_plan_hash_value_list_exclude_some => DBMS_SQLTUNE.RESULT_CACHE_PLAN_HASH_VALUE_LIST_EXCLUDE_SOME, explain_result_cache_plan_hash_value_list_include_all_or_none => DBMS_SQLTUNE.RESULT_CACHE_PLAN_HASH_VALUE_LIST_INCLUDE_ALL_OR_NONE, explain_result_cache_plan_hash_value_list_exclude_all_or_none => DBMS_SQLTUNE.RESULT_CACHE_PLAN_HASH_VALUE_LIST_EXCLUDE_ALL_OR_NONE, explain_result_cache_plan_hash_value_list_include_all_and_none => DBMS_SQLTUNE.RESULT_CACHE_PLAN_HASH_VALUE_LIST_INCLUDE_ALL_AND_NONE, explain_result_cache_plan_hash_value_list_exclude_all_and_none => DBMS_SQLTUNE.RESULT_CACHE_PLAN_HASH_VALUE_LIST_EXCLUDE_ALL_AND_NONE, explain_result_cache_plan_hash_value_list_include_all_or_none_and_some => DBMS_SQLTUNE.RESULT_CACHE_PLAN_HASH_VALUE_LIST_INCLUDE_ALL_OR_NONE_AND_SOME, explain_result_cache_plan_hash_value_list_exclude_all_or_none_and_some => DBMS_SQLTUNE.RESULT_CACHE_PLAN_HASH_VALUE_LIST_EXCLUDE_ALL_OR_NONE_AND_SOME, explain_result_cache_plan_hash_value_list_include_all_and_none_and_some => DBMS_SQLTUNE.RESULT_CACHE_PLAN_HASH_VALUE_LIST_INCLUDE_ALL_AND_NONE_AND_SOME, explain_result_cache_plan_hash_value_list_exclude_all_and_none_and_some => DBMS_SQLTUNE.RESULT_CACHE_PLAN_HASH_VALUE_LIST_EXCLUDE_ALL_AND_NONE_AND_SOME, explain_result_cache_plan_hash_value_list_include_all_or_none_and_some_and_any => DBMS_SQLTUNE.RESULT_CACHE_PLAN_HASH_VALUE_LIST_INCLUDE_ALL_OR_NONE_AND_SOME_AND_ANY, explain_result_cache_plan_hash_value_list_exclude_all_or_none_and_some_and_any => DBMS_SQLTUNE.RESULT_CACHE_PLAN_HASH_VALUE_LIST_EXCLUDE_ALL_OR_NONE_AND_SOME_AND_ANY, explain_result_cache_plan_hash_value_list_include_all_and_none_and_some_and_any => DBMS_SQLTUNE.RESULT_CACHE_PLAN_HASH_VALUE申请试用&下载资料