关于登录em 按钮显示乱码的问题解决方案

远程登录linux下的en时,界面的按钮可能出现方框或者乱码的情况,如果linux安装时选择的是中文字符集的话, 就不存在这个问题.大多数出现乱码或者方框的情况是由于系统中不存在jdk、jre需要的字体文件.可以检查下面两个目录中的字体配置文件:

 

    $ORACLE_HOME/jre/1.4.2/lib

    $ORACLE_HOME/jdk/jre/lib

 

这两个目录了包含了oracle安装java是默认的几个font配置文件.首先查看上面两个目录中所有zh_CN 的几个配置文件中需要乃些字体:

[ora101@dbtest lib]$ tail -5 font.properties.zh_CN*
==> font.properties.zh_CN.Redhat <==
-b&h-luxi sans-medium-r-normal–*-%d-*-*-p-*-iso8859-1,
-isas-song ti-medium-r-normal–*-%d-*-*-c-*-gb2312.1980-0

filename.-misc-zysong18030-medium-r-normal–*-%d-*-*-c-*-iso10646-1=/usr/share/fonts/zh_CN/TrueType/zysong.ttf

==> font.properties.zh_CN.Redhat2.1 <==
-b&h-lucidux sans-medium-r-normal–*-%d-*-*-p-*-iso8859-1,
-arphic-ar pl sungtil gb-medium-r-normal–*-%d-*-*-c-*-gb2312.1980-0

filename.-arphic-ar_pl_sungtil_gb-medium-r-normal–*-%d-*-*-c-*-gb2312.1980-0=/usr/share/fonts/zh_CN/TrueType/gbsn00lp.ttf

==> font.properties.zh_CN.Redhat8.0 <==
fontset.default=
-b&h-luxi sans-medium-r-normal–*-%d-*-*-p-*-iso8859-1,
-isas-song ti-medium-r-normal–*-%d-*-*-c-*-gb2312.1980-0

filename.-misc-zysong18030-medium-r-normal–*-%d-*-*-c-*-iso10646-1=/usr/share/fonts/zh_CN/TrueType/zysong.ttf

 

所有的配置文件都指向了/usr/share/fonts/zh_CN/TrueType目录中字体,如果这个目录中没有相关字体,下载相应的字体,再用上面的任一一个文件替换/jre/1.4.2/lib、/jdk/jre/lib的默认font.properties 文件,替换为改名为font.properties . 然后执行emctl stop dbconsole停止em,并清除em的cache文件

rm $ORACLE_HOME/oc4j/j2ee/oc4j_applications/applications/em/em/cabo/images/cache/zhs/*.gif

并执行emctl start dbconsole 重新启动em即可.

Relative Posts

Tags:

Leave a Reply