Quantcast
Channel: Stories by Franck Pachot on Medium
Viewing all articles
Browse latest Browse all 515

Oracle: connection rate to the listener

$
0
0

A single line command to read the listener log, filter the message from a date (you can change it), and group by hour to count the connections:

adrci exec='set home diag/tnslsnr ; show alert -term -p \"' "MESSAGE_TEXT like \'%establish%\' and ORIGINATING_TIMESTAMP > \'2018-06-07 00:00:00\'" '\"' | awk '/establish/{sub(/:.*/,"",$2);print "connection/hour at "$1,$2":00-"$2":59"}' | uniq -c

Originally published on Twitter:


Viewing all articles
Browse latest Browse all 515

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>