Apr 28

[原]解决Oracle EM 乱码问题 晴

linuxing , 10:44 , 网络服务 » 商业软件 , 评论(0) , 引用(0) , 阅读(19780) , Via 本站原创 | |
    Oracle 10g提供了一个基于Web的管理工具EM(Enterprise Manager),使用比较方便。不过,如果您使用的是中文Linux环境,而在安装Oracle的时候,没有加上简体中文语言的话,那登陆时,可能会发现中文按钮都是类似"□□"字样的乱码。下面就是解决这问题的方法。
    该方法适合红旗Asianux 2.0、3.0等操作系统环境。

一、故障问题
打开http://ip:1158/em时,看到如下的显示,其中中文字符部分是乱码:
点击在新窗口中浏览此图片

二、解决问题
1、改变$ORACLE_HOME/jdk目录下的jre的默认字体

# su - oracle
$ cd $ORACLE_HOME/jdk/jre/lib/
$ ls font*zh_CN*

其中,font.properties是默认使用的字体。还可以看到font.properties.zh_CN.Redhat和其它的字体。

$ cp font.properties font.properties.bak
$ cp font.properties.zh_CN.Redhat font.properties

2、改变$ORACLE_HOME/jre下的默认字体
使用上面同样的方法来操作。

$ cd $ORACLE_HOME/jre/1.4.2/lib/
$ ls font*zh_CN*
$ cp font.properties font.properties.bak
$ cp font.properties.zh_CN.Redhat font.properties

3、删除Cache下的gif文件
em里面会用到这些图片:

$ cd $ORACLE_HOME/oc4j/j2ee/oc4j_applications/\
applications/em/em/cabo/images/cache/zhs/
$ ls *.gif
$ rm *.gif

※ 注意不要搞错目录,修改的是中文环境的。

4、重新启动EM服务

$ emctl stop dbconsole
$ emctl start dbconsole

进入EM看看中文问题是否已经解决。

新打开的界面如下:
点击在新窗口中浏览此图片
Tags: ,
发表评论
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
打开HTML
打开UBB
打开表情
隐藏
记住我
昵称   密码   游客无需密码
网址   电邮   [注册]