Oracle SQL for Session Monitoring

Posted on 2013-10-11
Medium Priority
Last Modified: 2013-10-11
Experts -

I would like to get the alert triggered if session > 40 connections from a single app server.

This is something will work

(select count(*) cnt, machine from gV$SESSION where lower(machine) like '%Application%' group by machine)

How can I set this up?

Question by:sventhan
LVL 74

Accepted Solution

sdstuber earned 2000 total points
ID: 39565829
you could poll periodically with dbms_scheduler

if your count > 40 then use utl_smtp to send notification

or, use a logon trigger, so that every user gets checked, if they are coming from the app server then do a count and send email if count > 40.  You could block them too if you wanted.
LVL 18

Author Closing Comment

ID: 39566680
Thanks for the help.

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Working with Network Access Control Lists in Oracle 11g (part 2) Part 1: http://www.e-e.com/A_8429.html Previously, I introduced the basics of network ACL's including how to create, delete and modify entries to allow and deny access.  For many‚Ķ
Shell script to create broker configuration file using current broker Configuration, solely for purpose of backup on Linux. Script may need to be modified depending on OS-installation. Please deploy and verify the script in a test environment.
This video explains at a high level about the four available data types in Oracle and how dates can be manipulated by the user to get data into and out of the database.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question