我知道我可以SELECT sql_text FROM v$sql
获取查询,但这不是正在运行的实际查询,因为它仍然包含变量。
例如它返回
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
有没有办法查看正在运行的实际查询,以便我可以确定传递给查询的值?