IBM Support

"NLS_LANG variable is not set" returns when accessing Oracle data source using unfenced NET8 wrapper

Troubleshooting


Problem

You will receive error SQL1822N with message "NLS_LANG variable is not set" when accessing Oracle data source using unfenced NET8 wrapper if you don't set the environment variable NLS_LANG.

Symptom

The error message is like the following:
SQL1822N  Unexpected error code "-1" received from data source "SERVER1".
Associated text and tokens are "NLS_LANG variable is not set".  SQLSTATE=560BD

Document Location

Worldwide

[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SS2K5T","label":"InfoSphere Federation Server"},"Component":"","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF016","label":"Linux"},{"code":"PF033","label":"Windows"}],"Version":"11.1.4.5;11.5","Edition":"","Line of Business":{"code":"LOB76","label":"Data Platform"}}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

Modified date:
25 April 2025

UID

ibm11114785