SQL Performance (MOSC)

MOSC Banner

gv$sql + gv$session

edited Apr 22, 2019 9:07AM in SQL Performance (MOSC) 3 commentsAnswered

Hello All,

I am using a below query to monitor which is on version : 12.2.0.1.0 and RAC.But somehow the results seems to be a bit diff when compared with results of 'monitor sessions'

in sql developer especially the number of sessions for specific module.

Please let me know if there needs to be any modification on the way the query is formed.

SELECT s.inst_id inst_id,

       s.sid sid,

       s.serial# serial#,

       to_char(s.LOGON_TIME,'YYYY-MM-DD HH24:MI:SS') "LOGON_TIME",

       a.module                  module,

       a.action                  action,

       s.username                username,

       TO_CHAR(a.last_active_time, 'YYYY-MM-DD/hh24:mi:ss') last_active_time,

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