操作系统:Red Hat Enterprise Linux AS4 U2 x86_64
语言安装的为英文,安装完数据库后,通过企业管理器登陆,点击的按钮显示乱码。
参考eygle的文章好象解决不了。
http://www.eygle.com/archives/2006/03/oracle10g_em_font_change.html
不过eygle最后面提到如果在替换好的font.properties中filename指向中文字体文件服务器上不存在,改换一个存在的中文字体文件即可,也可以自行下载安装新的字体文件。这让我想起了安装系统时语言只选择了英文。我到filename指向的路径下确实找不到中文字体文件
[oracle@ctoc-erp zhs]$ cd $ORACLE_HOME/jre/1.4.2/lib/
[oracle@ctoc-erp lib]$ tail -2 font.properties
filename.-misc-zysong18030-medium-r-normal--*-%d-*-*-c-*-iso10646-1=/usr/share/fonts/zh_CN/TrueType/zysong.ttf
[oracle@ctoc-erp lib]$ ls -al /usr/share/fonts/zh_CN/TrueType/zysong.ttf
ls: /usr/share/fonts/zh_CN/TrueType/zysong.ttf: No such file or directory
那就重新安装中文支持吧,相应的包在第四张安装盘上可以找到。
[root@ctoc-erp ~]# rpm -ivh ttfonts-zh_CN-2.14-6.noarch.rpm
warning: ttfonts-zh_CN-2.14-6.noarch.rpm: V3 DSA signature: NOKEY, key ID db42a60e
Preparing... ########################################### [100%]
1:ttfonts-zh_CN ########################################### [100%]
然后按照如下操作:
[oracle@ctoc-erp zhs]$ emctl stop dbconsole
TZ set to PRC
Oracle Enterprise Manager 10g Database Control Release 10.2.0.1.0
Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
http://ctoc-erp:1158/em/console/aboutApplication
Stopping Oracle Enterprise Manager 10g Database Control ...
... Stopped.
[oracle@ctoc-erp ~]$ cd $ORACLE_HOME/jdk/jre/lib
[oracle@ctoc-erp 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
[oracle@ctoc-erp lib]$ cp font.properties.zh_CN.Redhat font.properties
[oracle@ctoc-erp lib]$ cd $ORACLE_HOME/jre/1.4.2/lib/
[oracle@ctoc-erp 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
[oracle@ctoc-erp lib]$ cp font.properties.zh_CN.Redhat font.properties
[oracle@ctoc-erp lib]$ cd $ORACLE_HOME/oc4j/j2ee/oc4j_applications/applications/em/em/cabo/images/cache/zhs
[oracle@ctoc-erp zhs]$ rm -rf *.gif
[oracle@ctoc-erp zhs]$ emctl start dbconsole
TZ set to PRC
Oracle Enterprise Manager 10g Database Control Release 10.2.0.1.0
Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
http://ctoc-erp:1158/em/console/aboutApplication
Starting Oracle Enterprise Manager 10g Database Control ............................ started.
------------------------------------------------------------------
Logs are generated in directory /oracle/10.2.0/db_1/ctoc-erp_erptest/sysman/log
[oracle@ctoc-erp zhs]$
此时再重新打开EM页面就OK了。
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/12045182/viewspace-664211/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/12045182/viewspace-664211/