RE: Grid Control and one database cpu usage

From: John Hallas <>
Date: Fri, 3 Sep 2010 12:11:41 +0100
Message-ID: <>

I have taken a different slant on this and demonstrated how to display a report in Grid that can be run against any database instance to display a graph of CPU uage or any other metric that is required.

I hope it proves useful

On 2 Sep 2010 16:40, "Rich Jesse" <<>> wrote:

> That'll give the host cpu and not the db CPU
> I suspect that the OP is after something along th...
You beat me to it, Niall! Although I'm not sure which CPU metric would be the proverbial "best", so I came up with this one to let the OP decide:

       sysman.mgmt$metric_daily mmd

       sysman.mgmt$target mt
       ON mmd.target_name = mt.target_name
       AND mmd.target_type = mt.target_type
       AND mmd.target_guid = mt.target_guid
       mmd.metric_column like '%cpu%'
       AND mt.target_name = :DB_NAME
       AND mt.target_type = 'oracle_database';

The extra view and columns I used for performance, although that's probably debatable...

And, of course, this is run directly against the Grid Control repository DB and *not* the target database. (thought it worth mentioning)



Wm Morrison Supermarkets Plc is registered in England with number 358949. The registered office of the company is situated at Gain Lane, Bradford, West Yorkshire BD3 7DL. This email and any attachments are intended for the addressee(s) only and may be confidential.

If you are not the intended recipient, please inform the sender by replying to the email that you have received in error and then destroy the email. If you are not the intended recipient, you must not use, disclose, copy or rely on the email or its attachments in any way.

This email does not constitute a contract in writing for the purposes of the Law of Property (Miscellaneous Provisions) Act 1989.

Our Standard Terms and Conditions of Purchase, as may be amended from time to time, apply to any contract that we enter into. The current version of our Standard Terms and Conditions of Purchase is available at:

Although we have taken steps to ensure the email and its attachments are virus-free, we cannot guarantee this or accept any responsibility, and it is the responsibility of recipients to carry out their own virus checks.

Received on Fri Sep 03 2010 - 06:11:41 CDT

Original text of this message