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. |
Monitor and complete in-place alter operations. You can view pending in-place alter operations in the sysadmin:ph_alerttable or the Health Center > Alerts screen in the IBM® OpenAdmin Tool (OAT) for Informix. You can force the completion of in-place alter operations for a specific table by running the following dummy UPDATE statement:
| Pending in-place alter operations can use too many resources and cause assertion failures. Complete in-place alters before 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. |
'Informix > informix troubleshooting' 카테고리의 다른 글
Database Server Blocked in Checkpoint (Blocked:CKPT) due to disabled dbspace (0) | 2012.07.05 |
---|---|
Tuning Kernel Asynchronous IO (KAIO) for IBM Informix on AIX (0) | 2012.06.16 |
Correcting assertion failures (AF) (0) | 2012.06.06 |
Using PDQ excessively impacts the performance of database server (0) | 2012.04.27 |
Insert into a table is slow (0) | 2012.04.27 |