oracle19自动索引,Oracle 19c 新特性详解:自动索引(Automatic Indexing)的输出报告范例...

[email protected]>set serveroutput on

[email protected]>declare

2 report clob := null;

3 begin

4 report := DBMS_AUTO_INDEX.REPORT_ACTIVITY(

5 activity_start => TO_TIMESTAMP(‘2019-02-17 22:51:00‘, ‘yyyy-mm-dd hh24:mi:ss‘),

6 activity_end => TO_TIMESTAMP(‘2019-02-17 22:53:07‘, ‘yyyy-mm-dd hh24:mi:ss‘),

7 type => ‘HTML‘,

8 section => ‘ALL‘,

9 level => ‘ALL‘);

10 dbms_output.put_line(report);

11 end;

12 /

Activity start

Activity end

Executions completed

Executions interrupted

Executions with fatal error

: 17-FEB-2019 22:51:00

: 17-FEB-2019 22:53:07

: 1

: 0

: 0

Index candidates

Indexes created (visible / invisible)

Space used (visible / invisible)

Indexes dropped

SQL statements verified

SQL statements improved (improvement factor)

SQL plan baselines created

Overall improvement factor

: 1

: 1 (1 / 0)

: 45.09_MB (45.09_MB / 0_B)

: 0

: 2

: 2 (44948.5x)

: 0

: 44948.5x

Unused indexes

Space used

Unusable indexes

: 0

: 0_B

: 0

1. The following indexes were created:

*: invisible

bc0df4ae297558f42393748e0bcf1de4.gif

1. The performance of the following statements improved:

Parsing Schema Name

SQL ID

SQL Text

Improvement Factor

: ZRP

: 6664xv8fak0q5

: select sharded from test where object_id=123456

: 44919x

- Original

Plan Hash Value

: 1357081020

ef0d081303d76b9e70553f330ffed50a.gif

Notes

- optimizer_use_stats_on_conventional_dml = yes- With Auto Indexes

Plan Hash Value

: 159453698

703af6e3f02e3e0aab48130c1009c580.gif

Predicate Information (identified by operation id):

2 - access("OBJECT_ID"=123456)

Notes

- Dynamic sampling used for this statement ( level = 11 )

Parsing Schema Name

SQL ID

SQL Text

Improvement Factor

: ZRP

: 6d4vdmp6hq73p

: select created from test where object_id=234

: 44978x

- Original

Plan Hash Value

: 1357081020

0c4adfcfbcb06a4bc678fb7cd81206d2.gif

Notes

- optimizer_use_stats_on_conventional_dml = yes- With Auto Indexes

Plan Hash Value

: 159453698

0f5d71918714a44547e58687f6c2b462.gif

Predicate Information (identified by operation id):

2 - access("OBJECT_ID"=234)

Notes

- Dynamic sampling used for this statement ( level = 11 )

No errors found.

PL/SQL procedure successfully completed.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值