This article provides guidance on creating and scheduling essential maintenance tasks for Snow Commander databases hosted in AWS RDS to ensure consistent and optimal performance. The steps outlined help prevent performance degradation and reduce risks of database corruption.
Create the index defragmentation task
Over time, database indices become fragmented, leading to slower read/write operations. This task sets up an agent job to defragment indices and maintain performance:
- Download and review the queries included in the zip file attached to this article.
- Run these queries against the Commander database in the following sequence:
CommandLog.sqlCommandExecute.sqlIndexOptimize.sql
These create tables and a stored procedure to schedule defragmentation.
- In Object Explorer, expand SQL Server Agent.
- Right-click Jobs and select New Job…
- On the General page, provide the Name Defrag Commander DB.
- Switch to the Steps page and click New…
- Enter the Step Name Execute Command.
- Set Type to Transact-SQL script (T-SQL).
- Set the database to the Commander database.
- Enter the following command (replace
commanderwith your database name), then click OK:EXECUTE [dbo].[IndexOptimize] @Databases = 'commander', @LogToTable = 'Y', @TimeLimit = '3600', @UpdateStatistics = 'ALL' - Switch to the Schedules page and configure a recurring schedule. Flexera recommends running this weekly during periods of low activity.
- Optionally, configure notifications under the Notifications page, such as writing to the Windows Application event log on failure or other preferred options.
- Click OK.
Create the database corruption detection task
Adding a database integrity check protects against operating with corrupted data. Flexera recommends running these checks during maintenance windows because they are resource-intensive:
- In Object Explorer, expand SQL Server Agent.
- Right-click Jobs and select New Job…
- On the General page, provide the Name Commander DB Corruption Check.
- Switch to the Steps page and click New…
- Enter the Step Name Execute Command.
- Set Type to Transact-SQL script (T-SQL).
- Set the database to the Commander database.
- Enter the following command (replace
commanderwith your database name), then click OK:DBCC CHECKDB ('vcommander') WITH NO_INFOMSGS, ALL_ERRORMSGS; - Switch to the Schedules page and set it up for a maintenance window.
- Configure notifications under Notifications, such as writing to the Windows Application event log on failure or setting other options as needed.
- Click OK.
Related Articles
Plan Microsoft SQL database maintenance for Snow Commander 26Number of Views Submitting Snow Commander diagnostics 140Number of Views Configuring Azure AD for SSO with Snow Commander 34Number of Views Resolve Snow Commander installation or upgrade failures 744Number of Views Add Azure public images to Snow Commander 14Number of Views
Hi, I am Reva - Ask me anything.
No new updates
Thanks for the feedback!
Your feedback has been saved.Rate this response:
Add Additional feedback ( Optional )
Are you sure you want to cancel
the case creation?
Are you sure you want to cancel the case creation?
Are you sure you want to close this case
| Products | Region | Phone Numbers |
|---|---|---|
| FlexNet Operations FlexNet Embedded FlexNet Publisher FlexNet Connect FlexNet Code Insight InstallAnywhere InstallShield |
North America * |
+1 630-332-2513 (toll) +1 877-279-2853 (toll-free in North America) |
| Europe * |
+44 1925 944367 (toll) +44 800 047 8642 (toll-free in Europe) |
|
| Japan * | +81 3-4540-5335 (select option 2) | |
| Australia * |
+61 3 9895 2177 +61 1800 560 603 (toll-free in Australia) |
|
|
Usage Intelligence (formerly
Revulytics) Compliance Intelligence |
Please use the Case Portal to submit your support ticket or reach out to your Revenera contact. | |
Revenera Assistant
Case id: 00001065
Activity: Status change: 2 hours ago