Maintaining the enterprise database
The enterprise database used with a IBM Traveler High Availability pool requires periodic maintenance just like the internal database used by a standalone server.
After many changes to table data, the table and its indexes can become fragmented. Logically
sequential data might reside on nonsequential pages, forcing the database manager to perform
additional read operations to access data. Enterprise database servers provide utilities for
maintaining the databases. For example, DB2® provides REORG and RUNSTATS utilities to help
maintain optimal performance for the database. These utilities can be configured to run
automatically. Microsoft SQL Server provides similar index reorganization utilities. Whether run
manually or automatically, a regularly scheduled maintenance plan is essential to maintain peak
performance of your system.
Note: Maintenance should be run on all of the tables in the database.
We recommend performing online index maintenance once a week during non-peak hours and offline
maintenance about once a month. Consult the database server product documentation for more
information on database maintenance.
Note: Since server version 9.0.1.8, IBM Traveler
includes the ability to run database maintenance. For more information, refer to IBM Traveler database maintenance for standalone servers.
Online database maintenance
The database allows read and write access during maintenance action and there is minimum
performance impact to the application.
- DB2
REORG INDEXES ALL FOR TABLE <tablename> CLEANUP ONLY
- Microsoft SQL Server
ALTER INDEX ALL ON <tablename> REORGANIZE
Offline database maintenance
The database allows read access only during maintenance, no access during maintenance action, or
may experience excessive locking during maintenance. Because of this, offline maintenance should
be run with Traveler shutdown on all servers or other blocking in place to prevent any of the
Traveler servers from trying to connect to the database during maintenance. If the database is
highly available or has secondary clusters, the maintenance only needs to be run on the primary database.
- DB2
-
REORG INDEXES ALL FOR TABLE <tablename>
REORG TABLE <tablename>
- Microsoft SQL Server
ALTER INDEX ALL ON <tablename> REBUILD