By submitting your personal information, you agree that TechTarget and its partners may contact you regarding relevant content, products and special offers.
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.
Dig Deeper on Oracle and SQL
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.