IBM Support

7206 LANG or LC_CTYPE environment variable is invalid while trying to bring up onmonitor

Troubleshooting


Problem

Your try to run onmonitor and receive errno -7206 -7206 LANG or LC_CTYPE environment variable is invalid. Either the LANG or the LC_CTYPE environment variable setting is invalid. Set either or both variables to the values that your system supports.

Cause

The LC_CTYPE or LANG are incorrect. Normally it is the LC_CTYPE so I will discuss that in this tech note. -7206 LANG or LC_CTYPE environment variable is invalid.

Either the LANG or the LC_CTYPE environment variable setting is invalid. Set either or both variables to the values that your system supports.

Diagnosing The Problem

In the example below the LC_CTYPE is set to fr which in this case is incorrect and should be

en_US.ISO8859-1

LC_CTYPE=fr
LC_ALL=en_US

Server env is

LC_COLLATE en_US.ISO8859-1
LC_CTYPE fr
[fr]
[en_US.ISO8859-1]
LC_MONETARY en_US.ISO8859-1
LC_NUMERIC en_US.ISO8859-1
LC_TIME en_US.ISO8859-1

Resolving The Problem

Set the LC_CTYPE or LANG to the correct Environment Variable bounce INFORMIX DYNAMIC SERVER ensure the environment variable is correct then retry starting on-monitor.

See documentation below on how to set environment variables.

[{"Product":{"code":"SSGU8G","label":"Informix Servers"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"--","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF016","label":"Linux"},{"code":"PF022","label":"OS X"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"10.0;11.1;11.5;11.7","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
16 June 2018

UID

swg21622694