Script to identify users generating more redo
Posted by Pavan DBA on February 7, 2012
Many a times we would need to know the users who are causing more redo generation. Hope the following script will help us from now onwards
col machine for a15
col username for a10
col redo_MB for 999G990 heading “Redo |Size MB”
column sid_serial for a13;
select b.inst_id,
lpad((b.SID || ‘,’ || lpad(b.serial#,5)),11) sid_serial,
b.username,
machine,
b.osuser,
b.status,
a.redo_mb
from (select n.inst_id, sid,
round(value/1024/1024) redo_mb
from gv$statname n, gv$sesstat s
where n.inst_id=s.inst_id
and n.name = ‘redo size’
and s.statistic# = n.statistic#
order by value desc
) a,
gv$session b
where b.inst_id=a.inst_id and a.sid = b.sid and rownum <= 10 and b.username is not null;
This entry was posted on February 7, 2012 at 3:43 PM and is filed under Administration, Scripts. Tagged: how to identify users causing more redo generation, script for more redo, Script to identify users generating more redo, script to identify whcih users are generating more redo, users causing more redo generation, users generating more redo, users generating more redo script, users with high redo generation. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
Leave a Reply