解析:教你快速的掌握EM乱码的解决方法

文章作者 100test 发表时间 2008:03:31 11:52:06
来源 100Test.Com百考试题网


问:Oracle 10g EM乱码问题应当如何解决?

答:你在安装时,系统环境变量设置为中文环境,就不会出现这个问题了,出现这个问题的原因在于安装时,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 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. [oracle@danaly 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

此时,登陆到Web页面,EM就会显示中文了。



相关文章


Oracle监听服务启动失败解决方法
Oracle11g最突出的五大特性
教你轻松掌握Oracle与FoxPro的数据转换
解析:执行0drop表操作后数据库无法起动
解析:教你快速的掌握EM乱码的解决方法
解析:索引跳跃式扫描(indexski can)
教你快速理解Oracle归档模式的命令及参数
细化解析:Oracle数据库的空间使用和管理
oracle9i中listpartitioning方法增加了灵活性
澳大利亚华人论坛
考好网
日本华人论坛
华人移民留学论坛
英国华人论坛