Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f5cc486

Browse files
authored
Merge pull request #426 from utPLSQL/feature/my_stats_v3
updated my_stats library version
2 parents 33a6f45 + 0d35430 commit f5cc486

3 files changed

Lines changed: 363 additions & 166 deletions

File tree

Lines changed: 16 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,34 @@
1+
# MYSTATS
12

2-
MYSTATS README
3-
==============
3+
## 1.0 Introduction
4+
This repository contains two versions of the MyStats utility. This reports on the resource usage between two snapshots in an active database session. It is a combination of Jonathan Lewis's SNAP_MY_STATS package and my own re-factoring of Tom Kyte's runstats utility (also available via www.oracle-developer.net or github.com/oracle-developer/runstats). I've also added some functionality and flexibility around the statistics reporting section.
45

5-
1.0 Introduction
6-
----------------
7-
This archive contains two versions of the MyStats utility. This reports on the resource usage between two snapshots in an active database session. It is a combination of Jonathan Lewis's SNAP_MY_STATS package and my own re-factoring of Tom Kyte's runstats utility (also available via www.oracle-developer.net). I've also added some functionality and flexibility around the statistics reporting section.
6+
## 2.0 Versions
7+
There are two versions provided.
88

9-
2.0 Versions
10-
------------
11-
There are two versions provided:
12-
13-
2.1 mystats_pkg.sql
14-
- - - - - - - - - -
9+
### 2.1 mystats_pkg.sql
1510
This creates via a single PL/SQL package named MYSTATS_PKG. This uses invoker rights and dynamic SQL to workaround the common issue whereby developers are not given explicit grants on the required V$ views but have V$ access via a role. See the comments in the package header for more details and usage instructions.
1611

17-
2.2 mystats.sql
18-
- - - - - - - -
12+
### 2.2 mystats.sql
1913
This version is a standalone SQL*Plus script that runs MyStats from your SQLPATH without the need to create any database objects. This can be used if you are not able to create the PL/SQL package version of MyStats. See the comments in the script header for more details and usage instructions.
2014

21-
3.0 Version History
22-
-------------------
15+
## 3.0 Version History
16+
```
2317
Version Date Description
24-
-------- --------------- --------------------------------------------
18+
-------- --------------- ----------------------------------------------
2519
1.0 June 2007 Original version
2620
1.1 January 2009 Added extended reporting options
2721
2.0 October 2011 Re-design for standalone script version
2822
2.01 November 2011 Bug-fix for numeric overflow
23+
3.0 November 2015 Added extended snapshot and reporting options
24+
```
2925

30-
4.0 Credits
31-
-----------
32-
Credit is given to Jonathan Lewis for his original idea of taking two snapshots to identify resource consumption.
26+
## 4.0 Credits
27+
1. Credit is given to Jonathan Lewis for his original idea of taking two snapshots to identify resource consumption.
28+
2. Thanks to Martin Bach for suggesting (and providing a prototype) for extended snapshot and reporting options.
3329

34-
5.0 Disclaimer
35-
--------------
30+
## 5.0 Disclaimer
3631
See http://www.oracle-developer.net/disclaimer.php
3732

3833
Adrian Billington
3934
(c) www.oracle-developer.net
40-

0 commit comments

Comments
 (0)