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!

ADDMRPT, DBA_HIST_ACTIVE_SESS_HISTORY, DBA_HIST_SQLTEXT

yxes2013Aug 22 2013 — edited Aug 22 2013

HI all,

11.2.0.1

I want to get the SQL TEXT of the blocker program.

Based on the ADDMRPT it mentioned that:

The session with ID 9 and serial number 15 in instance number 1 was the

      blocking session responsible for 100% of this recommendation's benefit.

So I select the row from DBA_HIST_ACTIVE_SESS_HISTORY using:

SQL> select sql_id from dba_hist_active_sess_history where session_id=9 and session_serial#=15;

SQL_ID

-------------

fn3qv2dhsu3nb

Then I selected the row from DBA_HIST_SQLTEXT using:

SQL> select * from dba_hist_sqltext where sql_id='fn3qv2dhsu3nb';

no rows selected

Why is it not found?

Thanks,

zxy

This post has been answered by DK2010 on Aug 22 2013
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 19 2013
Added on Aug 22 2013
7 comments
528 views