隨筆 - 1, 文章 - 44, 評(píng)論 - 2, 引用 - 0
          數(shù)據(jù)加載中……

          Oracle10g EM亂碼之快速解決

          一直沒怎么用10g的EM工具,今天打開來看看,發(fā)現(xiàn)也有相傳已久的亂碼問題.網(wǎng)上也流傳著N種解決方案,仔細(xì)看一下,其實(shí)這個(gè)問題很好解決.

          如果安裝時(shí),我們系統(tǒng)環(huán)境變量設(shè)置的是中文環(huán)境,那么就不會(huì)有這個(gè)問題.這個(gè)問題根本原因在于安裝時(shí),JDK/JRE字符集的自動(dòng)選擇.

          在 $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?

          清除所有g(shù)if文件即可.然后重新啟動(dòng)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 ?

          現(xiàn)在登陸Web頁(yè)面,EM顯示就可以正常顯示中文了.

          posted on 2006-12-06 15:20 ASONG 閱讀(178) 評(píng)論(0)  編輯  收藏 所屬分類: database

          主站蜘蛛池模板: 双鸭山市| 阿图什市| 广平县| 定州市| 长宁区| 昌平区| 垦利县| 双江| 侯马市| 张家界市| 嘉黎县| 会宁县| 宁城县| 定陶县| 肥西县| 南城县| 阿城市| 区。| 赤水市| 封开县| 闻喜县| 安国市| 美姑县| 集贤县| 蒙自县| 佛山市| 无极县| 新建县| 治多县| 沁源县| 渭南市| 大同市| 临泉县| 紫云| 翁牛特旗| 原阳县| 淅川县| 宁陵县| 姚安县| 犍为县| 开阳县|