Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Oh Where Oh Where Is My Redo Coming From

RE: Oh Where Oh Where Is My Redo Coming From

From: Post, Ethan <Ethan.Post_at_ps.net>
Date: Fri, 21 Feb 2003 09:30:45 -0800
Message-ID: <F001.00554C2E.20030221093045@fatcity.com>


So here are two takes at the problem, one takes a look at costly (in regards to amount of redo) tables and the other indexes. Note this is only a way to guestimate this information.

select owner,

       table_name, 
       round((ratio_to_report(ttl) over ()) * 100, 1) as percent_ratio
  from (
        select (m.inserts+m.deletes+m.updates)*t.avg_row_len ttl, 
		       t.owner, 
		       t.table_name 
          from dba_tables t,
	           all_tab_modifications m
         where t.table_name=m.table_name
           and t.owner=m.table_owner
	    )

 order

    by 3 desc;

select owner,

       table_name, 
       round((ratio_to_report(ttl) over ()) * 100, 1) as percent_ratio
  from (
        select count(*)*sum((m.inserts+m.deletes+m.updates)) ttl, 
		       i.owner, 
		       i.table_name 
          from all_indexes i,
               all_ind_columns c,
	           all_tab_modifications m
         where i.index_name=c.index_name
           and i.table_name=c.table_name
           and i.owner=m.table_owner
           and i.table_name=m.table_name
         group
            by i.owner, 
			   i.table_name 
	    )

 order

    by 3 desc;
--

Please see the official ORACLE-L FAQ: http://www.orafaq.net
--

Author: Post, Ethan
  INET: Ethan.Post_at_ps.net

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Fri Feb 21 2003 - 11:30:45 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US