ITPub博客

首页 > Linux操作系统 > Linux操作系统 > oracle10g_hint类型及分类

oracle10g_hint类型及分类

原创 Linux操作系统 作者:wisdomone1 时间:2012-12-13 13:12:34 0 删除 编辑
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/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
提供针对oracle初学者及进阶的数据库培训,欢迎大家咨询: 微信: wisdomone 微信公众号: lovedb 工作经历: 中国普天 北京科蓝 北京云和恩墨 北京神州新桥

注册时间:2008-04-04

  • 博文量
    2189
  • 访问量
    12685430