Database Tuning (MOSC)

MOSC Banner

If I have to find history all the sqls executed from a particular host in 10g, what should be the qu

edited Dec 22, 2014 5:44AM in Database Tuning (MOSC) 4 commentsAnswered

11g has new columns added to dba_hist_active_sess_history "machine" , "port" with which we can find history of all sql_ids executed.

If I have to get such details in 10g, what would be the alternative query.

Below query did not solve my purpose.

select snap_id, sql_id,CLIENT_ID,PROGRAM,MODULE from dba_hist_active_sess_history where (client_id not like 'SYSMAN%' and client_id is not null) and rownum<10;

Any suggestions.

Thanks,

Rashmi

Tagged:

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