December 2002
Intermediate to advanced
928 pages
85h 29m
English
To remove snapshot data collected by Statspack from the database, use the SPPURGE.SQL script. If you run this script interactively in SQL*Plus, you will get a list of the existing snapshots and then be prompted for the lowest snapshot number and the highest snapshot number, which will mark the boundaries of the snapshots deleted. You can also define values for the variables LOSNAPID and HISNAPID and run the script in batch mode.
To remove all snapshot statistics from the database, use the SPTRUNC.SQL script.