oracle 查询DB事务

前端之家收集整理的这篇文章主要介绍了oracle 查询DB事务前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
select sql_TEXT from v$sql,v$transaction where LAST_ACTIVE_TIME=START_DATE
看看是哪个sql 运行后,事物没有提交


select * from v$transaction


select sess.sid,
sess.serial#,
lo.oracle_username,
lo.os_user_name,
ao.object_name,
lo.locked_mode
from v$locked_object lo,
dba_objects ao,
v$session sess
where ao.object_id = lo.object_id and lo.session_id = sess.sid;

-- DB 事务,session的设置情况
select * from v$resource_limit where resource_name in ('processes','sessions','transactions');
原文链接:https://www.f2er.com/oracle/211159.html

猜你在找的Oracle相关文章