By submitting your email address, you agree to receive emails regarding relevant topic offers from TechTarget and its partners. You can withdraw your consent at any time. Contact TechTarget at 275 Grove Street, Newton, MA.
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.
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.