use*_*818 11 oracle parameters prepared-statement
我用查询:
select LAST_LOAD_TIME, ELAPSED_TIME, MODULE, SQL_TEXT elasped from v$sql
WHERE MODULE='JDBC Thin Client'
ORDER BY LAST_LOAD_TIME DESC
Run Code Online (Sandbox Code Playgroud)
elasped:
delete from tableA where fk in (select pk from tableB where tableB.fk=:1
and tableB.date between :2 and :3)
Run Code Online (Sandbox Code Playgroud)
是否有可能找到这些参数1,2和3?
a_h*_*ame 15
像这样的东西:
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;
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
12021 次 |
| 最近记录: |