首页 > 数据库 > Oracle > 正文

针对Oracle10g EM乱码之快速解决方法

2024-08-29 13:32:42
字体:
来源:转载
供稿:网友

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

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

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

[[email protected] ~]$ cd $oracle_home/jdk/jre/lib[[email protected] 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[[email protected] lib]$ cd $oracle_home/jre/1.4.2/lib/[[email protected] 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来替换缺省字体定义文件:

[[email protected] 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:

[[email protected] zhs]$ emctl stop dbconsoletz set to prcoracle 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/aboutapplicationstopping oracle enterprise manager 10g database control ...  ...  stopped. [[email protected] zhs]$ emctl start dbconsoletz set to prcoracle 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/aboutapplicationstarting 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
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表