Informix Error -495
-495 LANG or LC_MONETARY environment variable invalid.
You specified an invalid value for a LANG or LC_MONETARY environment variable.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-495 is the LC_MONETARY counterpart of -492/-494: the same class of NLS-environment-
configuration error, here for the locale category governing monetary formatting (currency
symbols, decimal/thousands separators for MONEY values), rather than collation or character
classification.
- A typo or misspelling in the
LANG/LC_MONETARYvalue. - A locale string not supported by the server's NLS configuration, even if valid in general OS terms.
LC_COLLATE/LC_CTYPEcorrectly configured butLC_MONETARYoverlooked or mismatched — each locale category is configured independently.
Solutions / Resolution
- Verify the exact value expected for the specific NLS-enabled database being connected to,
consistent with the pattern for
LC_COLLATE/LC_CTYPE. - Check for typos in the
LANG/LC_MONETARYenvironment variable's current value. - Check all relevant locale categories together (
LC_COLLATE,LC_CTYPE,LC_MONETARY, and any others in use) when configuring environment variables for an NLS-enabled database.
Examples
Checking current environment variable values
echo $LANG
echo $LC_MONETARY
-- compare against the exact value the target NLS-enabled
-- database actually requires for monetary formatting
Diagnostic Checks
- Check the current values of
LANGandLC_MONETARY. - Compare against the specific value the target database's NLS configuration requires.
Related Errors / Related Topics
- -492 — "LANG or LC_COLLATE environment variable invalid." The identical underlying issue,
for
LC_COLLATEinstead ofLC_MONETARY. - -494 — "LANG or LC_CTYPE environment variable invalid." The identical underlying issue,
for
LC_CTYPEinstead ofLC_MONETARY.
Each NLS locale category (LC_COLLATE, LC_CTYPE, LC_MONETARY) is configured independently —
check all of them together rather than assuming fixing one resolves the others.