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!

Finding Osuser from v$active_session_history

533463Sep 13 2006 — edited Sep 13 2006
Hi!
I am trying to track down the Osuser from the view V$active_session_history. The trouble is that this view provides the session_id and session_serial# values but no Osuser. I tried using the values of session_id and session_serial# against the v$session view. But I can never be sure that it is the same user. The same problem I experience with using sql_id for the relevant sql statement.
Life would have been so much easier if they had provided sql_text and osuser columns.

Also am I mistaken in thinking that the combination of sid and serial# can be reused as with sql_id.

Has anyone worked on a solution towards mining osuser information related to costly queries/slow response queries either through v$active_session_history or for the perfstat tables (stats$...).

Thanks
Aniruddha
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 11 2006
Added on Sep 13 2006
1 comment
694 views