当前位置:Gxlcms > mysql > Oracle11g如何处理EM按键乱码

Oracle11g如何处理EM按键乱码

时间:2021-07-01 10:21:17 帮助过:47人阅读

今天用Mac连接VMware Fusion虚拟机数据库,突然想用EM,忽然发现确定按键为乱码。虽然是个字体的问题,但是这里面覆盖的内容还是

今天用Mac连接VMware Fusion虚拟机数据库,突然想用EM,忽然发现确定按键为乱码。如下图:

Oracle 11g如何处理EM按键乱码

分析:解决问题就是找到正确的字体。

处理方法:

1. 通过Windows机器c:\windows\fonts下找到simsun.ttc 这样的字体文件。

2. 在$Oracle_home/jdk/jre/lib/fonts 目录下新建文件夹,名字为fallback

[oracle@test ~]$ cd $ORACLE_HOME/jdk/jre/lib/fonts/
[oracle@test fonts]$ mkdir fallback

3. 将simsun.ttc上传到linux机器刚刚建立的fallback目录中并改名为simsum.ttf

ftp上传省略

[oracle@test fallback]$ ls
simsun.ttc
[oracle@test fallback]$ mv simsun.ttc simsun.ttf
[oracle@test fallback]$ ls
simsun.ttf

4. 清理cache

[oracle@test fallback]$ cd /11g/app/oracle/product/11.1.0/dbhome_1/oc4j/j2ee/oc4j_applications/applications/em/em/cabo/images/cache/zhs/
[oracle@test zhs]$ ls
b049hVl.imx b498zwk.imx b70gpYl.imx bb5DgWk-2.imx bb5DgWk.imx beeJtrj.imx
b0byrAl.imx b54Gjjk.imx b8f_7mj.imx bb5DgWk-3.gif bb5e67kMn.imx bf8f3pRUd.imx
b11ZkGl.imx b5b-vtk.imx ba936LkSR.imx bb5DgWk-3.imx bbaGAYl.imx t00MaF3.imx
b2549BKrI.imx b61CMCk.imx bb06006NO.imx bb5DgWk-4.gif bbcbaZ4nV.imx t0MaF3.imx
b48tkDl.imx b6956szjB.imx bb5DgWk-1.imx bb5DgWk-4.imx beaVDSk.imx
[oracle@test zhs]$ rm -rf *.gif

5. 重新启动EM

[oracle@test zhs]$ emctl status dbconsole
Oracle Enterprise Manager 11g Database Control Release 11.2.0.1.0
Copyright (c) 1996, 2009 Oracle Corporation. All rights reserved.
https://test:1158/em/console/aboutApplication
Oracle Enterprise Manager 11g is running.
------------------------------------------------------------------
Logs are generated in directory /11g/app/oracle/product/11.1.0/dbhome_1/test_orcl/sysman/log
[oracle@test zhs]$ emctl stop dbconsole
Oracle Enterprise Manager 11g Database Control Release 11.2.0.1.0
Copyright (c) 1996, 2009 Oracle Corporation. All rights reserved.
https://test:1158/em/console/aboutApplication
Stopping Oracle Enterprise Manager 11g Database Control ...
... Stopped.
[oracle@test zhs]$ emctl start dbconsole
Oracle Enterprise Manager 11g Database Control Release 11.2.0.1.0
Copyright (c) 1996, 2009 Oracle Corporation. All rights reserved.
https://test:1158/em/console/aboutApplication
Starting Oracle Enterprise Manager 11g Database Control ................... started.
------------------------------------------------------------------
Logs are generated in directory /11g/app/oracle/product/11.1.0/dbhome_1/test_orcl/sysman/log
[oracle@test zhs]$

6. 打开EM,字体恢复中文正常

Oracle 11g如何处理EM按键乱码

总结:虽然是个字体的问题,,但是这里面覆盖的内容还是挺多的,本人也是通过借鉴他人的文章才处理的这么快,感谢分享文章的朋友们,又处理完个新问题,好happy。

本文永久更新链接地址

人气教程排行