Purpose
This article provides steps to purge a large database in Shavlik Protect when there is limited drive space or for maintenance purposes.
Resolution
To purge the database of old data (clean up):
- Launch Protect.
- Navigate to Tools> Database Maintenance.
- Change the Delete results older than (days) or max results to keep to the desired amount.
- Click Run Now.
- Wait approximately 15 minutes to allow time deletion of old results to take place.
- Launch the SQL Management Studio.
- Expand Databases.
- Right-click your ShavlikScans database and click Properties.
- Click Options.
- Change the Recovery Model from Full to Simple.
- Click OK.
- Right-click the ShavlikScans database again and click Tasks.
- Click Shrink> Files.
- Change the File type to log.
- Under Shrink Action, click Reorganize pages before releasing unused space and set the Shrink file to field to 0.
- Click OK. This truncates the transaction log to 0 bytes.
- (Optional) Repeat Steps 8 through 10 and reset the Recovery model to Full.
- Right-click the ShavlikScans database again and click Tasks.
- Click Shrink> Database and click OK.
- Wait for the shrink operation to complete. In case of large databases, it may take a long time to complete.
Products
Shavlik Protect 9.x
vCenter Protect 8.x