dbms_sqltune.extract_bind查询绑定变量的值

select dbms_sqltune.extract_bind(bind_data, 1).value_string
|| '-2.-' || dbms_sqltune.extract_bind(bind_data, 2).value_string
 || '-3.-' || dbms_sqltune.extract_bind(bind_data, 3).value_string
  || '-4.-' || dbms_sqltune.extract_bind(bind_data, 4).value_string
  || '-5.-' || dbms_sqltune.extract_bind(bind_data, 5).value_string
   || '-6.-' || dbms_sqltune.extract_bind(bind_data, 6).value_string
  from sys.wrh$_sqlstat
 where sql_id = 'gyb9jvyu47f73'

你可能感兴趣的:(sql,String)