Oracle Database Appliance (ODA) (MOSC)

MOSC Banner

rac gv$session tracking down osuser's SQL_ID's

edited Jul 1, 2020 5:05AM in Oracle Database Appliance (ODA) (MOSC) 2 commentsAnswered

Hi MOSC,

Given this query and result:

select distinct osuser, username, schemaname from gv$session order by 1;

Result:

elwright TEMPOREAD HELXXXXX


( The result was only temporary, if we run that query today it returns no rows for "elwright" as they have disconnected.)

We are trying to find the SQL_ID's that osuser "elwright" ran via username "TEMPOREAD".
A problem is that many connections use the login/username "TEMPOREAD" to query schemaname, HELXXXXX, in the ODA db.

And as such we get 1000+ SQL_ID's for TEMPOREAD and can't pin-point the one that osuser "elwright" ran.

We found "elwright" in DBA_AUDIT_SESSION with SESSIONID = 93318728

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