- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
oracle组合索引使用详解(Oracle explain the use of the composite index)
oracle组合索引使用详解(Oracle explain the use of the composite index)
Detailed usage of composite index in Oracle
In Oracle, a composite index can be created, that is, an index containing two or more columns at the same time as two. In terms of the use of composite indexes, Oracle has the following characteristics:
1, when a rule based optimizer (RBO) is used, the index is used only when the leading column of the composite index appears in the where clause of the SQL statement;
2, before using Oracle9i based on the cost of the optimizer (CBO), only when the combination index of the leading column appears in the where clause in the SQL statement, it may be of use to the index, using the index depending on the calculation of the cost and the optimizer uses a full table scan into this, Oracle will automatically select the access path of low cost (see the following test 1 and test 2);
3, from Oracle9i, Oracle introduces a new index scan called index skip scan (CBO), a scan that is only cost based. So, when the where clause of the SQL statement in the preamble even without the combined index, and the index skip scan cost less than the cost of other scanning mode, Oracle will use the way of scanning the composite index (see the following test 3);
4, the Oracle optimizer can sometimes make the wrong choice, because it is more smart, as we SQL writing staff more clear distribution table data, in this case, by using the tip (hint), we can help the Oracle optimizer to make better choices (see the following test 4).
As regards the above, we have separately tested as follows:
We create the test table T, which is derived from the data dictionary table all_objects of Oracle, and the structure of table T is as follows:
SQL desc t
Is the name empty?
----------------------------------------------------------------------
OWNER, NOT, NULL, VARCHAR2 (30)
OBJECT_NAME, NOT, NULL, VARCHAR2 (30)
SUBOBJECT_NAME VARCHAR2 (30)
OBJECT_ID NOT NULL NUMBER
DATA_OBJECT_ID NUMBER
OBJECT_TYPE VARCHAR2 (18)
您可能关注的文档
- cad快捷方式(CAD shortcut).doc
- cad常用命令键盘快捷健(CAD commands commonly used keyboard shortcut key).doc
- cad快捷键一览(CAD shortcuts list).doc
- cad快捷键命令(CAD shortcut command).doc
- cad快捷键文本文档(The CAD shortcut key text document).doc
- cad指令表(CAD instruction.).doc
- cad所有命令(All CAD commands).doc
- cad指令(The CAD instruction).doc
- cad快捷键层序代码(The CAD shortcut key sequence code).doc
- cad操作(CAD operation).doc
- oracle--索引-详解(甲骨文——索引-详解).doc
- orcale系统表查阅(Orcale system access table).doc
- oracle递归查询(Oracle递归查询).doc
- osi的7层网络结构图和tcpip5层结构图(OSI 7 layer network structure and tcpip5 layer structure).doc
- osp与hasl比较(OSP与HASL比较).doc
- osp常见问题(OSP common problems).doc
- owl city 歌词(猫头鹰之城歌词).doc
- o_p_e.空间坐标转化为平面坐标(O_p_e. space coordinates into plane coordinates).doc
- overlay(覆盖).doc
- p2p数据包传输协议(P2P packet transmission protocol).doc
文档评论(0)