oracle hint
1,hint类型
1,适用于单表,如:index和use_nl
2,用于多表,如:leading,use_nl(table1 table2)其实是use_nl(table1)和use_nl(table2)的缩写
3,用于查询块:如:star_transformation和unnest
4,整个语句,如:all_rows
2,hint大分类
1,提升性能和存取的hint
first_rows和all_rows
最好用dbms_stats分析表收集最新的统计信息
2,用于访问路径的hint
full
如在select 语句的from子句使用sample,oracle会忽略访问路径的hint
cluster
hash
index
no_index
index_asc
index_desc
index_ffs
no_index_ffs
index_ss
index_ss_asc
index_ss_desc
no_index_ss
3,查询转换的hint
no_query_transformation
use_concat
no_expand
rewrite
no_rewrite
merge
no_merge
star_transformation
no_star_transformation
fact
no_fact
unnest
un_unset
4,连接次序的hint
ordered
leading
5,连接操作的hint
use_nl
use_hash
use_merge
no_use_hash
no_use_merge
no_use_nl
use_nl_with_index
6,并行执行的hint
parallel
pq_distribute
parallel_index
no_parallel_index
7,其它hint
append
noappend
cache
nocache
push_pred
no_push_pred
push_subq
no_push_subq
qb_name
cursor_sharing_exact
driving_set
dynamic_sampling
model_min_analysis
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/9240380/viewspace-751028/
,如需转载,请注明出处,否则将追究法律责任。