Joining information in v$sql and v$session
Hello
I know how to join v$sql and v$session for getting information about the currently executed statement. However I would like to get more historical information:
- I found an interesting query in v$sql. Is there a way to find out which session has executed this query as last?
- And the other way around: Is there a way to find out for an entry in v$session which was the query it executed as last?
Thanks,
Thomas