在ibatis中配置sql语句,查询oracle数据库中正在执行的sql语句。sql语句如下: select a.SERVICE_NAME,a.program,b.spid,c.sql_text
from v$session a,v$process b,v$sqlarea c
where a.paddr=b.addr and a.sql_hash_value=c.hash_value
and a.username is not null
但ibatis好像不支持这种格式,总是报错,“There is no READABLE property named 'session a,v' in class '”。是因为from后的视图名不能解析,寻求解决办法。或者还有其他查询的sql吗?
from v$session a,v$process b,v$sqlarea c
where a.paddr=b.addr and a.sql_hash_value=c.hash_value
and a.username is not null
但ibatis好像不支持这种格式,总是报错,“There is no READABLE property named 'session a,v' in class '”。是因为from后的视图名不能解析,寻求解决办法。或者还有其他查询的sql吗?
我要查询oracle中正在运行的sql。这是系统视图v$session a,v$process b,v$sqlarea c
我要查询oracle中正在运行的sql。这是系统视图v$session a,v$process b,v$sqlarea c