达梦数据库如何找出未提交的SQL?
可以找出已执行还没有提交的事物。
selectt1.sql_text,t1.state ,t1.trx_idfromv$sessions t1,v$trx t2wheret1.trx_id=t2.idand t1.state ='IDLE'and t2.status='ACTIVE';