Identify performance for a query manually i.e. without STATPACK, AWR, ADDM etc. [message #582585] |
Fri, 19 April 2013 13:38 |
Manoj.Gupta.91
Messages: 239 Registered: March 2008 Location: Delhi
|
Senior Member |
|
|
Hi All,
I was asked a question which I'm unable to figure it correctly. Please help me.
Question : We have executed a query in database which is running from long time. Usually it does not take so long. What could be the possible reason behind poor performance. And we also want to find out how many logical reads, physical reads, IO, Hard Parsing, Soft Parsing etc. have been done for that SQL. Any wait events etc. i.e. every information we have to find out.
Note : We do not have access to STATPACK, AWR, ADDM reports. We have to figure it out using SQL * Plus tool and data dictionaries.
Can you please help me to find out a solutions for this scenario.
Thanks & Regards
Manoj
|
|
|
|
Re: Identify performance for a query manually i.e. without STATPACK, AWR, ADDM etc. [message #582589 is a reply to message #582586] |
Fri, 19 April 2013 14:01 |
Manoj.Gupta.91
Messages: 239 Registered: March 2008 Location: Delhi
|
Senior Member |
|
|
Hi,
We can find out this information in these views when query is executing or query has finished execution ?
According to Oracle Docs
V$SQLAREA lists statistics on shared SQL area and contains one row per SQL string. It provides statistics on SQL statements that are in memory, parsed, and ready for execution.
Eg.
PARSE_CALLS
DISK_READS
DIRECT_WRITES
BUFFER_GETS
It means all this information is estimated.
How to find out the performance issue in a procedure then which is running for a long time and we do not have access to STATPACK, AWR, ADDM reports?
Thanks & Regards
Manoj
[Updated on: Fri, 19 April 2013 14:09] Report message to a moderator
|
|
|
|
Re: Identify performance for a query manually i.e. without STATPACK, AWR, ADDM etc. [message #582611 is a reply to message #582585] |
Sat, 20 April 2013 02:33 |
Manoj.Gupta.91
Messages: 239 Registered: March 2008 Location: Delhi
|
Senior Member |
|
|
Hi,
I mean V$SQLAREA description on oracle documentation says that it lists statistics on shared SQL area and contains one row per SQL string. It provides statistics on SQL statements that are in memory, parsed, and ready for execution.
Ready for execution that means not yet executed. So my question is let us say for a query BUFFER_GETS were 99 but when that query actually executed then few blocks were not present in buffer cache and actual BUFFER_GETS is not 95 is it possible?
Thanks & Regards
Manoj
|
|
|
|
|
|
|
|
|
|
|