SQL Query to view sql of a session
SELECT
T.sql_text
FROM
v$session S,
v$sqltext_with_newlines T
WHERE
S.sid = &sid
AND S.serial# = &serial
AND S.sql_address = T.address
AND S.sql_hash_value = T.hash_value
ORDER BY T.piece
/
Replace v$session with gv$session if the database is running on RAC configuration.
cheers,
Ram.



[...] here to extract the sql being executed by a concurrent [...]
SQL Query to list running concurrent requests « OraclePitStop - Lets share some knowledge
September 5, 2008