...
Your Maintenance Plan (Update statistics) is all set.Save it
Plant Applications Database Purge
Purging the plant applications database should only be done by someone who knows the configuration and business rules of the system very well. Careful investigation and consideration should be done prior to making decisions about what to purge and when to purge. There are many different versions of purge utilities. The following links will bring you to the GE knowledge base articles that describe the purge utility and include downloads of the various versions. Depending on the size of the database, the initial purge could take several hours and should be done offline.
...
Plant Applications Database Purge - Compatible with Plant Apps 5.0, 6.1 & 6.2 | GE Customer Center
SQL Maintenance Recommendations for Plant Applications Database
SQL Maintenance Recommendations for Plant Applications Database based on Ola Hallegren solution.
The attached document is old solution which may be used when #1 can't be deplyed due to e.g. local customer's policy. Please reference the attached document for more information on SQL table fragmentations, SQL Statistics, and SQL Execution Plans.
Solution
Using Ola Hallengren Solution for Index Maintenance
Ola Hallengren's scripts are simple to configure and can be used to optimize SQL Server indexes:
Index Maintenance: The script performs index defragmentation, index rebuilding and update statistics on all indexes in a database.
Index Optimization: The script analyzes index fragmentation and recommends indexes to rebuild or reorganize.
Index Verify: The script performs index verification and reports any corrupted indexes.
By using Ola Hallengren's scripts, you can automate and simplify index maintenance tasks, improve database performance, and ensure the integrity of your indexes.
Below is the Configuration of Maintenance Solution:
CommandLog.sql: Table to log commands
URL to Download: https://ola.hallengren.com/scripts/CommandLog.sql
CommandExecute.sql: Stored procedure to execute and log commands
URL to Download: https://ola.hallengren.com/scripts/CommandExecute.sql
IndexOptimize.sql: Stored procedure to rebuild and reorganize indexes and update statistic
URL to Download: https://ola.hallengren.com/scripts/IndexOptimize.sql
Usage for IndexOptimize Proc: Refer https://ola.hallengren.com/sql-server-index-and-statistics-maintenance.html
One of the Best ways of Index and Statistics Maintenance is having as below:
Update only Modified Statistics on Daily Basis and Log to Table “CommandLog”.
Code Block |
---|
EXECUTE master.dbo.IndexOptimize --
@Databases = 'SOADB', --List of Databases can be passed as CSV String
@FragmentationLow = NULL,
@FragmentationMedium = NULL,
@FragmentationHigh = NULL,
@UpdateStatistics = 'ALL',
@OnlyModifiedStatistics = 'Y',
@LogToTable = 'Y'; |
Index Re-Build and Re-Organize along on Weekly Basis based on the Fragmentation Percentage.
Code Block |
---|
EXECUTE master.dbo.IndexOptimize --
@Databases = 'SOADB',
@FragmentationLow = NULL,
@FragmentationMedium = 'INDEX_REORGANIZE,INDEX_REBUILD_ONLINE,INDEX_REBUILD_OFFLINE',
@FragmentationHigh = 'INDEX_REBUILD_ONLINE,INDEX_REBUILD_OFFLINE',
@FragmentationLevel1 = 5,
@FragmentationLevel2 = 30,
@UpdateStatistics = 'ALL',
@OnlyModifiedStatistics = 'Y',
@LogToTable = 'Y'; |
We can use master.dbo.CommandLog Table to Analyze the frequency of Indexes and Statistics Updation.
SQL minimum configuration
...