heberoxx 发表于 2018-9-24 15:28:32

解決ORACLE EM 按鈕亂碼問題

  前几日,在虚拟机上安装了centos 4.8 和Oracle 10.2 ,但用IE去登陆EM的时候,发现按钮乱码。因近几日工作一直比较繁忙,今天才抽空把这个问题给解决了。
  解决方法多来自于网上,具体执行步骤如下:
  1,重新安装中文支持
  # rpm -ivh ttfonts-zh_CN-2.14-6.noarch.rpm

  warning: ttfonts-zh_CN-2.14-6.noarch.rpm: V3 DSA signature: NOKEY, key>  Preparing... ###########################################
  1:ttfonts-zh_CN ###########################################
  #
  2,安装如下步骤操作:
  # su - oracle
  $ cd $ORACLE_HOME/jdk/jre/lib
  $ ls -al font*zh_CN*
  -rwxr-xr-x 1 oracle oinstall 6854 Apr 20 2005 font.properties.zh_CN.Redhat
  -rwxr-xr-x 1 oracle oinstall 7410 Apr 20 2005 font.properties.zh_CN.Redhat2.1
  -rwxr-xr-x 1 oracle oinstall 6845 Apr 20 2005 font.properties.zh_CN.Sun
  -rwxr-xr-x 1 oracle oinstall 7137 Apr 20 2005 font.properties.zh_CN_UTF8.Sun
  $ cp font.properties.zh_CN.Redhat font.properties
  $ cd $ORACLE_HOME/jre/1.4.2/lib/
  $ ls -al font*.zh_CN*
  -rwxr-xr-x 1 oracle oinstall 6854 Apr 6 2005 font.properties.zh_CN.Redhat
  -rwxr-xr-x 1 oracle oinstall 7410 Apr 6 2005 font.properties.zh_CN.Redhat2.1
  -rwxr-xr-x 1 oracle oinstall 6845 Apr 6 2005 font.properties.zh_CN.Sun
  -rwxr-xr-x 1 oracle oinstall 7137 Apr 6 2005 font.properties.zh_CN_UTF8.Sun
  $ cp font.properties.zh_CN.Redhat font.properties
  $ cd $ORACLE_HOME/oc4j/j2ee/oc4j_applications/applications/em/em/cabo/images/cache/zhs
  $ rm -rf *.gif
  $ emctl start dbconsole
  TZ set to PRC

  Oracle Enterprise Manager 10g Database Control>  Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
  http://localhost:1158/em/console/aboutApplication
  Starting Oracle Enterprise Manager 10g Database Control ........ started.
  ------------------------------------------------------------------
  Logs are generated in directory /oracle/app/oracle/product/10.2.0/Database/oracle10g_szrrlcw/sysman/log
注意:如果经过以上处理仍然不能正确显示中文,请参考以下说明:打开刚替换好的font.propertiesoracle10g 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指向中文字体文件,请确认该文件在你的服务器上是否存在,如果不存在,改换一个存在的中文字体文件即可,也可以自行下载安装新的字体文件:oracle10g 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
  待完成重启后,再次打开,按钮乱码问题得到解决。

页: [1]
查看完整版本: 解決ORACLE EM 按鈕亂碼問題