Quantcast
Channel: dBforums – Everything on Databases, Design, Developers and Administrators
Viewing all articles
Browse latest Browse all 13329

Cursor: Pin S Wait on X

$
0
0
Hi all,

Please find below how do I get list of queries that caused "Cursor: Pin S Wait on X" on database.

Now how do I get list of only the top wait for these queries?

Quote:

select distinct j1.sql_id, j1.sql_text from v$sql j1,
(
select distinct t1.sql_id
from V$ACTIVE_SESSION_HISTORY t1,
(
select distinct mutex_identifier
from V$MUTEX_SLEEP_HISTORY where trunc(sleep_timestamp) = trunc(sysdate)
) t2
where t1.p1 = t2.mutex_identifier
) j2
where j1.sql_id = j2.sql_id

Viewing all articles
Browse latest Browse all 13329

Trending Articles