Oracle queries executed by a session
问题 I am trying to trace the SQL statements executed against a particular database user. I don't have AUDITING enabled and I am using Oracle 11g. I have the following query : SELECT S.MODULE, SQL_TEXT , S.EXECUTIONS FROM SYS.V_$SQL S, SYS.ALL_USERS U WHERE S.PARSING_USER_ID=U.USER_ID AND UPPER(U.USERNAME) IN ('USERNAME') AND (UPPER(s.MODULE)='APP.EXE') ORDER BY S.LAST_LOAD_TIME But if multiple users running the 'APP.EXE' are connected to the same db user, I am not able to understand which OS user