如何解決Oracle 10g EM圖片亂碼問題
相信這個問題一直困擾著很多朋友,除了Oracle 10g em本身的問題之外,網上N多互相抄襲的文章誤導大家也是一個重要原因。還是回到這個問題上吧,注意下圖右下角的按鈕:
解決方法主要有兩種,一種是繞開他,以IE為例,選擇'工具"-->“Internet選項”-->“常規”,選擇 “語言”,默認只有 “中文”,選擇 “添加”, 加入 “英語(美國)” ,調整順序, 把“英語(美國)”移動到最上面,說白了就是把讓EM認為客戶端環境是英文就OK了。
第二種方法就是改,長話短說,分別到以下三個目錄中將 font.properties.zh_CN.Redhat 替換 font.properties :
cd $ORACLE_HOME/jdk/jre/lib cp font.properties.zh_CN.Redhat font.properties cd $ORACLE_HOME/jre/1.4.2/lib cp font.properties.zh_CN.Redhat font.properties cd $ORACLE_HOME/javavm/lib/ojvmfonts cp font.properties.zh_CN.Redhat font.properties
新的 font.properties 文件最后一行指定的字體文件 /usr/share/fonts/zh_CN/TrueType/zysong.ttf 要檢測一下是否存在:
[oracle@l004020 ojvmfonts]$ tail font.properties fontset.dialoginput.plain=\ -b&h-luxi mono-medium-r-normal--*-%d-*-*-m-*-iso8859-1,\ -isas-song ti-medium-r-normal--*-%d-*-*-c-*-gb2312.1980-0 fontset.default=\ -b&h-luxi sans-medium-r-normal--*-%d-*-*-p-*-iso8859-1,\ -isas-song ti-medium-r-normal--*-%d-*-*-c-*-gb2312.1980-0 filename.-misc-zysong18030-medium-r-normal--*-%d-*-*-c-*-iso10646-1=/usr/share/fonts/zh_CN/TrueType/zysong.ttf [oracle@l004020 ojvmfonts]$ ls /usr/share/fonts/zh_CN/TrueType/zysong.ttf ls: /usr/share/fonts/zh_CN/TrueType/zysong.ttf: 沒有那個文件或目錄
如果不存在,就下載這個文件放到這個路徑: /usr/share/fonts/zh_CN/TrueType/zysong.ttf 。
最后清除緩存文件并重啟EM:
[oracle@l004020 zhs]$ emctl stop dbconsole [oracle@l004020 zhs]$ rm -rf $ORACLE_HOME/oc4j/j2ee/oc4j_applications/applications/em/em/cabo/images/cache/zhs/* [oracle@l004020 zhs]$ emctl start dbconsole
浙公網安備 33010602011771號