迪奥官网包包价格:解决oracle?10g?EM乱码问题_

来源:百度文库 编辑:九乡新闻网 时间:2024/04/20 17:28:30

解决oracle 10g EM乱码问题

原因:在安装时,系统环境变量不是设置成中文环境。这个问题相对简单,只要找到相对应的字符集文件替换缺省的文件就可以了。

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

$ cd $ORACLE_HOME/jdk/jre/lib
$ ls
TraceFormat.dat             font.properties.et          font.properties.ru_UTF8     graphics.jar
applet                      font.properties.et_UTF8     font.properties.sh          ibmcertpathprovider.jar
audio                       font.properties.hi          font.properties.sh_UTF8     ibmjaaslm.jar
charsets.jar                font.properties.hi_UTF8     font.properties.sh_YU       ibmjcefw.jar
cmm                         font.properties.hr          font.properties.sh_YU_UTF8  ibmjgssprovider.jar
colorname.properties        font.properties.hr_UTF8     font.properties.sk          ibmjssefips.jar
content-types.properties    font.properties.hu          font.properties.sk_UTF8     ibmjsseprovider.jar
core.jar                    font.properties.hu_UTF8     font.properties.sl          ibmorb.jar
ext                         font.properties.iw          font.properties.sl_UTF8     ibmorbapi.jar
flavormap.properties        font.properties.iw_UTF8     font.properties.sr          ibmpkcs.jar
font.properties             font.properties.ja          font.properties.sr_UTF8     images
font.properties.20091010    font.properties.ja_UTF8     font.properties.sr_YU       javaplugin.jar
font.properties.20091012    font.properties.ko          font.properties.sr_YU_UTF8  javax.comm.properties
font.properties.ISO8859_15  font.properties.ko_UTF8     font.properties.th          jaxp.properties
font.properties.UTF8        font.properties.lt          font.properties.th_UTF8     jaxp.properties.sample
font.properties.ar          font.properties.lt_UTF8     font.properties.tr          jvm.hprof.txt
font.properties.ar_UTF8     font.properties.lv          font.properties.tr_UTF8     logging.properties
font.properties.be          font.properties.lv_UTF8     font.properties.uk          psfont.properties
font.properties.be_UTF8     font.properties.mk          font.properties.uk_UTF8     security
font.properties.bg          font.properties.mk_UTF8     font.properties.zh          security.jar
font.properties.bg_UTF8     font.properties.pl          font.properties.zh_GB18030  server.jar
font.properties.cs          font.properties.pl_UTF8     font.properties.zh_TW       tzmappings
font.properties.cs_UTF8     font.properties.ro          font.properties.zh_TW_UTF8  xerces.properties
font.properties.el          font.properties.ro_UTF8     font.properties.zh_UTF8     xml.jar
font.properties.el_UTF8     font.properties.ru          fonts
$ cd $ORACLE_HOME/jre/1.4.2/lib
$ ls
TraceFormat.dat             font.properties.hi          font.properties.sh_YU       ibmjcefw.jar
applet                      font.properties.hi_UTF8     font.properties.sh_YU_UTF8  ibmjgssprovider.jar
audio                       font.properties.hr          font.properties.sk          ibmjssefips.jar
charsets.jar                font.properties.hr_UTF8     font.properties.sk_UTF8     ibmjsseprovider.jar
cmm                         font.properties.hu          font.properties.sl          ibmorb.jar
colorname.properties        font.properties.hu_UTF8     font.properties.sl_UTF8     ibmorbapi.jar
content-types.properties    font.properties.iw          font.properties.sr          ibmpkcs.jar
core.jar                    font.properties.iw_UTF8     font.properties.sr_UTF8     images
dt.jar                      font.properties.ja          font.properties.sr_YU       ir.idl
ext                         font.properties.ja_UTF8     font.properties.sr_YU_UTF8  javaplugin.jar
flavormap.properties        font.properties.ko          font.properties.th          javax.comm.properties
font.properties             font.properties.ko_UTF8     font.properties.th_UTF8     jaxp.properties
font.properties.ISO8859_15  font.properties.lt          font.properties.tr          jaxp.properties.sample
font.properties.UTF8        font.properties.lt_UTF8     font.properties.tr_UTF8     jvm.hprof.txt
font.properties.ar          font.properties.lv          font.properties.uk          lib
font.properties.ar_UTF8     font.properties.lv_UTF8     font.properties.uk_UTF8     logging.properties
font.properties.be          font.properties.mk          font.properties.zh          orb.idl
font.properties.be_UTF8     font.properties.mk_UTF8     font.properties.zh_GB18030  psfont.properties
font.properties.bg          font.properties.pl          font.properties.zh_TW       security
font.properties.bg_UTF8     font.properties.pl_UTF8     font.properties.zh_TW_UTF8  security.jar
font.properties.cs          font.properties.ro          font.properties.zh_UTF8     server.jar
font.properties.cs_UTF8     font.properties.ro_UTF8     fonts                       tools.jar
font.properties.el          font.properties.ru          graphics.jar                tzmappings
font.properties.el_UTF8     font.properties.ru_UTF8     htmlconverter.jar           xerces.properties
font.properties.et          font.properties.sh          ibmcertpathprovider.jar     xml.jar
font.properties.et_UTF8     font.properties.sh_UTF8     ibmjaaslm.jar

这里使用font.properties.zh_UTF8来替换缺省字体定义文件:

$ cp font.properties.zh_UTF8 font.properties 

然后清理一下EM 的Cache

Cache路径位于:

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

清除所有gif文件,然后重新启动EM:

$ emctl stop dbconsole
$ emctl start dbconsole

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