Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: STATSPACK and sppurge.sql
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).
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 Mon Jul 08 2002 - 17:34:11 CDT
![]() |
![]() |