Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Database using 100% of CPU
Check to see if there are any DBMS_JOBS running.
At one place I worked, someone installed some sort of Java monitoring tool on the database and that pegged the CPU.
In your rdbms/admin directory you need to read the statspack.doc which will tell you everything you need to do. Very simple.
Then
execute statspack.snap - executes a snap or picture of your database, you need two snaps before you run a report. For me each snap is about 1/2 hour apart but it depends on the size/activity of your database.
sqlplus perfstat/perfstat_at_yoursidhere @statsrep - to run a report, asked for ids of snaps you want to compare, then gives you a report. www.permon.com is good to help analyze the report but it is under construction right now.
kathy
-----Original Message-----
Sent: Friday, August 17, 2001 11:56 AM
To: Multiple recipients of list ORACLE-L
Which are the event tables, and how do I run the statspack report? There are no jobs and no active sessions (except mine, and its not me...).
Thanks,
Steven H.
-----Original Message-----
Spence
Sent: 17 August 2001 18:35
To: Multiple recipients of list ORACLE-L
Have you looked at the event tables?
Perhaps running a statspack report from now to the next 10 minutes and look at the biggest waiters.
If it is unix, look for the process which is eating up the resources, query v$process to get the process address, then use that to get the session, then use the sql address to find the sql.\
Also query v$session for active sessions which are active for a long time.
"Do not criticize someone until you walked a mile in their shoes, that way when you criticize them, you are a mile a way and have their shoes."
Christopher R. Spence
Oracle DBA
Phone: (978) 322-5744
Fax: (707) 885-2275
Fuelspot
73 Princeton Street
North, Chelmsford 01863
-----Original Message-----
Sent: Friday, August 17, 2001 12:41 PM
To: Multiple recipients of list ORACLE-L
We are having a problem with our database - it is using 100% of the CPU. This has only started happening recently, and restarting the database temporarily stops it happening - it usually recurrs a few hours later. There are no jobs running, and at the moment there are no active connections. Obviously something has kicked this off, can anyone shed any light on this or suggest how to find out what is running on the db?
Thanks in advance,
Steven H.
(Oracle 8.1.6.0.0 EE on NT 4 SP5)
-- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Steven Hovington INET: steven.hovington_at_procession.com Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Christopher Spence INET: cspence_at_FuelSpot.com Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-LReceived on Fri Aug 17 2001 - 13:27:42 CDT
(or the name of mailing list you want to be removed from). You may
also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Steven Hovington INET: steven.hovington_at_procession.com Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from). You may
also send the HELP command for other information (like subscribing). Confidential This e-mail and any files transmitted with it are the property of Belkin Components and/or its affiliates, are confidential, and are intended solely for the use of the individual or entity to whom this e-mail is addressed. If you are not one of the named recipients or otherwise have reason to believe that you have received this e-mail in error, please notify the sender and delete this message immediately from your computer. Any other use, retention, dissemination, forwarding, printing or copying of this e-mail is strictly prohibited. -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Kathy Duret INET: KathyD_at_belkin.com Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from). You may
also send the HELP command for other information (like subscribing).
![]() |
![]() |