We have application id ( assume APP_ID ) to connect to database and use dbms_session.set_context() to set the actual logged on user ( ex:user1,user2) for VPD.
For performance issues in queries, we want to identify the user running it ( user1, user2). Is there any way to get dbms_session.get_context() of a connection by supplying the sid?
- Assume DBA can run it.
- I want to dump the actual userid from the context and its connection id (sid)
- Oracle database
I know that application login or dba tracing or a procedure to log information can be created... I just want to know, is there any out of the box way?