现在的位置: 首页 > 综合 > 正文

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

2014年01月16日 ⁄ 综合 ⁄ 共 808字 ⁄ 字号 评论关闭

网上通用的解决办法:

 

修改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


搞定!!

 

抱歉!评论已关闭.