博客首页 注册 建议与交流 排行榜 加入友情链接
推荐 投诉 搜索: 帮助

叶孤城

~~城中孤叶~~幽静思斋~~
jybjsrg.cublog.cn


oracle 10g em按纽乱码解决
最近比较郁闷,装了oracle 10G ,进EM管理界面时,按纽总是出现乱码(中文),英文正常.......
Google了下,有很多兄弟遇到同样问题,本人参照了一些网友的文章再自己亲自做了一遍,
系统 RHEL4u4 + oracle10G

如果安装时,我们系统环境变量设置的是中文环境,那么就不会有这个问题.这个问题根本原因在于安装时,JDK/JRE字符集的自动选择.

$ORACLE_HOME/jdk/jre/lib$ORACLE_HOME/jre/1.4.2/lib/ 目录下都有多种字符集字体配置文件:

[oracle@danaly ~]$ cd $ORACLE_HOME/jdk/jre/lib
[oracle@danaly lib]$ ls font*zh_CN*
font.properties.zh_CN.Redhat  font.properties.zh_CN.Redhat2.1 
font.properties.zh_CN.Sun  font.properties.zh_CN_UTF8.Sun
[oracle@danaly lib]$ cd $ORACLE_HOME/jre/1.4.2/lib/
[oracle@danaly lib]$ ls font*zh_CN*
font.properties.zh_CN.Redhat  font.properties.zh_CN.Redhat2.1 
font.properties.zh_CN.Sun  font.properties.zh_CN_UTF8.Sun 

我们只要用合适的中文字符集文件替换缺省文件即可,我选择使用font.properties.zh_CN.Redhat来替换缺省字体定义文件:

[oracle@danaly lib]$ cp font.properties.zh_CN.Redhat font.properties 

替换之后需要清理一下Cache,重启EM即可.

Cache路径通常位于:

$ORACLE_HOME/oc4j/j2ee/oc4j_applications/applications/em/em/cabo/images/cache/zhs 

清除所有gif文件即可.然后重新启动EM:

[oracle@danaly 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://danaly.hurrray.com.cn:1158/em/console/aboutApplication
Stopping Oracle Enterprise Manager 10g Database Control ...
 ...  Stopped.
[oracle@danaly 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://danaly.hurrray.com.cn:1158/em/console/aboutApplication
Starting Oracle Enterprise Manager 10g Database Control .............. started.
------------------------------------------------------------------
Logs are generated in directory
/opt/oracle/product/10.2.0/danaly.hurrray.com.cn_danaly/sysman/log  

重启 EM :

emctl stop dbconsole

emctl start dbconsole

现在登陆Web页面,EM显示就可以正常显示中文了.

http://192.168.211.50:1158/em/

 

下面为web 登录isqlplus 界面,首先登录时也会乱码,在清除cache后,正常显示

$ORACLE_HOME/oc4j/j2ee/oc4j_applications/applications/isqlplus/isqlplus/cabo/images/cache/<你的语言e.g "zhs"/
再重启下sqlplus

http://192.168.211.50:5560/isqlplus/

参考了一些文件,还有说 $ORACLE_HOME/javavm/lib/ojvmfonts/ 目录下的font.propertions, 这个我没修改,还是可以正常显示中文的

 

参考链接:

http://www.hxre.org/post/40.html

发表于: 2008-01-15 ,修改于: 2008-01-15 15:11,已浏览187次,有评论0条 推荐 投诉


网友评论

发表评论