关于RedHat下Oracle的em按钮乱码


是因为em在生成按钮图片时找不到对应的字体文件造成

解决方法:

在Oracle用户环境下

1.套用默认的字体配置文件

  1. cd $ORACLE_HOME/jdk/jre/lib/  
  2. cp font.properties.zh_CN.RedHat font.properties  
2.修改对应的中文字体文件路径,比如我的路径是/usr/share/fonts/chinese/TrueType/uming.ttf

就修改为

  1. filename.-misc-zysong18030-medium-r-normal--*-%d-*-*-c-*-iso10646-1=/usr/share/fonts/chinese/TrueType/uming.ttf  
不要有空格

3.清空图片缓存

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

4.重启em

  1. emctl stop dbconsole  
  2. emctl start dbconsole  

相关内容