Requires Free Membership to View
SELECT sq.sql_text FROM v$session se, v$sql sq WHERE se.sql_address = sq.address AND se.sql_hash_value = sq.hash_value AND se.session_id = 123;The above example will return the SQL statement currently being executed by the session with identifier 123. You can modify this query for your specific needs.
This was first published in November 2005

Join the conversationComment
Share
Comments
Results
Contribute to the conversation