Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re:RE: controlling CPU usage through Oracle

Re:RE: controlling CPU usage through Oracle

From: <dgoulet_at_vicr.com>
Date: Tue, 27 Aug 2002 13:33:23 -0800
Message-ID: <F001.004C0BD5.20020827133323@fatcity.com>


Look into Oracle Resource Manager.

____________________Reply Separator____________________
Author: "Jamadagni; Rajendra" <Rajendra.Jamadagni_at_espn.com>
Date:       8/27/2002 12:48 PM

You could use profiles to control CPU usage as well, more info is in manuals.  

Raj


Rajendra Jamadagni MIS, ESPN Inc.

Rajendra dot Jamadagni at ESPN dot com

Any opinion expressed here is personal and doesn't reflect that of ESPN Inc.

QOTD: Any clod can have facts, but having an opinion is an art!

-----Original Message-----
Sent: Tuesday, August 27, 2002 4:18 PM
To: Multiple recipients of list ORACLE-L

Hi,

    I'm looking for a way to control CPU usage of particular queries on a database.

    After exploring, and implementing ways of optimizing the code, these queries can run anywhere from 45 seconds to 2 minutes.

    This database is 1 of 5 on this box. So, although it's important to build effective queries, it's also important in this environment that these queries do not impact the other 4 databases.

    What I want to do is place a limit on CPU usage without terminating the query. I've looked at profiles with the "cpu_per_call" and "cpu_per_session" settings. I have never used profiles, but from what I understand, these will kill the session once they reach a threshold.

    I'm also looking at database resource management. This may be more appropriate for this situation.

    Has anyone used this, and if so what are you experiences ? Would you recommend it ?

    Would the only way to control CPU usage on this box, be through the operating system ?  

I welcome any suggestions. I appreciate your time.  

The environment is Oracle 8.1.7.2, AIX 4.3.3.  

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">


<META content="MSHTML 5.50.4522.1800" name=GENERATOR>
<STYLE></STYLE>
</HEAD>

<BODY bgColor=#ffffff>
<DIV><SPAN class=977503919-27082002><FONT face="Courier New" color=#0000ff size=2>You could use profiles to control CPU usage as well, more info is in manuals.</FONT></SPAN></DIV>
<DIV><SPAN class=977503919-27082002><FONT face="Courier New" color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=977503919-27082002><FONT face="Courier New" color=#0000ff size=2>Raj</FONT></SPAN></DIV>
<DIV><SPAN class=977503919-27082002></SPAN><FONT face="Courier New"
size=2>______________________________________________________</FONT></DIV>
<P align=left><FONT face="Courier New" size=2>Rajendra Jamadagni&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MIS, ESPN Inc.</FONT></P> <P align=left><FONT face="Courier New" size=2>Rajendra dot Jamadagni at ESPN dot

com</FONT></P>
<P align=left><FONT face="Courier New" size=2>Any opinion expressed here is personal and doesn't reflect that of ESPN Inc. </FONT></P> <P align=left><FONT face="Courier New" size=2>QOTD: Any clod can have facts, but

having an</FONT> <FONT face="Courier New" size=2>opinion is an</FONT> <FONT face="Courier New" size=2>art!</FONT></P> <BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
  size=2>-----Original Message-----<BR><B>From:</B> Ed Lewis   [mailto:eglewis_at_hotmail.com]<BR><B>Sent:</B> Tuesday, August 27, 2002 4:18   PM<BR><B>To:</B> Multiple recipients of list ORACLE-L<BR><B>Subject:</B>   controlling CPU usage through Oracle<BR><BR></FONT></DIV>
<DIV><FONT face=Arial size=2>Hi,</FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; I'm looking for a way to
  control CPU usage of</FONT></DIV>
<DIV><FONT face=Arial size=2>particular queries on a database.</FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; After exploring, and
  implementing ways of optimizing the code,</FONT></DIV>
<DIV><FONT face=Arial size=2>these queries can run anywhere from 45
  seconds</FONT></DIV>
<DIV><FONT face=Arial size=2>to 2 minutes.&nbsp; </FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; This database is 1 of 5 on
  this box. So, although it's important</FONT></DIV>
<DIV><FONT face=Arial size=2>to build effective queries, it's also important
  in this </FONT></DIV>
<DIV><FONT face=Arial size=2>environment that these queries do not impact the

  other</FONT></DIV>

<DIV><FONT face=Arial size=2>4 databases. </FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; What I want to do is place a
  limit on CPU usage</FONT></DIV>
<DIV><FONT face=Arial size=2>without terminating the query. I've looked at
  profiles</FONT></DIV>
<DIV><FONT face=Arial size=2>with the "cpu_per_call" and "cpu_per_session"
  settings.</FONT></DIV>
<DIV><FONT face=Arial size=2>I have never used profiles, but from what I
  understand, </FONT></DIV>
<DIV><FONT face=Arial size=2>these will kill the session once they reach a
  threshold.</FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; I'm also looking at database
  resource management.</FONT></DIV>
<DIV><FONT face=Arial size=2>This may be more appropriate for this
  situation.</FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; Has anyone used this, and if
  so what are you</FONT></DIV>
<DIV><FONT face=Arial size=2>experiences ? Would you recommend it
  ?</FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp;&nbsp;Would the only way to
  control CPU usage on this</FONT></DIV>
<DIV><FONT face=Arial size=2>box, be through the operating system
  ?</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I welcome any suggestions. I appreciate your
  time.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>The environment is Oracle 8.1.7.2, AIX
  4.3.3.</FONT></DIV>
<DIV>&nbsp;</DIV></BLOCKQUOTE></BODY></HTML>
 

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: 
  INET: dgoulet_at_vicr.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).

Received on Tue Aug 27 2002 - 16:33:23 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US