Database Tuning (MOSC)

MOSC Banner

Missing of SQL_ID in v$active_session_history

edited Dec 17, 2019 10:36PM in Database Tuning (MOSC) 2 commentsAnswered ✓

Hello!

my Oracle database  is 11.2.0.4(Linux)

Can You please explain, how to investigate the reason(s) of missing of SQL_ID (in my case this is the line with execution count =2451) ?

SELECT count(*) , ash.SQL_ID

       FROM v$active_session_history ash , dba_users u

    WHERE u.user_id=ash.user_id and  ash.sample_time BETWEEN

     to_date('17-DEC-2019 13:00:00','DD-MON-YYYY HH24:MI:SS') and

     to_date('17-DEC-2019 13:50:10','DD-MON-YYYY HH24:MI:SS') and u.username ='USER'  group by ash.SQL_ID order by 1;

count(*)  SQL_ID

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

1           sqlid1

100       sqlid2

2451

regards,

Paul

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center