select
a.value commits,
b.value rollbacks,
to_char(b.value * 100/ (a.value + b.value), '90.99') || '%' rollbacks_rate
from
(
select name, value
from v$sysstat where name = 'user commits'
) a
,
(
select name, value from v$sysstat
where name = 'transaction rollbacks'
) b
/
a.value commits,
b.value rollbacks,
to_char(b.value * 100/ (a.value + b.value), '90.99') || '%' rollbacks_rate
from
(
select name, value
from v$sysstat where name = 'user commits'
) a
,
(
select name, value from v$sysstat
where name = 'transaction rollbacks'
) b
/
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/22558114/viewspace-1097793/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/22558114/viewspace-1097793/