您的位置:首页 > 数据库 > Oracle

ubuntu下oracle10g EM 显示乱码正确的解决办法 口口

2011-03-09 22:08 309 查看
网上通用的解决办法:

修改jdk 下面的字体。

$ cd $ORACLE_HOME/jdk/jre/lib/

$ mv font.properties font.properties_bak

$ cp font.properties.zh_CN.Redhat font.properties

修改jre 下面的字体

$ cd $ORACLE_HOME/jre/1.4.2/lib

$ mv font.properties font.properties_bak

$ cp font.properties.zh_CN.Redhat font.properties

清除em的cache

$ rm -rf /home/oracle/ora10/oc4j/j2ee/oc4j_applications/applications/em/em/cabo/images/cache/zhs/*.gif

重启em

$ $ORACLE_HOME/bin/emctl stop dbconsole

$ $ORACLE_HOME/bin/emctl start dbconsole

没有效果,经检查,发现两个font.properties文件,最后一行发现以下内容

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

很明显,没有这个TTF字体文件,修改(注意文件目录的大小写)

filename.-misc-zysong18030-medium-r-normal--*-%d-*-*-c-*-iso10646-1=/usr/share/fonts/truetype/wqy/wqy-microhei.ttc

将JRE和JDK下的两个font.properties文件修改

$gedit font.properties

再清楚em的cache

重启em

搞定!!
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: