WD1X.COM - 问答一下,轻松解决,电脑应用解决专家
主板显卡CPU内存显示器
硬盘维修显卡维修显示器维修
注册表系统命令DOS命令Win8
存储光存储鼠标键盘
内存维修打印机维修
WinXPWin7Win11Linux
硬件综合机箱电源散热器手机数码
主板维修CPU维修键盘鼠标维修
Word教程Excel教程PowerPointWPS
网络工具系统工具图像工具
数据库javascript服务器
PHP教程CSS教程XML教程

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

更新时间:2008-01-17 09:06 作者:16103点击:

在我们安装Oracle数据库时,系统环境变量只要设置为中文环境,就不会出现"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就会显示中文了.

顶一下
(0)
0%
踩一下
(0)
0%
------分隔线----------------------------
你可能感兴趣的内容