ba6.us - Dave's Database Related Stuff

  • home
  • blog
  • notebooks
  • projects
  • recent
  • about
  • manifesto
  • !
Home › Blogs › dmann's blog

Tag Cloud

apex Application Express Auditing data dbi development export funnies HTML Java linux monitoring oem oracle performance perl rman scripting sql SQL Developer sqlplus tuning unix windows
more tags

Search

RSS Feed

Blog Posts :

Navigation

  • Feed aggregator

User login

  • Request new password

Recording User Defined Metrics in Oracle Enterprise Manager OEM

dmann — Wed, 07/21/2010 - 14:52

Did you know that OEM has a built in interface for executing simple ad-hoc queries and recording the results? Here is how I set up a recurring query to find the number of user logins every 15 minutes and record the data. 1) Navigate to a database instance in OEM
2) Select the Related Links -> User Defined Metrics link from the bottom of the Database Instance Home tab.
3) Select the Create button to create a new User Defined Metric a. Enter the Metric Name b. Enter a SQL statement for the metric you would like to record (1 row, 1 column, use NVL (,0) for nulls or it may freak out)
SELECT COUNT(*) FROM V$SESSION WHERE USERNAME='INTERESTING_USER';
c. Enter Thresholds if you would like alerting d. Enter scheduling information e. Click Test f. Click OK
4) Wait for some collections to occur. Keep in mind the scheduling information you originally entered and be patient, OEM likes to take its own sweet time.
5) View the data a. Navigate to the database instance in OEM b. Select the User Defined Metrics link from the Related Links section at the bottom of the page. You will be shown a list of User Defined Metrics for this database: c. Select the name of the User Defined Metric. You will be shown
  • oem
  • Oracle Enterprise Manager
  • dmann's blog

Post new comment

The content of this field is kept private and will not be shown publicly.
Input format
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
6 + 13 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.


Cornify
  • home
  • blog
  • notebooks
  • projects
  • recent
  • about
  • manifesto
  • !

Content Copyright 2006-2010. Links are copyright of respective owners.