问题描述
发现用windows访问linux安装的oracle时oem按钮总是乱码,整理解决方法如下:
解决方法
1、暂时关闭oem
[oracle@orclasm 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、复制并覆盖相关文件
[oracle@orclasm ~]$ cd $ORACLE_HOME/jdk/jre/lib
[oracle@orclasm lib]$ cp font.properties font.properties.1.bat
[oracle@orclasm lib]$ cp font.properties.zh_CN.Redhat font.properties
[oracle@orclasm ~]$ cd $ORACLE_HOME/jre/1.4.2/lib/
[oracle@orclasm lib]$ cp font.properties font.properties.1.bat
[oracle@orclasm lib]$ cp font.properties.zh_CN.Redhat font.properties
3、为oem配置中文字符
如果没有/usr/share/fonts/zh_CN/TrueType/目录需要手动创建
[root@orclasm ~]# cd /usr/share/fonts/
[root@orclasm fonts]# mkdir -p zh_CN/TrueType/
把windows中的宋体对应的ttf文件copy到该目录下,命名为zysong.ttf,或者也可以去网上下载zysong.ttf
下载地址:
http://download.csdn.net/detail/ttrr502/7700141
[root@orclasm TrueType]# mv ~/simsun.ttc /usr/share/fonts/zh_CN/TrueType/zysong.ttf
[root@orclasm fonts]# cd zh_CN/TrueType/
[root@orclasm TrueType]# ls
zysong.ttf
5、清理缓存的图片
[root@orclasm share]# cd /u01/app/oracle/10.2.0/db_1/oc4j/j2ee/oc4j_applications/applications/em/em/cabo/images/cache/zhs/
[root@orclasm zhs]# mkdir gif_bak
[root@orclasm zhs]# mv *.gif gif_bak
[root@orclasm zhs]# mkdir imx_bak
[root@orclasm zhs]# mv *.imx imx_bak
5、启动oem
[oracle@orclasm ~]$ 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
问题解决,效果如图:
本文转自ICT时空 dbasdk博客,原文链接:WINDOWS访问OEM乱码解决 ,如需转载请自行联系原博主。