eygle.com   eygle.com
eygle.com  
 

« Julia and Eygle | Blog首页 | Google中文桌面第3版Beta发布 »

Oracle10g EM乱码之快速解决

作者:eygle |【转载时请以超链接形式标明文章和作者信息及本声明
链接:

一直没怎么用10g的EM工具,今天打开来看看,发现也有相传已久的乱码问题.网上也流传着N种解决方案,仔细看一下,其实这个问题很好解决.

如果安装时,我们系统环境变量设置的是中文环境,那么就不会有这个问题.这个问题根本原因在于安装时,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  

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

 

By eygle on 2006-03-23 15:19 | Comments (2) | Posted to Oracle10g/11g | Edit |Pageviews:

相关文章 随机文章
  • Oracle10g新进程 MMON 和 MMNL
  • 鸡肋-ORACLE10g自动收集CBO统计信息
  • 安装了Oracle10g 10.2.0.3 感受众多BUG
  • Oracle中独一无二的Cache对象
  • Oracle10g中过程(PROCEDURE )重建的增强
  • Oracle 10g Linux ASMLib Install Notes
    千里不同天 从东北回到北京
    我们应该如何爱护自己?
    如何使用ordered提示改变SQL执行计划
    使用REF CURSOR处理Oracle的结果集
    网上相关主题:
    Google

    留言 (2)

    大虾的方案确实不错,已完美解决EM乱码问题,但不知isqlplus下的乱麻如何解决?请大虾指教!!!

    Posted by: zhu_yc at January 13, 2007 3:21 PM

    [oracle@danaly lib]$ cp font.properties.zh_CN.Redhat font.properties
    不明白 你是拷贝哪个目录下的?
    cd $ORACLE_HOME/jdk/jre/lib

    cd $ORACLE_HOME/jre/1.4.2/lib/

    Posted by: zengmuansha at June 17, 2008 10:16 AM

    发表留言:



    Remember Me?
    (输入验证码后方可评论,谢谢支持)



    CopyRight © 2004 eygle.com, All rights reserved.