问题描述
发现用Windows访问Linux安装的Oracle时oem按钮总是乱码,整理解决方法如下:
OEM简介及按钮乱码问题 http://www.linuxidc.com/Linux/2013-03/80819.htm
解决方法
1、暂时关闭oem
[[email protected] log]$ 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://orclasm:1158/em/console/aboutApplication
Stopping Oracle Enterprise Manager 10g Database Control ...
... Stopped.
2、复制并覆盖相关文件
[[email protected] ~]$ cd $ORACLE_HOME/jdk/jre/lib
[[email protected] lib]$ cp font.properties font.properties.1.bat
[[email protected] lib]$ cp font.properties.zh_CN.RedHat font.properties
[[email protected] ~]$ cd $ORACLE_HOME/jre/1.4.2/lib/
[[email protected] lib]$ cp font.properties font.properties.1.bat
[[email protected] lib]$ cp font.properties.zh_CN.Redhat font.properties
3、为oem配置中文字符
如果没有/usr/share/fonts/zh_CN/TrueType/目录需要手动创建
[[email protected] ~]# cd /usr/share/fonts/
[[email protected] fonts]# mkdir -p zh_CN/TrueType/
把Windows中的宋体对应的ttf文件copy到该目录下,命名为zysong.ttf,或者也可以去网上下载zysong.ttf
下载地址:
------------------------------------------分割线------------------------------------------
免费下载地址在 http://linux.linuxidc.com/
用户名与密码都是www.linuxidc.com
具体下载目录在 /2014年资料/8月/1日/Windows访问OEM乱码解决
下载方法见 http://www.linuxidc.com/Linux/2013-07/87684.htm
------------------------------------------分割线------------------------------------------
[[email protected] TrueType]# mv ~/simsun.ttc /usr/share/fonts/zh_CN/TrueType/zysong.ttf
[[email protected] fonts]# cd zh_CN/TrueType/
[[email protected] TrueType]# ls
zysong.ttf
4、清理缓存的图片
[[email protected] share]# cd /u01/app/oracle/10.2.0/db_1/oc4j/j2ee/oc4j_applications/applications/em/em/cabo/images/cache/zhs/
[[email protected] zhs]# mkdir gif_bak
[[email protected] zhs]# mv *.gif gif_bak
[[email protected] zhs]# mkdir imx_bak
[[email protected] zhs]# mv *.imx imx_bak
5、启动oem
[[email protected] ~]$ 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://orclasm:1158/em/console/aboutApplication
Starting Oracle Enterprise Manager 10g Database Control .............................. started.
------------------------------------------------------------------
Logs are generated in directory /u01/app/oracle/10.2.0/db_1/orclasm_orcl/sysman/log
问题解决,效果如图:
更多Oracle相关信息见Oracle 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=12
本文永久更新链接地址:http://www.linuxidc.com/Linux/2014-08/104932.htm