OEM 按钮乱码解决办法

相信很多人遇到此问题!

摘抄一下eygle的文章

$ORACLE_HOME/jdk/jre/lib$ORACLE_HOME/jre/1.4.2/lib/ 目录下都有多种字符集字体配置文件:
[oracle@danaly ~]$ cd $ORACLE_HOME/jdk/jre/lib
[oracle@danaly lib]$ ls font*zh_CN*
font.properties.zh_CN.Redhat font.properties.zh_CN.Redhat2.1
font.properties.zh_CN.Sun font.properties.zh_CN_UTF8.Sun
[oracle@danaly lib]$ cd $ORACLE_HOME/jre/1.4.2/lib/
[oracle@danaly lib]$ ls font*zh_CN*
font.properties.zh_CN.Redhat font.properties.zh_CN.Redhat2.1
font.properties.zh_CN.Sun font.properties.zh_CN_UTF8.Sun

我们只要用合适的中文字符集文件替换缺省文件即可,我选择使用font.properties.zh_CN.Redhat来替换缺省字体定义文件:(其实无所谓哪个文件只要是*zh_CN*的就可以)

cp font.properties.zh_CN.Redhat font.properties命令分别把$ORACLE_HOME/jdk/jre/lib$ORACLE_HOME/jre/1.4.2/lib/ 目录的默认配置文件替换掉(最好先备份一下你的原配置文件)

替换后清理缓存
cd $ORACLE_HOME/oc4j/j2ee/oc4j_applications/applications/em/em/cabo/images/cache/zhs
rm *.gif

重启em
emctl stop dbconsole
emctl start dbconsole

注意:如果经过以上处理仍然不能正确显示中文,请参考以下说明:(我的就不行)

打开刚替换好的font.properties
[oracle@smsdbrac1 lib]$ tail -2 font.properties.zh_CN.Redhat
filename.-misc-zysong18030-medium-r-normal--*-%d-*-*-c-*-iso10646-1=/usr/share/fonts/zh_CN/TrueType/zysong.ttf

注意其中包含了filename指向中文字体文件,请确认该文件在你的服务器上是否存在,如果不存在,改换一个存在的中文字体文件即可,也可以自行下载安装新的字体文件:
[oracle@imetdb zhs]$ ls /usr/share/fonts/chinese/TrueType/
fonts.dir    fonts.scale ukai.ttf     uming.ttf

分别把两个配置文件里的字体换掉
filename.-misc-zysong18030-medium-r-normal--*-%d-*-*-c-*-iso10646-1=/usr/share/fonts/chinese/TrueType/uming.ttf

我到此已经成功!

posted @ 2009-06-09 16:17  艾阳君  阅读(137)  评论(0编辑  收藏  举报