码迷,mamicode.com
首页 > 数据库 > 详细

oracle hint 知多少

时间:2020-06-04 01:08:53      阅读:74      评论:0      收藏:0      [点我收藏+]

标签:access   v$sql   line   weight   erro   invisible   ignore   hint   exe   

oracle hint 可以用v$sql_hint 来查询,比如有多少个INDEX相关的hint

>set pagesize 500>set linesize 300>select NAME,CLASS,VERSION,PROPERTY from v$sql_hint where name like %INDEX%;

NAME                                 CLASS                                  VERSION              PROPERTY
---------------------------------------------------------------- ---------------------------------------------------------------- ------------------------- ----------
INDEX_STATS                             TABLE_STATS                              10.1.0.3               272
DOMAIN_INDEX_SORT                         DOMAIN_INDEX_SORT                          8.1.5                  0
DOMAIN_INDEX_NO_SORT                         DOMAIN_INDEX_SORT                          8.1.5                  0
LOCAL_INDEXES                             LOCAL_INDEXES                              9.0.0                  0
USE_NL_WITH_INDEX                         USE_NL_WITH_INDEX                          10.1.0.3               304
INDEX_ASC                             ACCESS                               8.1.0                304
INDEX                                 ACCESS                               8.0.0                304
INDEX_DESC                             ACCESS                               8.1.0                304
NO_INDEX                             NO_INDEX                              8.1.5                304
INDEX_FFS                             ACCESS                               8.1.0                304
NO_INDEX_FFS                             NO_INDEX_FFS                              10.1.0.3               304
INDEX_SS                             ACCESS                               9.0.0                304
INDEX_SS_ASC                             ACCESS                               9.0.0                304
INDEX_SS_DESC                             ACCESS                               9.0.0                304
NO_INDEX_SS                             NO_INDEX_SS                              10.1.0.3               304
INDEX_COMBINE                             ACCESS                               8.1.0                432
INDEX_JOIN                             ACCESS                               8.1.5                304
INDEX_RRS                             ACCESS                               9.0.0                304
PARALLEL_INDEX                             PARALLEL_INDEX                           8.1.0                288
NO_PARALLEL_INDEX                         PARALLEL_INDEX                           8.1.0                288
DOMAIN_INDEX_FILTER                         DOMAIN_INDEX_FILTER                          11.1.0.6               304
NO_DOMAIN_INDEX_FILTER                         NO_DOMAIN_INDEX_FILTER                       11.1.0.6               304
INDEX_RS_ASC                             ACCESS                               11.1.0.6               304
INDEX_RS_DESC                             ACCESS                               11.1.0.6               304
NUM_INDEX_KEYS                             ACCESS                               10.2.0.3               304
XMLINDEX_REWRITE                         XMLINDEX_REWRITE                          11.1.0.6                 0
NO_XMLINDEX_REWRITE                         XMLINDEX_REWRITE                          11.1.0.6                 0
XMLINDEX_REWRITE_IN_SELECT                     XMLINDEX_REWRITE                          11.1.0.6                 0
NO_XMLINDEX_REWRITE_IN_SELECT                     XMLINDEX_REWRITE                          11.1.0.6                 0
USE_INVISIBLE_INDEXES                         USE_INVISIBLE_INDEXES                          11.1.0.6                 0
NO_USE_INVISIBLE_INDEXES                     USE_INVISIBLE_INDEXES                          11.1.0.6                 0
IGNORE_ROW_ON_DUPKEY_INDEX                     IGNORE_ROW_ON_DUPKEY_INDEX                      11.1.0.7               288
CHANGE_DUPKEY_ERROR_INDEX                     CHANGE_DUPKEY_ERROR_INDEX                      11.1.0.7               288
XMLINDEX_SEL_IDX_TBL                         XMLINDEX_SEL_IDX_TBL                          11.2.0.1                 0

34 rows selected.

 

oracle hint 知多少

标签:access   v$sql   line   weight   erro   invisible   ignore   hint   exe   

原文地址:https://www.cnblogs.com/tingxin/p/13040859.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!