Informix Error -19851: Invalid OPT_CPUCOST_FACTOR value specified.
Cause and resolution
Invalid OPT_CPUCOST_FACTOR value specified.
The value for OPT_CPUCOST_FACTOR must range from 0 to 20.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-19851 fires when OPT_CPUCOST_FACTOR is set outside its valid range — per the official
guidance: 0 to 20.
- An
OPT_CPUCOST_FACTORvalue outside0to20, per the official guidance — the direct, only cause.
Solutions / Resolution
- Set
OPT_CPUCOST_FACTORto a value between0and20, per the official guidance.
Examples
An out-of-range OPT_CPUCOST_FACTOR
SET OPTIMIZATION ENVIRONMENT OPT_CPUCOST_FACTOR '50';
Corrected
SET OPTIMIZATION ENVIRONMENT OPT_CPUCOST_FACTOR '15';
Diagnostic Checks
- Check the
OPT_CPUCOST_FACTORvalue against the0to20valid range.
Related Errors / Related Topics
- -19850 — "Invalid OPT_SEEK_FACTOR value specified." A related optimization
environment-variable error, about
OPT_SEEK_FACTOR's0-25range instead.
OPT_CPUCOST_FACTOR was set outside 0 to 20 — use a value in that range.