Informix Error -19847: Incorrect session optimization environment variable.
Cause and resolution
Incorrect session optimization environment variable.
The specified identifier cannot be set in a session using the SET OPTIMIZATION ENVIRONMENT statement.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-19847 fires when SET OPTIMIZATION ENVIRONMENT names an identifier that isn't a valid
optimization environment variable — per the official guidance.
- An identifier not settable via
SET OPTIMIZATION ENVIRONMENT, per the official guidance — the direct, only cause.
Solutions / Resolution
- Check the identifier against the documented list of optimization environment variables, per the official guidance, and correct it.
Examples
An unsupported SET OPTIMIZATION ENVIRONMENT variable
SET OPTIMIZATION ENVIRONMENT NOT_A_REAL_VAR '1';
Diagnostic Checks
- Check the variable name's spelling against the documented
SET OPTIMIZATION ENVIRONMENTlist.
Related Errors / Related Topics
- -19840 — "Invalid session environment variable." The same unsupported-identifier
condition, for
SET ENVIRONMENTrather thanSET OPTIMIZATION ENVIRONMENT.
The identifier isn't a valid SET OPTIMIZATION ENVIRONMENT variable — check its spelling.