Home > Database > Mysql Tutorial > body text

OEM按钮乱码问题解决

WBOY
Release: 2016-06-07 15:57:00
Original
1382 people have browsed it

一、出现问题: 在Linux环境中安装Oracle 10g,启用EM时,出现按钮显示乱码现象,如下: 二、分析问题: 因为在安装Oracle10g时,JDK/JRE自动选择了字符集,而在$ORACLE_HOME/jdk/jre/lib和$ORACLE_HOME/jre/1.4.2/lib目录下,都有多种字体。每一个目录下都

一、出现问题:

在Linux环境中安装Oracle 10g,启用EM时,出现按钮显示乱码现象,如下:

\

 

二、分析问题:

因为在安装Oracle10g时,JDK/JRE自动选择了字符集,而在$ORACLE_HOME/jdk/jre/lib和$ORACLE_HOME/jre/1.4.2/lib目录下,都有多种字体。每一个目录下都有一个缺省的字符集font.properties,我们只要用合适的中文字符集来替换缺省字符集即可。下面解决时选择的是“font.properties.zh_TW.Redhat”。

三、解决问题:

1.先停止OEM

emctl stop dbconsole

2.在每个目录都透过以下指令覆盖档案

cp$ORACLE_HOME/jdk/jre/lib/font.properties.zh_TW.Redhat$ORACLE_HOME/jdk/jre/lib/font.properties

cp $ORACLE_HOME/jre/1.4.2/lib/font.properties.zh_TW.Redhat$ORACLE_HOME/jre/1.4.2/lib/font.properties

cp$ORACLE_HOME/javavm/lib/ojvmfonts/font.properties.zh_TW.Redhat$ORACLE_HOME/javavm/lib/ojvmfonts/font.properties

3.分别编辑

vi$ORACLE_HOME/jdk/jre/lib/font.properties

vi $ORACLE_HOME/jre/1.4.2/lib/font.properties

vi$ORACLE_HOME/javavm/lib/ojvmfonts/font.properties

修改最后一行的/usr/share/fonts/zh_CN/TrueType/zysong.ttf为/usr/share/fonts/chinese/TrueType/uming.ttf

4.进入OEM的图示路径,清除之前的档案

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

rm *.gif

rm *.imx

5.启动OEM

emctl start dbconsole

6.将em的网页显示变成英文

要查一下,linux中有没有安装相应的中文字符集,若没有说明没有安装相应中文字符集,可以到Linux的系统安装盘中去找到相应的rpm包,进行安装。(例:Linux是RHEL4版本,安装盘里是ttfonts-zh_CN-2.14-6.noarch.rpm版本的字符集)。或使用英文显示。

这里使用英文显示配置。

先查一下有没有中文字符集:

[oracle@gc1 lib]$ tailfont.properties

fontset.dialoginput.plain=\

-b&h-luximono-medium-r-normal--*-%d-*-*-m-*-iso8859-1,\

-isas-songti-medium-r-normal--*-%d-*-*-c-*-gb2312.1980-0

fontset.default=\

-b&h-luxisans-medium-r-normal--*-%d-*-*-p-*-iso8859-1,\

-isas-songti-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

根据最后一行的路径,查看该文件是否存在,作者查找发现没有,改用英文显示,如下配置:

打开你的IE浏览器, 选择'工具"-->"Internet选项"-->"常规", 选择 "语言", 默认只有 "中文", 选择 " 添加 ", 加入"英

语(美国)" , 调整顺序,把“英语(美国)”移动到最上面。

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!