|
|
|
|
|
|
|
|
|
|
Re: Reducing Hard parses [message #529905 is a reply to message #529879] |
Thu, 03 November 2011 09:51   |
 |
Rags123
Messages: 39 Registered: July 2011 Location: United Kingdom
|
Member |
|
|
Hi John,
I dont know if hard parsing is the problem. And I want to validate if that is the problem before we think of solving it.
From the AWR report, I am aware that there is heavy hard parse that happens in our db (around 150 per second)
As per time model statistics %db of hard parse is 5.67.
Lnossov,
I executed the query and just posting the first 2 rows.
ayyfcu5tq5zkg 201
8u1c0csm9ungb 189
[Updated on: Thu, 03 November 2011 09:53] Report message to a moderator
|
|
|
|
|
|
Re: Reducing Hard parses [message #529946 is a reply to message #529928] |
Thu, 03 November 2011 11:52   |
 |
Rags123
Messages: 39 Registered: July 2011 Location: United Kingdom
|
Member |
|
|
Hi LNossov,
Yes of course I would want to improve things if possible.
I checked the V$sql_Shared_Cursor for the top 10 SQLs. For majority them the reason is INCOMPLETE_CURSOR. I googled about it and got to know it means "Cursor is incomplete: typecheck heap came from call memory" but couldnt quite catch that!
[Updated on: Thu, 03 November 2011 12:01] Report message to a moderator
|
|
|
|
|
|
|
|
|
Re: Reducing Hard parses [message #529968 is a reply to message #529963] |
Thu, 03 November 2011 13:19   |
 |
Michel Cadot
Messages: 68758 Registered: March 2007 Location: Saint-Maur, France, https...
|
Senior Member Account Moderator |
|
|
Quote:You can think once more about parameter setting cursor_sharing=force.
Just search search for "cursor_sharing force" on Metalink bug database and you will more
than one hundred bugs with database crash, wrong result and so forth.
Never use it. It is better to have bad performances than to have wrong results.
This remember me one of my math teacher which once told us: "I calculate fast but I calculate wrong".
Regards
Michel
[Updated on: Thu, 03 November 2011 13:21] Report message to a moderator
|
|
|
|
|
|
|
|
|
Re: Reducing Hard parses [message #529979 is a reply to message #529976] |
Thu, 03 November 2011 16:18   |
 |
LNossov
Messages: 318 Registered: July 2011 Location: Germany
|
Senior Member |
|
|
It sounds better. You don't want to cancel completely the Oracle feature cursor_sharing anymore.
Let us return to our concrete problem. Rgs123 is using cursor_sharing=similar. From your experiences you should know, that the most of issues with cursor_sharing (practically all of wrong results issues) occur if cursor_sharing <> exact regardless of similar or force value. So, if I suggest to use force instead of similar, I can only improve the situation.
Any objection?
Regards
Leonid
[Updated on: Thu, 03 November 2011 16:42] Report message to a moderator
|
|
|
|
|