像:1或者:B1在sql_text中是变量的意思,跟我们在pl/sql中使用select * from v$sql where runtime_mem=&1 语句中&1是一个意思。在sql执行前要编译,如果采用绑定变量这种方式处理,类似的sql不需要在编译,直接执行就可以了。不清楚可以看看oracle方面的书籍。
谢几位解答,我知道代表一个参数变量,我是说 :1 这个具体的代表的值能在oracle里监视到吗?
select s.sql_text, b.name,b.position,b.dup_position, b.value_string from v$sql s, v$sql_bind_capture b where s.hash_value=b.hash_value;
看具体的值 print l
s.sql_text,
b.name,b.position,b.dup_position,
b.value_string
from v$sql s, v$sql_bind_capture b
where s.hash_value=b.hash_value;