Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/sql/77.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/oracle/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Sql 查看在oracle上运行的参数化查询_Sql_Oracle_Parameters_Oracle11g - Fatal编程技术网

Sql 查看在oracle上运行的参数化查询

Sql 查看在oracle上运行的参数化查询,sql,oracle,parameters,oracle11g,Sql,Oracle,Parameters,Oracle11g,我想查看在oracle数据库上执行的参数化update、select和delete语句 我可以通过运行以下命令查看查询: select * from v$sqlarea where parsing_schema_name = 'SCHEMA_NAME' order by last_active_time desc 但我还想在SQL_文本列中查看SQL随附的参数。有办法做到这一点吗?如果参数化是指绑定变量,则需要V$SQL\u bind\u CAPTURE。通过在V$SQLAREA中找到的SQ

我想查看在oracle数据库上执行的参数化update、select和delete语句

我可以通过运行以下命令查看查询:

select * from v$sqlarea where parsing_schema_name = 'SCHEMA_NAME' order by last_active_time desc 

但我还想在SQL_文本列中查看SQL随附的参数。有办法做到这一点吗?

如果参数化是指绑定变量,则需要
V$SQL\u bind\u CAPTURE
。通过在
V$SQLAREA
中找到的
SQL\u ID
搜索它


每一行代表一个由位置捕获的变量,因此您必须将其与查询中的名称匹配。

如果参数化是指绑定变量,则需要
V$SQL\u bind\u CAPTURE
。通过在
V$SQLAREA
中找到的
SQL\u ID
搜索它

每一行代表一个由position捕获的变量,因此您必须将其与查询中的名称相匹配