Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re:RE: Re[2]: controlling CPU usage through Oracle
Dennis,
You've got that right. Damned PeopleSoft! We were hoping we might be able to leverage ORM to control PeopleSorft query users. No such luck since everyone is PeopleSoft. Now on the other hand, if you've got the LUXURY of having people logged in with their own usernames you certainly can throttle down those you want, almost to a crawl.
Dick Goulet
____________________Reply Separator____________________ Author: DENNIS WILLIAMS <DWILLIAMS_at_LIFETOUCH.COM> Date: 8/28/2002 1:53 PM
Dick - My understanding is that Oracle Resource Manager controls resources
based on userid. In other words, if a third-party application or an
application server uses the same Oracle userid for access, then Oracle
Resource Manager wouldn't help much. Is that what you've seen?
Dennis Williams
DBA
Lifetouch, Inc.
dwilliams_at_lifetouch.com
-----Original Message-----
Sent: Wednesday, August 28, 2002 11:52 AM
To: Multiple recipients of list ORACLE-L
Ed,
The only way your going to do this is through Oracle Resource Manager.
You'll need an 8.1.x Enterprise database. Then you can setup your resource
plans and groups to manage who gets how much CPU at a time. Any of the
operating level tools out there cannot get down to the level of granularity
your
asking for since all of the activity happens within Oracle. All those tools
can
do is control the amount of CPU that Oracle gets which has a global effect
that
hampers all users of the database.
Dick Goulet
____________________Reply Separator____________________ Author: "Ed Lewis" <eglewis_at_hotmail.com> Date: 8/28/2002 5:13 AM
Raj,
Thanks for your input.
>From what I understand with profiles,
the session will be terminated once a
threshold is reached.
In this particular case, I cannot
terminate the session. I need to be able
to control the CPU usage of a session, without
ending it.
If this cannot be done within Oracle, then maybe it can be accomplished through the OS.
thanks. ed
You could use profiles to control CPU usage as well, more info is in manuals.
Raj
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-----
From: Ed Lewis [mailto:eglewis_at_hotmail.com]
Sent: Tuesday, August 27, 2002 4:18 PM
To: Multiple recipients of list ORACLE-L
Subject: controlling CPU usage through Oracle
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 content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="MSHTML 5.00.3502.4373" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Raj,</FONT></DIV>
<DIV><FONT face=Arial size=2> Thanks for your
input.</FONT></DIV>
<DIV><FONT face=Arial size=2>From what I understand with profiles,
</FONT></DIV>
<DIV><FONT face=Arial size=2>the session will be terminated</FONT><FONT
face=Arial size=2> once a </FONT></DIV>
within Oracle, then</FONT></DIV>
<DIV><FONT face=Arial size=2>maybe it can be accomplished through the
OS.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>
thanks.</FONT></DIV>
<DIV><FONT face=Arial size=2>
ed</FONT></DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>
</FONT> </DIV>
<BLOCKQUOTE dir=ltr
style="BORDER-LEFT: #000000 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px;
PADDING-LEFT: 5px; PADDING-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color:
black"><B>From:</B>
<A href="mailto:Rajendra.Jamadagni_at_espn.com"
title=Rajendra.Jamadagni_at_espn.com>Jamadagni, Rajendra</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A
href="mailto:ORACLE-L_at_fatcity.com"
title=ORACLE-L_at_fatcity.com>Multiple recipients of list ORACLE-L</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Tuesday, August 27, 2002 4:48
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> RE: controlling CPU usage
through Oracle</DIV>
<DIV><BR></DIV>
<DIV><SPAN class=977503919-27082002><FONT color=#0000ff face="Courier New"
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 color=#0000ff face="Courier New"
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=977503919-27082002><FONT color=#0000ff face="Courier New"
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 MIS, ESPN Inc.</FONT></P> <P align=left><FONT face="Courier New" size=2>Rajendra dot Jamadagni at ESPN
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> 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> After exploring, andimplementing ways of optimizing the code,</FONT></DIV> <DIV><FONT face=Arial size=2>these queries can run anywhere from 45 seconds</FONT></DIV>
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> 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> 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> 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> 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> </DIV>
<DIV><FONT face=Arial size=2>I welcome any suggestions. I appreciate
your
time.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>The environment is Oracle 8.1.7.2, AIX
4.3.3.</FONT></DIV>
<DIV> </DIV></BLOCKQUOTE></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). -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: DENNIS WILLIAMS INET: DWILLIAMS_at_LIFETOUCH.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: 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 Thu Aug 29 2002 - 08:38:20 CDT
![]() |
![]() |