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

Skip to content

Commit 71af674

Browse files
authored
Create db-io-type-metrics.pl.usage
1 parent ae58666 commit 71af674

File tree

1 file changed

+67
-0
lines changed

1 file changed

+67
-0
lines changed

db-io-type-metrics.pl.usage

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
db_io_type_metrics
2+
db_io_type_metrics.pl main page
3+
4+
The db_io_type_metrics.pl utility is used to display database physical IO type (small, large, synchronous, reads and writes) real-time metrics. It basically takes a snapshot each second (default interval) from the gv$iostat_file cumulative view and computes the delta with the previous snapshot. The utility is RAC and Multitenant aware.
5+
6+
This utility:
7+
8+
provides useful metrics.
9+
is RAC aware.
10+
detects if it is connected to a multitenant database and then is able to display the containers metrics.
11+
is fully customizable: you can aggregate the results depending on your needs.
12+
does not install anything into the database.
13+
It displays the following metrics per IO Type (small, large, synchronous, reads and writes):
14+
15+
MB/s: Megabytes per second.
16+
RQ/s: Requests per second.
17+
Avg MB/RQ: Average Megabytes per request.
18+
Avg ms/RQ: Average ms per request.
19+
At the following levels:
20+
21+
Database Instance.
22+
Database container.
23+
File Type (log file, control file, data file, temp file…) or tablespace.
24+
Let’s see the help:
25+
26+
./db_io_type_metrics.pl -help
27+
28+
Usage: ./db_io_type_metrics.pl [-interval] [-count] [-inst] [-cont] [-file_type_tbs] [-io_type] [-file_type] [-tbs] [-show] [-display] [-sort_field] [-help]
29+
30+
Default Interval : 1 second.
31+
Default Count : Unlimited
32+
33+
Parameter Comment Default
34+
--------- ------- -------
35+
-INST= ALL - Show all Instance(s) ALL
36+
CURRENT - Show Current Instance
37+
-CONT= Container to collect (wildcard allowed) ALL
38+
-FILE_TYPE_TBS= Collect on File Type or on Tablespace: file_type,tbs FILE_TYPE
39+
-IO_TYPE= IO Type to collect: reads,writes,small,large,synch READS
40+
-FILE_TYPE= File Type to collect (in case FILE_TYPE_TBS=file_type) (wildcard allowed) NONE
41+
-TBS= Tablespace to collect (in case FILE_TYPE_TBS=tbs) (wildcard allowed) NONE
42+
-SHOW= What to show: inst,cont,file_type_tbs (comma separated list) INST
43+
-DISPLAY= What to display: snap,avg (comma separated list) SNAP
44+
-SORT_FIELD= small_reads,small_writes,large_reads,large_writes NONE
45+
46+
Example: ./db_io_type_metrics.pl
47+
Example: ./db_io_type_metrics.pl -inst=CBDT1
48+
Example: ./db_io_type_metrics.pl -show=inst,file_type_tbs
49+
Example: ./db_io_type_metrics.pl -show=inst,file_type_tbs -file_type=%Data%
50+
Example: ./db_io_type_metrics.pl -show=inst -io_type=large
51+
Example: ./db_io_type_metrics.pl -show=inst -io_type=small -sort_field=small_reads
52+
Example: ./db_io_type_metrics.pl -show=inst,file_type_tbs -file_type_tbs=tbs -tbs=%USE%
53+
Example: ./db_io_type_metrics.pl -show=inst,cont
54+
Example: ./db_io_type_metrics.pl -show=inst,cont -cont=%P%
55+
Example: ./db_io_type_metrics.pl -show=inst,cont,file_type_tbs -io_type=small -sort_field=small_reads
56+
The main options/features are:
57+
58+
You can choose the number of snapshots to display and the time to wait between snapshots.
59+
You can choose on which database instance to collect the metrics thanks to the –INST= parameter.
60+
You can choose on which database container to collect the metrics thanks to the -CONT= parameter.
61+
You can choose to collect on File Type or tablespace thanks to the -FILE_TYPE_TBS=parameter.
62+
You can choose on which IO Type to collect the metrics thanks to the -IO_TYPE= parameter.
63+
You can choose on which File Type to collect the metric thanks to the -FILE_TYPE=parameter (wilcard allowed).
64+
You can choose on which Tablespace to collect the metric thanks to the -TBS=parameter (wilcard allowed).
65+
You can aggregate the results on the database instances, containers, file type or tablespace level thanks to the –SHOW= parameter.
66+
You can display the metrics per snapshot, the average metrics value since the collection began (that is to say since the script has been launched) or both thanks to the –DISPLAY= parameter.
67+
You can sort based on the number of small_reads, number of small_writes, number of large_reads or number of large_writes thanks to the –SORT_FIELD= parameter.

0 commit comments

Comments
 (0)