dbTalk Databases Forums  

top down approach to reducing io from awr report

comp.databases.oracle.server comp.databases.oracle.server


Discuss top down approach to reducing io from awr report in the comp.databases.oracle.server forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
dba cjb
 
Posts: n/a

Default top down approach to reducing io from awr report - 08-22-2011 , 05:40 AM






oracle 10.2.0.4 enterprise on windows 2003

I am looking at awr reports for most disk intensive sql / the trouble
i am finding that pl/sql code accounts for most of the work

eg

Physical Reads Execu tions Reads per Exec %Total CPU Time (s) Elapsed
Time (s) SQL Id SQL Module SQL Text
53,165,663 0 12.63
3649.28 4614.59

---------------------------------------------------------------------------------------------------
sqlid is 12y4 2rjqn8bdh SQL*Plus code is DECLARE vFunc
VARCHAR2(30) :...
---------------------------------------------------------------------------------------------------
Is there any way I can dig deeper to find the sql that is doing most
of the work
/ the sql_id for the pl/sql doesn't give me anything to look at
....or am I restricted at what I can drill down on via sql_id


My general aim is to reduce i/o overhead where possible & I want to
attack the 'biggest' culprits
by looking at explain plans.

I would welcome any ideas on drilling further om pl/sql code or
comments on alternative approaches?


regards
Chris B

Reply With Quote
  #2  
Old   
Mladen Gogala
 
Posts: n/a

Default Re: top down approach to reducing io from awr report - 08-22-2011 , 08:04 AM






On Mon, 22 Aug 2011 03:40:23 -0700, dba cjb wrote:
---------------------------------------------------------------------------------------------
Quote:
Is there any way I can dig deeper to find the sql that is doing most of
the work
/ the sql_id for the pl/sql doesn't give me anything to look at ...or am
I restricted at what I can drill down on via sql_id


My general aim is to reduce i/o overhead where possible & I want to
attack the 'biggest' culprits
by looking at explain plans.

I would welcome any ideas on drilling further om pl/sql code or comments
on alternative approaches?


regards
Chris B
The best way would be to collect the execution trace for the processes
using that particular PL/SQL and analyze it with tkprof or orasrp.
Profiling the PL/SQL code with the DBMS_PROFILER also wouldn't be a bad
idea.



--
http://mgogala.byethost5.com

Reply With Quote
  #3  
Old   
John Hurley
 
Posts: n/a

Default Re: top down approach to reducing io from awr report - 08-22-2011 , 09:38 AM



dba cjb:

# I would welcome any ideas on drilling further om pl/sql code or
comments on alternative approaches?

....

Start by purchasing and reading Cary Millsaps "Optimizing Oracle
Performance" book.

Reply With Quote
  #4  
Old   
Mladen Gogala
 
Posts: n/a

Default Re: top down approach to reducing io from awr report - 08-22-2011 , 10:36 AM



On Mon, 22 Aug 2011 07:38:57 -0700, John Hurley wrote:


Quote:
Start by purchasing and reading Cary Millsaps "Optimizing Oracle
Performance" book.
Are you getting a commission from Cary?



--
http://mgogala.byethost5.com

Reply With Quote
  #5  
Old   
joel garry
 
Posts: n/a

Default Re: top down approach to reducing io from awr report - 08-22-2011 , 01:02 PM



On Aug 22, 8:36*am, Mladen Gogala <n... (AT) email (DOT) here.invalid> wrote:
Quote:
On Mon, 22 Aug 2011 07:38:57 -0700, John Hurley wrote:
Start by purchasing and reading Cary Millsaps "Optimizing Oracle
Performance" book.

Are you getting a commission from Cary?

lol, a fair observation, but they have been appropriate IMO. People
need to be told they have to follow some methodology, it isn't obvious
that AWR by itself isn't enough, though it often can at least point at
the problem. Sometimes it points at the victims of the problems
rather than the actual problems.

jg
--
@home.com is bogus.
Never underestimate corporate idiocy.
http://www.itp.net/10261-oracle-take...ound-with-sap-

Reply With Quote
  #6  
Old   
Mladen Gogala
 
Posts: n/a

Default Re: top down approach to reducing io from awr report - 08-22-2011 , 01:54 PM



On Mon, 22 Aug 2011 11:02:29 -0700, joel garry wrote:

Quote:
lol, a fair observation, but they have been appropriate IMO. People
need to be told they have to follow some methodology, it isn't obvious
that AWR by itself isn't enough
I agree, it was just a tongue in cheek remark. I can wholeheartedly
recommend reading Cary Millsap's book myself, only John did that twice,
in a very short period of time.



--
http://mgogala.byethost5.com

Reply With Quote
  #7  
Old   
John Hurley
 
Posts: n/a

Default Re: top down approach to reducing io from awr report - 08-22-2011 , 02:50 PM



Mladen:

# I agree, it was just a tongue in cheek remark.

....

No harm no foul! Looking forward to Cary's presentation at OOW 2011
myself.

# I can wholeheartedly recommend reading Cary Millsap's book myself,
only John did that twice, > in a very short period of time.

....

I hope to do it again a 3rd and 4th time if relevant! Wishing Cary
would do his own book on attacking stuff via the most recent tools
that Oracle has available ... not that there is anything incorrect
about the Method R approach!

Reply With Quote
  #8  
Old   
dba cjb
 
Posts: n/a

Default Re: top down approach to reducing io from awr report - 08-23-2011 , 03:54 AM



On Aug 22, 8:50*pm, John Hurley <hurleyjo... (AT) yahoo (DOT) com> wrote:
Quote:
Mladen:

# I agree, it was just a tongue in cheek remark.

...

No harm no foul! *Looking forward to Cary's presentation at OOW 2011
myself.

# I can wholeheartedly recommend reading Cary Millsap's book myself,
only John did that twice, > in a very short period of time.

...

I hope to do it again a 3rd and 4th time if relevant! *Wishing Cary
would do his own book on attacking stuff via the most recent tools
that Oracle has available ... not that there is anything incorrect
about the Method R approach!
thanks to all for your input
/ the next step in my education begins!


Chris B

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.