Subject: Query against V$SESSION hangs on 10g RAC systems 2007-11-01 - By Dean
Back We recently had a locking/blocking problem on two different 10.2.0.3 RAC systems. I ran a query similar to below to get more information:
select sid, serial#, program, module, action, username, osuser,
sql_hash_value, machine, event, blocking_session
from v$session
where status='ACTIVE';
About 1 out of 5 times this query hangs. When it hangs, it waits for exactly 60 seconds on "DIAG idle wait" and then returns the result set. If I remove the blocking_session column, this query runs fine and never hangs. Has anyone run into this or have any ideas why this would happen?
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft -com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http: //www.w3.org/TR/REC-html40">
<head> <meta http-equiv=Content-Type content="text/html; charset=us-ascii"> <meta name=Generator content="Microsoft Word 11 (filtered medium)"> <style> <!-- /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0in; margin-bottom:.0001pt; font-size:12.0pt; font-family:"Times New Roman";} a:link, span.MsoHyperlink {color:blue; text-decoration:underline;} a:visited, span.MsoHyperlinkFollowed {color:purple; text-decoration:underline;} span.EmailStyle17 {mso-style-type:personal-compose; font-family:Arial; color:windowtext;} @(protected) Section1 {size:8.5in 11.0in; margin:1.0in 1.25in 1.0in 1.25in;} div.Section1 {page:Section1;} --> </style>
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'>We recently had a locking/blocking problem on two different 10.2.0.3 RAC systems. I ran a query similar to below to get more information:<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"> <span style='font-size:10.0pt;font-family:"Courier New"'>select sid, serial#, program, module, action, username, osuser,<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"> <span style='font-size:10.0pt;font-family:"Courier New"'>sql_hash_value, machine, event, blocking_session <o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"> <span style='font-size:10.0pt;font-family:"Courier New"'>from v$session <o:p></o:p>< /span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"> <span style='font-size:10.0pt;font-family:"Courier New"'>where status='ACTIVE';<o:p>< /o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"> <span style='font-size:10.0pt;font-family:"Courier New"'><o:p> </o:p></span>< /font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>About 1 out of 5 times this query hangs. When it hangs, it waits for exactly 60 seconds on “DIAG idle wait” and then returns the result set. If I remove the blocking_session column, this query runs fine and never hangs. Has anyone run into this or have any ideas why this would happen?<o:p></o:p></span></font> </p>
</div>
</body>
</html>
|
|