Return-Path: <root@fatcity.cts.com>
Received: from newsfeed.cts.com (newsfeed.cts.com [209.68.248.164])
 by naude.co.za (8.11.2/8.11.2) with SMTP id g7RJets18513
 for <oracle-l@naude.co.za>; Tue, 27 Aug 2002 15:40:55 -0400
Received: from fatcity.UUCP (uucp@localhost)
 by newsfeed.cts.com (8.9.3/8.9.3) with UUCP id MAA33565;
 Tue, 27 Aug 2002 12:38:53 -0700 (PDT)
Received: by fatcity.com (26-Feb-2001/v1.0g-b72/bab) via UUCP id 004C0A04; Tue, 27 Aug 2002 12:18:19 -0800
Message-ID: <F001.004C0A04.20020827121819@fatcity.com>
Date: Tue, 27 Aug 2002 12:18:19 -0800
To: Multiple recipients of list ORACLE-L <ORACLE-L@fatcity.com>
X-Comment: Oracle RDBMS Community Forum
X-Sender: "Ed Lewis" <eglewis@hotmail.com>
Sender: root@fatcity.com
Reply-To: ORACLE-L@fatcity.com
Errors-To: ML-ERRORS@fatcity.com
From: "Ed Lewis" <eglewis@hotmail.com>
Subject: controlling CPU usage through Oracle
Organization: Fat City Network Services, San Diego, California
X-ListServer: v1.0g, build 72; ListGuru (c) 1996-2001 Bruce A. Bergman
Precedence: bulk
Mime-Version: 1.0
Content-Type: multipart/alternative;	boundary="----=_NextPart_000_02D8_01C24DDC.4D743340"
------=_NextPart_000_02D8_01C24DDC.4D743340
Content-Type: text/plain;
 charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

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. =20
    This database is 1 of 5 on this box. So, although it's important
to build effective queries, it's also important in this=20
environment that these queries do not impact the other
4 databases.=20
    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,=20
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.


------=_NextPart_000_02D8_01C24DDC.4D743340
Content-Type: text/html;
 charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.3502.4373" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; I'm looking for a =
way to control=20
CPU usage of</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>particular queries on a =
database.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; After exploring, and =

implementing ways of optimizing the code,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>these queries can run anywhere from 45=20
seconds</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>to 2 minutes.&nbsp; </FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; This database is 1 =
of 5 on this=20
box. So, although it's important</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>to build effective queries, it's also =
important in=20
this </FONT></DIV>
<DIV><FONT face=3DArial size=3D2>environment that these queries do not =
impact the=20
other</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>4 databases. </FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; What I want to do is =
place a=20
limit on CPU usage</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>without terminating the query. I've =
looked at=20
profiles</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>with the "cpu_per_call" and =
"cpu_per_session"=20
settings.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I have never used profiles, but from =
what I=20
understand, </FONT></DIV>
<DIV><FONT face=3DArial size=3D2>these will kill the session once they =
reach a=20
threshold.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; I'm also looking at =
database=20
resource management.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>This may be more appropriate for this=20
situation.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; Has anyone used =
this, and if so=20
what are you</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>experiences ? Would you recommend it =
?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp;&nbsp;Would the only =
way to=20
control CPU usage on this</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>box, be through the operating system =
?</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I welcome any suggestions. I appreciate =
your=20
time.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>The environment is Oracle 8.1.7.2, AIX=20
4.3.3.</FONT></DIV>
<DIV>&nbsp;</DIV></BODY></HTML>

------=_NextPart_000_02D8_01C24DDC.4D743340--
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Ed Lewis
  INET: eglewis@hotmail.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@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).

