File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed
data-platform/core-converged-db/db-performance/performancehub Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change
1
+ REM Script: dbmsperf_1 .sql
2
+ REM example for DBMS_PERF .REPORT_PERFHUB with parameters
3
+
4
+ REM REPORT_PERFHUB generates an active performance report of the entire database system for a specified time period.
5
+ REM Arguments in this example define the report mode (historical or real - time ) and start and end time for the time selection and outer time .
6
+ REM Different tabs are available in the Performance Hub, depending on whether is_real- time is 1 for real - time mode or 0 for historical mode.
7
+ REM When real - time data is selected, more granular data is presented because data points are available every minute.
8
+ REM If historical data is chosen, more detailed data is presented, but the data points are averaged out to the AWR interval (usually an hour).
9
+
10
+
11
+ set pages 0 linesize 32767 trimspool on trim on long 1000000 longchunksize 10000000
12
+
13
+ spool sql_details_1 .html
14
+
15
+ select dbms_perf .report_perfhub (
16
+ is_realtime => &realtime,
17
+ outer_start_time => to_date(' &outerstart' ,' dd-MON-YYYY hh24:mi:ss' ),
18
+ outer_end_time => to_date(' &outerend' ,' dd-MON-YYYY hh24:mi:ss' ),
19
+ selected_start_time => to_date(' &starttime' ,' dd-MON-YYYY hh24:mi:ss' ),
20
+ selected_end_time => to_date(' &endtime' ,' dd-MON-YYYY hh24:mi:ss' ))
21
+ from dual;
22
+
23
+ spool off
You can’t perform that action at this time.
0 commit comments