I am aware I can SELECT sql_text FROM v$sql
to get the query but this is not the actual query being run since it still contains variables.
For instance it returns
SELECT H.TYPE, H.STATUS, L.FLAG_2, L.QTY_ORDERED
FROM ODH H, ODL L
WHERE H.ORDER_NUMBER = L.ORDER_NUMBER
AND L.ORDER_NUMBER = :B2
AND L.ORDER_LINE = :B1
AND ROWNUM = 1
Is there a way to see the actual query that is being run so that I can determine what values being passed into the query?