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: STATSPACK and sppurge.sql

Re: STATSPACK and sppurge.sql

From: Bunyamin Karadeniz <bunyamink_at_havelsan.com.tr>
Date: Tue, 09 Jul 2002 00:43:20 -0800
Message-ID: <F001.004920D8.20020709004320@fatcity.com>


I changed the sppurge.sql and written a line to use my largest RBS when deleting.
And then deleting 500 snaps lasts only 10 minutes in my db. And I also can advise you to replace DELETE with TRUNCATE in sppurge.sql.

Bunyamin Karadeniz
Oracle DBA
Havelsan A.S. Eskisehir yolu 7.km
Ankara / Turkey
Tel : +90 535 3357729

> Jesse - I'm doing this from memory, so I may be off a little. Look at the
> table STATS$SNAPSHOT. Records in this table are related to the other
tables
> that are populated each time a snapshot occurs (the magic of
relationships).
> If you delete a row from this table, rows in the other tables are
> automatically deleted. Since deleting statistics is a low-risk proposition
> for most of us, give it a try. Start by deleting 10 rows to start with,
> because deleting is SLOOOW!! As I recall, deleting a 100 snapshots may
take
> 30 minutes. Anyway, this is the best way I've found to delete STATSPACK
> statistics.
>
> Dennis Williams
> DBA, 20% OCP
> Lifetouch, Inc.
> dwilliams_at_lifetouch.com
>
>
> -----Original Message-----
> Sent: Monday, July 08, 2002 3:25 PM
> To: Multiple recipients of list ORACLE-L
>
>
> Hi all,
>
> I'm going to (finally!) be implementing STATSPACK on our 8.1.7.2.0 DB.
The
> thing that kills me is all the junk that "?/rdbms/admin/sppurge.sql"
leaves
> behind! Is there any harm in deleting the rows from these tables:
>
> select table_name
> from user_tab_columns
> where column_name = 'SNAP_ID';
>
> ...where the SNAP_ID is in the range I want to delete?
>
> I've seen a few messages in the archives that dealt with this, but none I
> found were comprehensive in their deletes. Or am I just being too
> aggressive with this?
>
> TIA!
>
> Rich Jesse System/Database Administrator
> Rich.Jesse_at_qtiworld.com Quad/Tech International, Sussex, WI
USA
>
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> --
> Author: Jesse, Rich
> INET: Rich.Jesse_at_qtiworld.com
>
> Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
> San Diego, California -- Public Internet access / Mailing Lists
> --------------------------------------------------------------------
> 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).
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> --
> Author: DENNIS WILLIAMS
> INET: DWILLIAMS_at_LIFETOUCH.COM
>
> Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
> San Diego, California -- Public Internet access / Mailing Lists
> --------------------------------------------------------------------
> 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).

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Bunyamin Karadeniz
  INET: bunyamink_at_havelsan.com.tr

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
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 Tue Jul 09 2002 - 03:43:20 CDT

Original text of this message

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