Chinese character in message from some managed nodes are garbaged

  • KM662591
  • 12-Apr-2009
  • 12-Apr-2009

Summary

Chinese character in message from some managed nodes are garbaged. All the language settings in management server are good and OPC_NODE_CHARSET in mamaged node is also correctly set to gb2312. This problem is caused by not setting "ctrl.env" to "LANG=zh_CN.hp15CN".

Error

Chinese character in message from some managed nodes are garbaged.

1. The language settings in management server are good as like below :

OMU server 8.31 is on HP-UX 11.31
 
# echo $LANG
zh_CN.hp15CN

# echo $NLS_LANG
simplified chinese_china.ZHS16CGB231280

# ovconfget -ovrg server |grep CHARSET
OPC_NODE_CHARSET=gb2312
OPC_MGMTSV_CHARSET=gb2312
 
SQL> select charset from opc_mgmtsv_config;
   CHARSET
----------
        72
In here, 72 means the characterset in DB is ZHS16CGB231280

SQL> select * from V$NLS_PARAMETERS;
 
PARAMETER
----------------------------------------------------------------
VALUE
----------------------------------------------------------------
NLS_LANGUAGE
SIMPLIFIED CHINESE
 
NLS_CHARACTERSET
ZHS16CGB231280
 

In /opt/OV/conf/ovdbora file :
NLS_LANG simplified chinese_china.ZHS16CGB231280
 
In /etc/rc.config.d/LANG file :
LANG=zh_CN.hp15CN
export LANG

 


2. OPC_NODE_CHARSET in mamaged node is also correctly set to gb2312 as like below :

OVO agent 08.51.003 is running on HP-UX B.11.31 ia64

[eaagt]
OPC_NODE_CHARSET=gb2312

Cause

This problem is caused by not setting "ctrl.env" to "LANG=zh_CN.hp15CN".

Fix

1) Please run the following commands :

# ovconfchg -ns ctrl.env -set LANG zh_CN.hp15CN

2) Please check if ctrl.env is set correctly with the following command :

# ovconfget ctrl.env LANG

3) After that, please re-start the agent. Please let me know the change.
ovc -kill

then with

ps -ef | grep opc
ps -ef | grep ov

find al processes that are still present and kill then, start the agent one more time.

ovc -start