Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

how to know sql_id knowing sql_id and serial

Luis AlvaraezMay 21 2015 — edited May 22 2015

Hi,

I would like to extract sql_id knowing sql_id and serial but with these select sql_id is empy!

Someone could help me please

select sample_time,session_id,session_serial#,sql_id,temp_space_allocated/1024/1024 temp_mb,

temp_space_allocated/1024/1024-lag(temp_space_allocated/1024/1024,1,0) over (order by sample_time) as temp_diff

from dba_hist_active_sess_history

--from v$active_session_history

where

session_id=xxxxxx

and session_serial#=yyyyyy

order by sample_time asc

/

REsult:

20/05/2015 23:09:42,169xxxxxyyyyyy

Thanks

This post has been answered by Hemant K Chitale on May 21 2015
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 19 2015
Added on May 21 2015
6 comments
1,705 views