Informix Error -26500: Query offloading is turned OFF
Cause and resolution
Query offloading is turned OFF
This query was not accelerated because query offloading is turned off. To turn on query offloading, use the following statement: SET ENVIRONMENT use_dwa '1'
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-26500 fires when a query isn't accelerated because query offloading is turned off — per the official guidance.
- Query offloading (
use_dwa) is off, per the official guidance — the direct, only cause.
Solutions / Resolution
- Run
SET ENVIRONMENT use_dwa '1', per the official guidance, to turn on query offloading.
Examples
Turning on query offloading
SET ENVIRONMENT use_dwa '1';
Diagnostic Checks
- Check the current
use_dwasetting, and turn it on if acceleration is wanted.
Related Errors / Related Topics
- -26404 — "The query cannot be accelerated. Fallback to running the query on the
database server is disabled." A related
use_dwa-configuration error, on fallback being disabled rather than offloading being off entirely.
Query offloading was turned off — enable it with SET ENVIRONMENT use_dwa '1'.