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: db file scattered read

RE: db file scattered read

From: Wolfson Larry - lwolfs <lawrence.wolfson_at_acxiom.com>
Date: Fri, 6 Aug 2004 21:14:09 -0500
Message-ID: <433A07749711884D8032B6A0AB115262C2BD06@conmsx07.corp.acxiom.net>


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_at_freelists.org
[mailto:oracle-l-bounce_at_freelists.org]On Behalf Of Justin Cave Sent: Friday, August 06, 2004 9:22 PM
To: oracle-l_at_freelists.org
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_at_freelists.org [mailto:oracle-l-bounce_at_freelists.org] On Behalf Of Mladen Gogala
Sent: Friday, August 06, 2004 8:01 PM
To: oracle-l_at_freelists.org
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_at_freelists.org put
'unsubscribe' in the subject line.
--
Archives are at http://www.freelists.org/archives/oracle-l/
FAQ is at http://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_at_freelists.org
put 'unsubscribe' in the subject line.
--
Archives are at http://www.freelists.org/archives/oracle-l/
FAQ is at http://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_at_freelists.org
put 'unsubscribe' in the subject line.
--
Archives are at http://www.freelists.org/archives/oracle-l/
FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html
-----------------------------------------------------------------
Received on Fri Aug 06 2004 - 21:35:51 CDT

Original text of this message

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