rac gv$session tracking down osuser's SQL_ID's
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