|
楼主 |
发表于 2016-12-24 23:51:56
|
显示全部楼层
因为折行的厉害,下面能贴出'user rollbacks', 'transaction rollbacks'的比较
SQL> select name, value from v$sysstat where name in ('user rollbacks', 'transaction rollbacks');
NAME VALUE
-----------------------------------------------------------------------------
user rollbacks 4622267
transaction rollbacks 215
transaction rollbacks才是比较真实的数据吧
user rollback 有些文章说是因为用户或者应用程序无意义了执行了 rollback命令,也会导致user rollback+1
而transaction rollbacks+1 ,则产生真实的回滚
我执行过
select * from v$sesstat st,v$statname sn where st.statistic#=sn.statistic# and sn.name in ('user rollbacks') order by value desc
结果有105行,都是以下类似的内容:
多个SID都是应用程序的连接,结合上面的,能不能说,就是应用程序上有大量的无意义的rollback命令造成?
SID STATISTIC# VALUE STATISTIC# NAME CLASS STAT_ID
---------- ---------- ---------- ----------
15 7 1055 7 user rollbacks 1 3671147913
1664 7 1055 7 user rollbacks 1 3671147913
1118 7 1054 7 user rollbacks 1 3671147913
1938 7 1053 7 user rollbacks 1 3671147913
842 7 1052 7 user rollbacks 1 3671147913
1661 7 1052 7 user rollbacks 1 3671147913
566 7 1050 7 user rollbacks 1 3671147913
1117 7 1049 7 user rollbacks 1 3671147913
|
|