Reorganizing Event Collector Tables (DB2 Only)
After the upgrade, it is likely that several event collector tables need to be reorganized.
Note: You only need to perform this task if:
- you are upgrading an existing BPM system and,
- you are using a DB2 database.
Perform this task for the following tables:
- ec_event_int
- ec_pe_status
- Procedure
- To determine if a table needs to be reorganized, connect to the BPM database and enter the following command:
db2 load query table user.table_nameFor example:db2 load query table bpmuser.ec_eventIf a reorganization is required, the command returns the following:
Tablestate: Reorg PendingIn this case, you must perform the following steps before continuing to use the system.
Warning: Failing to reorganize the tables can lead to events not being audited, and event views failing to display, with error messages such as:Event Viewer: My Activity Today - View is unavailable due to server side fault
Also, the following error in the logs indicates that the tables needs to be reorganized:
SQLCODE=-668, SQLSTATE=57016
- Log into the BPM database.
- Run the following command :
db2 reorg table user.table_name
- After reorganization, enter the following command:
db2 load query table user.table_nameThe command should return the following:
Tablestate: Normal