Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: Can't find the sql text from v$sql via the hash value
Try event 10046 tracing.
as mentioned earlier in a oracle-l thread not all SQL statements are present in the shared pool.
Regards
Joseph
eagle fan <eagle.f_at_gmail.com> wrote:
hi:
When database hang, I got the sql hash value from v$session_wait view.
Then I wanted to find the sql_text from v$sql. But I can't find it there.
SQL> select sql_text from stats$sql_summary where hash_value=750036270; no rows selected
But I can find the sql_text from v$open_cursor. And the sql text is like this:
SQL> select distinct sql_text from v$open_cursor where hash_value=750036270; SQL_TEXT
3918
--
Eagle Fan
Oracle DBA
--
http://www.freelists.org/webpage/oracle-l
Received on Sat Jun 17 2006 - 20:17:45 CDT
![]() |
![]() |