Informix Error -496
-496 LANG or LC_NUMERIC environment variable invalid.
You specified an invalid value for a LANG or LC_NUMERIC environment variable.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-496 is the LC_NUMERIC counterpart of -492/-494/-495: the same class of NLS-environment-
configuration error, here for the locale category governing numeric formatting (decimal points,
digit grouping separators), rather than collation, character classification, or monetary
formatting.
- A typo or misspelling in the
LANG/LC_NUMERICvalue. - A locale string not supported by the server's NLS configuration, even if valid in general OS terms.
- Other locale categories correctly configured but
LC_NUMERICoverlooked or mismatched — each is configured independently.
Solutions / Resolution
- Verify the exact value expected for the specific NLS-enabled database being connected to, consistent with the pattern for the other locale categories.
- Check for typos in the
LANG/LC_NUMERICenvironment variable's current value. - Check all relevant locale categories together (
LC_COLLATE,LC_CTYPE,LC_MONETARY,LC_NUMERIC) when configuring environment variables for an NLS-enabled database.
Examples
Checking current environment variable values
echo $LANG
echo $LC_NUMERIC
-- compare against the exact value the target NLS-enabled
-- database actually requires for numeric formatting
Diagnostic Checks
- Check the current values of
LANGandLC_NUMERIC. - Compare against the specific value the target database's NLS configuration requires.
Related Errors / Related Topics
- -495 — "LANG or LC_MONETARY environment variable invalid." The identical underlying
issue, for
LC_MONETARYinstead ofLC_NUMERIC. - -492 — "LANG or LC_COLLATE environment variable invalid." The identical underlying issue,
for
LC_COLLATEinstead ofLC_NUMERIC.
Same pattern as the other NLS locale-category errors — each category is configured
independently, so check LC_NUMERIC specifically rather than assuming the others being correct
implies this one is too.