Informix Error -19848: Incorrect STAR_JOIN value specified.
Cause and resolution
Incorrect STAR_JOIN value specified.
The value for the STAR_JOIN optimization environment must be 'DISABLED', 'ENABLED', or 'FORCED'. Use the value 'DISABLED' to prevent star joins in this session. Use the value 'ENABLED' to allow star joins in this session. Use the value 'FORCED' to favor star joins for all queries whenever possible in this session.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-19848 fires when STAR_JOIN is set to a value other than DISABLED, ENABLED, or
FORCED — per the official guidance.
- A
STAR_JOINvalue outside the three documented options, per the official guidance — the direct, only cause.
Solutions / Resolution
- Set
STAR_JOINtoDISABLEDto prevent star joins this session, per the official guidance. - Set
STAR_JOINtoENABLEDto allow star joins this session, per the official guidance. - Set
STAR_JOINtoFORCEDto favor star joins for all queries whenever possible this session, per the official guidance.
Examples
An invalid STAR_JOIN value
SET OPTIMIZATION ENVIRONMENT STAR_JOIN 'MAYBE';
Corrected
SET OPTIMIZATION ENVIRONMENT STAR_JOIN 'ENABLED';
Diagnostic Checks
- Check the
STAR_JOINvalue againstDISABLED/ENABLED/FORCED.
Related Errors / Related Topics
- -19839 — "Invalid OPTCOMPIND value specified." A related optimization
environment-variable error, about
OPTCOMPIND's numeric range rather thanSTAR_JOIN's enumerated values.
STAR_JOIN was set to an unrecognized value — use DISABLED, ENABLED, or FORCED.