EM Cloud Console UI 的语言设置依赖于浏览器的语言设置,不依赖于OMS服务器或者 repository DB的语言设置。
如在edge浏览器中,目前为中文显示:
为改变显示语言,进入edge语言设置
如改为英语显示,点击“英语”后的“...”,点击"以这种语言显示microsoft edge",重启浏览器,再次登录,菜单显示为英文。
此时查看上次手动添加目标的处理结果,错误信息提示中仍有中文显示,见下图:
以相同输入信息重新添加目标后,显示改为英文,见下图
在不改变OMS JAVA语言的情况下,仅修改发送内容提示信息的语言,可以作如下设置。通过配置OMS的参数进行设置,包括 Email / SNMP / OS Command / Pl/SQL traps, 具体修改过程如下:
Notification method | Parameter |
---|---|
E-Mail or Page | oracle.sysman.core.notification.locale.email |
OS Command | oracle.sysman.core.notification.locale.oscmd |
SNMP Trap | oracle.sysman.core.notification.locale.snmp |
PL/SQL | oracle.sysman.core.notification.locale.plsql |
The parameters override the default Locale set at the java level used by the OMS.
1. To set the parameters, execute the below commands based on the type of notification for which the language needs to be changed:
cd <OMS_HOME>/bin
emctl set property -name oracle.sysman.core.notification.locale.email -value '<new value>'
emctl set property -name oracle.sysman.core.notification.locale.snmp -value '<new value>'
emctl set property -name oracle.sysman.core.notification.locale.plsql -value '<new value>'
emctl set property -name oracle.sysman.core.notification.locale.oscmd -value '<new value>'
For example:
emctl set property -name oracle.sysman.core.notification.locale.email -value 'de'
to set the language in the email notifications to German.
- Stop and Re-start the OMS after this:
emctl stop oms
emctl start oms
2. To remove the property and use the default OMS language, use:
emctl delete property -name <name of the parameter>
For example:
emctl delete property -name oracle.sysman.core.notification.locale.email
Stop and Re-start the OMS:
emctl stop oms
emctl start oms
To modify the language at the Java level used by the OMS, follow these steps
Below steps can be used if the language needs to be set to a value which is not yet supported by the 'emctl' command option:
1. Stop the OMS:
cd <OMS_HOME>/bin
emctl stop oms -all
2. Take a backup of <gc_inst>\user_projects\domains\GCDomain\bin\startEMserver.sh file.
3. Edit the file and add -Duser.language=<language> at the end of JAVA_OPTIONS in this file
For example, to set the Java Locale to English - en, modify:
JAVA_OPTIONS="${JAVA_OPTIONS} -Djbo.ampool.minavailablesize=1 -Djbo.ampool.timetolive=-1 -Djbo.load.components.lazily=true -Djbo.max.cursors=5 -Djbo.recyclethreshold=50 -Djbo.ampool.maxavailablesize=50 "
to
JAVA_OPTIONS="${JAVA_OPTIONS} -Djbo.ampool.minavailablesize=1 -Djbo.ampool.timetolive=-1 -Djbo.load.components.lazily=true -Djbo.max.cursors=5 -Djbo.recyclethreshold=50 -Djbo.ampool.maxavailablesize=50 -Duser.language=en"
4. Save the changes in the file.
5. Re-start the OMS:
cd <OMS_HOME>/bin
emctl start oms