Oracle: How to find out if there is a transaction pending?

后端 未结 7 1881
太阳男子
太阳男子 2020-11-28 04:34

I\'m looking for a way to find out if there are uncommited INSERT, UPDATE or DELETE statements in the current session. One way would be to check v$lock with the current sid,

7条回答
  •  广开言路
    2020-11-28 05:06

    SELECT * FROM V$TRANSACTION
    WHERE STATUS='ACTIVE';
    

    See: http://forums.oracle.com/forums/thread.jspa?threadID=691061

提交回复
热议问题