Oracle
 sql >> Base de Dados >  >> RDS >> Oracle

Como encontrar parâmetros na consulta Oracle recebida do v$sql?


Algo assim:
select s.sql_id, 
       bc.position, 
       bc.value_string, 
       s.last_load_time, 
       bc.last_captured
from v$sql s
  left join v$sql_bind_capture bc 
         on bc.sql_id = s.sql_id 
        and bc.child_number = s.child_number
where s.sql_text like 'delete from tableA where fk%' -- or any other method to identify the SQL statement
order by s.sql_id, bc.position;