oracle 10g em 乱码的解决

操作系统: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/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值