RE: db file scattered read

  • From: Wolfson Larry - lwolfs <lawrence.wolfson@xxxxxxxxxx>
  • To: "'oracle-l@xxxxxxxxxxxxx'" <oracle-l@xxxxxxxxxxxxx>
  • Date: Fri, 6 Aug 2004 21:14:09 -0500

Table monitoring causes SMON to populate DBA_TAB_MODIFICATIONS every 15
minutes in 9
8i it's every 3 hours.  You get information on
inserts,updates,deletes,truncates

        OR in 9

EXECUTE DBMS_STATS.FLUSH_DATABASE_MONITORING_INFO;

        like
 
POP1 07-AUG-2004 02:32:45
 
 OWNER   TABLE_NAME                      INSERTS      UPDATES   DELETES TRU
TIME
-------- ----------------------------- --------- ------------ --------- ---
--------------------
XXXUSER  ACXSTATS                         22,325            0         0 NO
06-AUG-2004 20:03:44
XXXUSER  ADDRESS                          86,152       11,699       280 NO
07-AUG-2004 02:32:45
XXXUSER  APPOINTMENT                       5,254          475         0 NO
07-AUG-2004 01:58:03

        or
        
 SELECT 'TABLES THAT HAVE DELETES > 1000:' FROM DUAL;

        Or Just for Truncates

  1  SELECT TABLE_OWNER
  2        ,TABLE_NAME
  3        ,INSERTS
  4        ,UPDATES
  5        ,DELETES
  6        ,TRUNCATED
  7        ,TO_CHAR(TIMESTAMP,'DD-MON-YYYY HH24:MI:SS') TIME
  8  FROM DBA_TAB_MODIFICATIONS
  9    WHERE TRUNCATED = 'YES'
 10  --AND TABLE_OWNER LIKE UPPER('%&Schema_owner')

        Larry

-----Original Message-----
From: oracle-l-bounce@xxxxxxxxxxxxx
[mailto:oracle-l-bounce@xxxxxxxxxxxxx]On Behalf Of Justin Cave
Sent: Friday, August 06, 2004 9:22 PM
To: oracle-l@xxxxxxxxxxxxx
Subject: RE: db file scattered read


I believe that MONITORING instructs Oracle to keep a rough count of the
number of rows in a table that have changed since the last time statistics
were gathered, so that when you gather statistics next, if you specify
GATHER STALE, Oracle will know which tables it actually needs to gather
statistics on.  I don't believe that MONITORING instructs Oracle to update
the statistics automatically.


Justin Cave
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC

-----Original Message-----
From: oracle-l-bounce@xxxxxxxxxxxxx [mailto:oracle-l-bounce@xxxxxxxxxxxxx]
On Behalf Of Mladen Gogala
Sent: Friday, August 06, 2004 8:01 PM
To: oracle-l@xxxxxxxxxxxxx
Subject: Re: db file scattered read


On 08/06/2004 08:19:49 PM, Lyndon Tiu wrote:
> 
> I have to analyze manually all the time?

In 9i you sen set table to "MONITORING", and Oracle will collect statistics
automatically. In 9i you can set dynamic sampling to 4 and Oracle will
collect statistics during parse.

--
Mladen Gogala
Oracle DBA
----------------------------------------------------------------
Please see the official ORACLE-L FAQ: http://www.orafaq.com
----------------------------------------------------------------
To unsubscribe send email to:  oracle-l-request@xxxxxxxxxxxxx put
'unsubscribe' in the subject line.
--
Archives are at //www.freelists.org/archives/oracle-l/
FAQ is at //www.freelists.org/help/fom-serve/cache/1.html
-----------------------------------------------------------------




----------------------------------------------------------------
Please see the official ORACLE-L FAQ: http://www.orafaq.com
----------------------------------------------------------------
To unsubscribe send email to:  oracle-l-request@xxxxxxxxxxxxx
put 'unsubscribe' in the subject line.
--
Archives are at //www.freelists.org/archives/oracle-l/
FAQ is at //www.freelists.org/help/fom-serve/cache/1.html
-----------------------------------------------------------------


**********************************************************************
The information contained in this communication is
confidential, is intended only for the use of the recipient
named above, and may be legally privileged.
If the reader of this message is not the intended
recipient, you are hereby notified that any dissemination, 
distribution, or copying of this communication is strictly
prohibited.
If you have received this communication in error,
please re-send this communication to the sender and
delete the original message or any copy of it from your
computer system. Thank You.

----------------------------------------------------------------
Please see the official ORACLE-L FAQ: http://www.orafaq.com
----------------------------------------------------------------
To unsubscribe send email to:  oracle-l-request@xxxxxxxxxxxxx
put 'unsubscribe' in the subject line.
--
Archives are at //www.freelists.org/archives/oracle-l/
FAQ is at //www.freelists.org/help/fom-serve/cache/1.html
-----------------------------------------------------------------

Other related posts: