Execution Plan Operations

Execution Plan Operations

ID:40351606

大小:455.84 KB

页数:173页

时间:2019-07-31

Execution Plan Operations_第1页
Execution Plan Operations_第2页
Execution Plan Operations_第3页
Execution Plan Operations_第4页
Execution Plan Operations_第5页
资源描述:

《Execution Plan Operations》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库

1、ALTERINDEXSTATEMENTDescriptionALTERINDEXstatementVersionsThisoperationisimplementedinthefollowingversions8.1.79.0.19.2.0ExampleThisexamplewasdevelopedusingOracle9.2.0.1onWindows2000ThisoperationcannotbedetectedusingAUTOTRACE.UseEXPLAINPLANinsteadCREATETABLEt1(c1NUMBER);CREATEINDEXi1ONt1(c1);EX

2、PLAINPLANFORALTERINDEXi1REBUILD;Thisstatementcreatesthefollowingexecutionplan(utlxpls.sql)0ALTERINDEXSTATEMENT10INDEXBUILD(NONUNIQUE)I121SORT(CREATEINDEX)32TABLEACCESS(FULL)OF'T1'AND-EQUALDescriptionJoinstwoormorenon-uniqueindexesonthesametableVersionsThisoperationisimplementedinthefollowingve

3、rsions7.3.48.0.48.0.58.0.68.1.58.1.68.1.79.0.19.2.0ExampleThisexamplewasdevelopedusingOracle9.2.0.1onWindows2000ThisexamplerequiresthefollowingtableandindexdefinitionsCREATETABLEt1(c1NUMBERNOTNULL,c2NUMBERNOTNULL,c3NUMBERNOTNULL);CREATEINDEXi1ONt1(c2);CREATEINDEXi2ONt1(c3);ANALYZETABLEt1COMPUT

4、ESTATISTICS;ThestatementSELECT/*+AND_EQUAL(t1i1i2)*/c1FROMt1WHEREc2=0ANDc3=0;generatesthefollowingexecutionplan0SELECTSTATEMENTOptimizer=CHOOSE10TABLEACCESS(BYINDEXROWID)OF'T1'21AND-EQUAL32INDEX(RANGESCAN)OF'I1'(NON-UNIQUE)42INDEX(RANGESCAN)OF'I2'(NON-UNIQUE)BITMAPANDDescriptionSelectsrowsfrom

5、atablebasedontheresultofapplyinganANDontwobitmapindexesVersionsThisoperationisimplementedinthefollowingversions7.3.48.0.48.0.58.0.68.1.58.1.68.1.79.0.19.2.0ExampleThisexamplewasdevelopedusingOracle9.2.0.1onWindows2000ThisexamplerequiresthefollowingtableandindexdefinitionsCREATETABLEt1(c1NUMBER

6、,c2NUMBER);CREATEBITMAPINDEXi1ONt1(c1);CREATEBITMAPINDEXi2ONt1(c2);ThetabledoesnotneedtobeanalysedThestatementSELECT/*+INDEX_COMBINE(t1i1i2)*/c1,c2FROMt1WHEREc1=0ANDc2=0;generatesthefollowingexecutionplan0SELECTSTATEMENTOptimizer=CHOOSE10BITMAPCONVERSION(TOROWIDS)21BITMAPAND32BITMAPINDEX(SINGL

7、EVALUE)OF'I1'42BITMAPINDEX(SINGLEVALUE)OF'I2'BITMAPCOMPACTIONDescriptionCompressesabitmapduringbitmapindexcreationVersionsThisoperationwasintroducedinOracle8.0.4Thisoperationisimplementedinthefollowingversions8.0.48.0.58.0.68.1.58.1.68.

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。