Prevent and prepare for assertion failures
You can perform routine administrative tasks that can prevent assertion failures or help prepare for recovering from assertion failures.
To prevent assertion failures on Informix®, perform the following tasks regularly:
Prevention task | Purpose |
---|---|
Test your applications thoroughly in a realistic environment before releasing your applications into production. | Applications can trigger assertion failures. Make sure that you have allocated enough resources: for example, physical and logical logs and shared memory. |
Check and repair the consistency of your data. Run the following oncheck commands to check your system:
|
Diagnosing and repairing consistency problems quickly can prevent major problems like data loss and assertion failures. |
Upgrade to the latest major and fix pack release. | Assertion failures can be caused by product defects. You can avoid many product defects by upgrading to the most current release. |
Update statistics. When you change a table or indexing schema, update statistics to update the dictionary cache. By default, statistics are updated automatically by the Scheduler. You can customize automatic statistics updating for your system. |
Queries that use stale statistics can use too
many resources and cause assertion failures. Stale statistics can
also have a negative affect on query performance. Always update statistics after upgrading. |
To prepare for assertion failures on Informix, perform the following tasks regularly:
Preparation task | Purpose |
---|---|
Back up your data and logical logs. You can use the ON-Bar utility or the ontape utility to back up your data and logical logs. The ON-Bar utility requires a storage manager. |
If data loss occurs, you can recover your data and recent transactions. |
Back up your database and storage space schema
information. Run the following commands to back up your schema information:
|
In a catastrophic failure, you can recreate your system. |