DBLANG environment variable

Use the DBLANG environment variable to specify the subdirectory of $ONEDB_HOME or the full pathname of the directory that contains the compiled message files that HCL OneDB™ products use.


1  setenv DBLANG
2.1 relative_path
2.1 full_path
relative_path
is a subdirectory of $ONEDB_HOME.
full_path
is the pathname to the compiled message files.

By default, HCL OneDB products put compiled messages in a locale-specific subdirectory of the $ONEDB_HOME/msg directory. These compiled message files have the file extension .iem. If you want to use a message directory other than $ONEDB_HOME/msg, where, for example, you can store message files that you create, you must perform the following steps:

To use a message directory other than $ONEDB_HOME/msg

  1. Use the mkdir command to create the appropriate directory for the message files.

    You can make this directory under the directory $ONEDB_HOME or $ONEDB_HOME/msg, or you can make it under any other directory.

  2. Set the owner and group of the new directory to onedb and the access permission for this directory to 755.
  3. Set the DBLANG environment variable to the new directory. If this is a subdirectory of $ONEDB_HOME or $ONEDB_HOME/msg, then you need only list the relative path to the new directory. Otherwise, you must specify the full pathname of the directory.
  4. Copy the .iem files or the message files that you created to the new message directory that $DBLANG specifies.

    All the files in the message directory should have the owner and group informix and access permission 644.

HCL OneDB products that use the default U.S. English locale search for message files in the following order:
  1. In $DBLANG, if DBLANG is set to a full pathname
  2. In $ONEDB_HOME/msg/$DBLANG, if DBLANG is set to a relative pathname
  3. In $ONEDB_HOME/$DBLANG, if DBLANG is set to a relative pathname
  4. In $ONEDB_HOME/msg/en_us/0333
  5. In $ONEDB_HOME/msg/en_us.8859-1
  6. In $ONEDB_HOME/msg
  7. In $ONEDB_HOME/msg/english

For more information about search paths for messages, see the description of DBLANG in the HCL OneDB GLS User's Guide.