@@ -13,10 +13,10 @@ create or replace package mystats_pkg authid current_user as
1313 ||
1414 || Author: Adrian Billington
1515 || www.oracle-developer.net
16- || (c) oracle-developer.net
16+ || (c) oracle-developer.net
1717 ||
1818 || Description: PL/SQL-only version of Jonathan Lewis's SNAP_MY_STATS package.
19- || This package is used to output the resource usage as recorded
19+ || This package is used to output the resource usage as recorded
2020 || in V$MYSTAT and V$LATCH.
2121 ||
2222 || Key Differences
@@ -50,7 +50,7 @@ create or replace package mystats_pkg authid current_user as
5050 || exec mystats_pkg.ms_stop;
5151 ||
5252 || 2. Output statistics with delta values >= 1,000
53- || -------------------------------------------------------------
53+ || -------------------------------------------------------------
5454 || exec mystats_pkg.ms_start;
5555 || --<do some work>--
5656 || exec mystats_pkg.ms_stop(1000);
@@ -61,21 +61,21 @@ create or replace package mystats_pkg authid current_user as
6161 || --<do some work>--
6262 || exec mystats_pkg.ms_stop(mystats_pkg.statname_ntt('redo size', 'user commits'));
6363 ||
64- || 4. Output statistics for those containing the word 'memory'
64+ || 4. Output statistics for those containing the word 'memory'
6565 || -----------------------------------------------------------
6666 || exec mystats_pkg.ms_start;
6767 || --<do some work>--
6868 || exec mystats_pkg.ms_stop('memory');
6969 ||
7070 || Notes: 1. Serveroutput must be on (and set higher than default);
71- ||
71+ ||
7272 || 2. See http://www.jlcomp.demon.co.uk/snapshot.html for original
7373 || version.
7474 ||
75- || 3. A free-standing, SQL*Plus-script version of MyStats is also
75+ || 3. A free-standing, SQL*Plus-script version of MyStats is also
7676 || available. The script version works without creating any
7777 || database objects.
78- ||
78+ ||
7979 || Disclaimer: http://www.oracle-developer.net/disclaimer.php
8080 ||
8181 || ----------------------------------------------------------------------------
@@ -183,7 +183,7 @@ create or replace package body mystats_pkg as
183183 union all
184184 select 'LATCH'
185185 , name
186- , gets
186+ , gets
187187 from v$latch
188188 union all
189189 select 'TIME'
@@ -221,7 +221,7 @@ create or replace package body mystats_pkg as
221221
222222 /*
223223 || Downside of using associative arrays is that we have to sort
224- || the output. So here's a couple of types and a variable to enable us
224+ || the output. So here's a couple of types and a variable to enable us
225225 || to do that...
226226 */
227227 type aat_mystats_output is table of st_output
@@ -315,13 +315,13 @@ create or replace package body mystats_pkg as
315315 v_value := ga_mystats(c_run2)(v_name).value - ga_mystats(c_run1)(v_name).value;
316316
317317 /*
318- || If it's greater than the threshold or a statistic we are interested in,
318+ || If it's greater than the threshold or a statistic we are interested in,
319319 || then output it. The downside of using purely associative arrays is that
320320 || we don't have any easy way of sorting. So we have to do it ourselves...
321321 */
322322 if (p_threshold is not null and abs(v_value) >= p_threshold)
323323 or (p_statnames is not empty and v_name member of p_statnames)
324- or (p_statname_like is not null and v_name like '%'||p_statname_like||'%')
324+ or (p_statname_like is not null and v_name like '%'||p_statname_like||'%')
325325 then
326326 /*
327327 || Fix for bug 1713403. If redo goes over 2Gb then it is reported as a negative
@@ -334,7 +334,7 @@ create or replace package body mystats_pkg as
334334 sort(v_type, v_name, v_value);
335335 end if;
336336 end if;
337-
337+
338338 /*
339339 || Next statname please...
340340 */
@@ -402,7 +402,7 @@ create or replace package body mystats_pkg as
402402 then ms_report(p_statnames => p_statnames);
403403 when p_statname_like is not null
404404 then ms_report(p_statname_like => p_statname_like);
405- else ms_report;
405+ else ms_report;
406406 end case;
407407 ms_reset;
408408 else
@@ -438,5 +438,5 @@ create or replace package body mystats_pkg as
438438end mystats_pkg;
439439/
440440
441- create or replace public synonym mystats_pkg for mystats_pkg;
442- grant execute on mystats_pkg to public;
441+ -- create or replace public synonym mystats_pkg for mystats_pkg;
442+ -- grant execute on mystats_pkg to public;
0 commit comments