暂无图片
暂无图片
1
暂无图片
暂无图片
暂无图片

生成自动化索引报告

wzf0072 2024-02-03
115

生成自动化索引报告:
通过 dbms_auto_index 包中的 report_activity 和 report_last_activity 两个存储过程来生成报告。
1、使用默认配置生成报告
declare
report clob := null ;
begin
report := dbms_auto_index.report_activity() ;
dbms_output.put_line(report) ;
end ;
2、生成最后一次自动化索引操作的报告
set serveroutput on
declare
report clob := null ;
begin
report := dbms_auto_index.report_last_activity() ;
dbms_output.put_line(report) ;
end ;

dbms_auto_index.report_activity 和 report_last_activity 说明

dbms_auto_index.report_activity (

activity_start

in timestamp with time zone default systimestamp - 1,

activity_end

in timestamp with time zone default systimestamp,

type

in varchar2 default 'text',

section

in varchar2 default 'all',

level

in varchar2 default 'typical')

return clob ;

dbms_auto_index.report_last_activity (

type in varchar2 default 'text',

section in varchar2 default 'all',

level in varchar2 default 'typical')

return clob ;

说明如下:

tpe:可选值 text、html、xml

section:可选值:summary, index_details, verification_details, errors, all。可通过+号选择多个值,-号去掉某个值。

level:可选值:basic, typical, all。
————————————————

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。

原文链接:https://blog.csdn.net/chensmallyun/article/details/133552911

「喜欢这篇文章,您的关注和赞赏是给作者最好的鼓励」
关注作者
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

评论