oracle em 按钮乱码现象

来源:互联网 发布:windows oracle主备 编辑:程序博客网 时间:2024/05/17 15:57

1.$ORACLE_HOME/jdk/jre/lib里找到font.properties文件。把它复制一份,更名为font.properties.bak 

2.$ORACLE_HOME/jdk/jre/lib里找到font.properties.zh_CN.Redhat文件。

更名为font.properties,把原文件替换掉。 

3.确认font.properties,最后一行字体信息正确

filename.-misc-zysong18030-medium-r-normal--*-%d-*-*-c-*-iso10646-1=/usr/share/fonts/zh_CN/TrueType/zysong.ttf 

4.把刚改好的文件复制到一下目录,并替换掉原文件。

$ORACLE_HOME/jre/1.4.2/lib

$ORACLE_HOME/javavm/lib/ojvmfonts 

5.emctl stopdbconsole em停掉; 

6.进入$ORACLE_HOME/oc4j/j2ee/oc4j_applications/applications/em/em/cabo/images/cache/zhs

把里面的所有GIF文件删除; 

7.emctl stopdbconsole 

以下是具体操作过程:

[oracle@sun ~]$ cd$ORACLE_HOME/jdk/jre/lib

[oracle@sun lib]$ cpfont.properties font.properties.bak

[oracle@sunlib]$vi  font.properties

filename.-misc-zysong18030-medium-r-normal--*-%d-*-*-c-*-iso10646-1=/usr/share/fonts/zh_CN/TrueType/zysong.ttf

该文件最后一行为:

经查/usr/share/fonts/zh_CN/TrueType/zysong.ttf

目录fonts下,根本不存在zh_CN

因此需要安装中文包

 

[root@sun isolinux]# yum -ygroupinstall chinese-support 

Loaded plugins: rhnplugin,security

This system is not registeredwith RHN.

RHN support will bedisabled.

Setting up GroupProcess

rhel-debuginfo/group                                                                                        | 1.0MB    00:00    

ResolvingDependencies

--> Runningtransaction check

---> PackageDeployment_Guide-zh-CN.noarch 0:5.2-11 set to be updated

---> PackageDeployment_Guide-zh-TW.noarch 0:5.2-11 set to be updated

---> Packagefonts-chinese.noarch 0:3.02-12.el5 set to be updated

---> Packagelv.i386 0:4.51-8.1 set to be updated

---> Packagescim-bridge-gtk.i386 0:0.4.5-9.el5 set to be updated

--> ProcessingDependency: scim-bridge = 0.4.5-9.el5 for package:scim-bridge-gtk

---> Packagescim-chewing.i386 0:0.3.1-11.el5 set to be updated

--> ProcessingDependency: libscim-gtkutils-1.0.so.8 for package:scim-chewing

--> ProcessingDependency: libscim-1.0.so.8 for package: scim-chewing

--> ProcessingDependency: scim for package: scim-chewing

--> ProcessingDependency: libchewing.so.3 for package: scim-chewing

--> ProcessingDependency: libscim-1.0.so.8(LIBSCIM_1.0) for package:scim-chewing

---> Packagescim-chinese-standard.i386 0:0.0.2-1.el5 set to beupdated

---> Packagescim-pinyin.i386 0:0.5.91-16.el5 set to be updated

---> Packagescim-qtimm.i386 0:0.9.4-5 set to be updated

---> Packagescim-tables-chinese.i386 0:0.5.6-7 set to be updated

--> ProcessingDependency: scim-tables = 0.5.6 for package:scim-tables-chinese

---> Packagestardict.i386 0:2.4.5-5 set to be updated

--> Runningtransaction check

---> Packagelibchewing.i386 0:0.3.0-8.el5 set to be updated

---> Packagescim.i386 0:1.4.4-41.el5 set to be updated

---> Packagescim-bridge.i386 0:0.4.5-9.el5 set to be updated

---> Packagescim-libs.i386 0:1.4.4-41.el5 set to be updated

---> Packagescim-tables.i386 0:0.5.6-7 set to be updated

--> FinishedDependency Resolution

 

DependenciesResolved

 

====================================================================================================================================

 Package                               Arch                  Version                        Repository                     Size

====================================================================================================================================

Installing:

 Deployment_Guide-zh-CN                noarch                5.2-11                         rhel-debuginfo                2.2 M

 Deployment_Guide-zh-TW                noarch                5.2-11                         rhel-debuginfo                2.9 M

 fonts-chinese                         noarch                3.02-12.el5                    rhel-debuginfo                 24 M

 lv                                    i386                  4.51-8.1                       rhel-debuginfo                423k

 scim-bridge-gtk                       i386                  0.4.5-9.el5                    rhel-debuginfo                 37 k

 scim-chewing                          i386                  0.3.1-11.el5                   rhel-debuginfo                 63 k

 scim-chinese-standard                 i386                  0.0.2-1.el5                    rhel-debuginfo                 87 k

 scim-pinyin                           i386                  0.5.91-16.el5                  rhel-debuginfo                2.3 M

 scim-qtimm                            i386                  0.9.4-5                        rhel-debuginfo                 63 k

 scim-tables-chinese                   i386                  0.5.6-7                        rhel-debuginfo                6.2 M

 stardict                              i386                  2.4.5-5                        rhel-debuginfo                833 k

Installing fordependencies:

 libchewing                            i386                  0.3.0-8.el5                    rhel-debuginfo                2.8 M

 scim                                  i386                  1.4.4-41.el5                   rhel-debuginfo                517 k

 scim-bridge                           i386                  0.4.5-9.el5                    rhel-debuginfo                109 k

 scim-libs                             i386                  1.4.4-41.el5                   rhel-debuginfo                452 k

 scim-tables                           i386                  0.5.6-7                        rhel-debuginfo                352 k

 

Transaction Summary

====================================================================================================================================

Install    16Package(s)        

Update      0Package(s)        

Remove      0Package(s)        

 

Total download size: 43M

DownloadingPackages:

------------------------------------------------------------------------------------------------------------------------------------

Total                                                                                              885 MB/s |  43MB    00:00    

Runningrpm_check_debug

Running TransactionTest

Finished TransactionTest

Transaction TestSucceeded

Running Transaction

 Installing    :Deployment_Guide-zh-TW                                                                                     1/16

 Installing    :fonts-chinese                                                                                              2/16

 Installing    :Deployment_Guide-zh-CN                                                                                     3/16

 Installing    :scim-libs                                                                                                  4/16

 Installing    :scim                                                                                                       5/16

 Installing    :scim-bridge                                                                                                6/16

 Installing    :scim-tables                                                                                                7/16

 Installing    :libchewing                                                                                                 8/16

 Installing    :scim-chinese-standard                                                                                      9/16

 Installing    :scim-bridge-gtk                                                                                           10/16

 Installing    :scim-qtimm                                                                                                11/16

 Installing    :scim-chewing                                                                                              12/16

 Installing    :stardict                                                                                                  13/16

 Installing    :scim-pinyin                                                                                               14/16

 Installing    :scim-tables-chinese                                                                                       15/16

 Installing    :lv                                                                                                        16/16

 

Installed:

 Deployment_Guide-zh-CN.noarch0:5.2-11       Deployment_Guide-zh-TW.noarch0:5.2-11     fonts-chinese.noarch0:3.02-12.el5    

  lv.i3860:4.51-8.1                           scim-bridge-gtk.i3860:0.4.5-9.el5         scim-chewing.i3860:0.3.1-11.el5      

 scim-chinese-standard.i3860:0.0.2-1.el5     scim-pinyin.i3860:0.5.91-16.el5           scim-qtimm.i3860:0.9.4-5             

 scim-tables-chinese.i3860:0.5.6-7           stardict.i3860:2.4.5-5                   

 

DependencyInstalled:

 libchewing.i3860:0.3.0-8.el5   scim.i3860:1.4.4-41.el5   scim-bridge.i3860:0.4.5-9.el5   scim-libs.i3860:1.4.4-41.el5  

 scim-tables.i3860:0.5.6-7     

 

Complete!

[root@sun isolinux]# vi/etc/sysconfig/i18n

 

#LANG="en_US.UTF-8"

#SYSFONT="latarcyrheb-sun16"

 

LANG="zh_CN.UTF-8"

SUPPORTED="zh_CN:zh:en_US.UTF-8:en_US:en:zh_CN.GB18030"

SYSFONT="latarcyrheb-sun16"

~

然后查找对应fonts

[root@sun fonts]#ls

bitmap-fonts bitstream-vera  chinese default  dejavu-lgc liberation  zh_TW

[root@sun share]# cdfonts/

[root@sun fonts]#ls

bitmap-fonts bitstream-vera  chinese default  dejavu-lgc liberation  zh_TW

[root@sun fonts]# cdchinese/

[root@sun chinese]#ls

misc TrueType

[root@sun chinese]# cdT

-bash: cd: T: No such file ordirectory

[root@sun chinese]# cdTrueType/

[root@sun TrueType]#ls

fonts.dir fonts.scale  ukai.ttf uming.ttf

[root@sunTrueType]# 有两种字体可选,最后一行编辑为对应字体。

[root@sun TrueType]# su -oracle

[oracle@sun ~]$ cd$ORACLE_HOME/jdk/jre/lib

[oracle@sun lib]$ vifont.properties

 

 

filename.-misc-zysong18030-medium-r-normal--*-%d-*-*-c-*-iso10646-1=/usr/share/fonts/zh_CN/TrueType/zysong.ttf

更改为(更改为存在的一种字体即可,这里是uming.ttf):

filename.-misc-zysong18030-medium-r-normal--*-%d-*-*-c-*-iso10646-1=/usr/share/fonts/chinese/TrueType/uming.ttf

拷贝文件

[oracle@sun ~]$ cp/oracle/product/1021/jdk/jre/lib/font.properties$ORACLE_HOME/jre/1.4.2/lib/font.properties

[oracle@sun ~]$ cp/oracle/product/1021/jdk/jre/lib/font.properties$ORACLE_HOME/javavm/lib/ojvmfonts/font.properties

重启,

[oracle@sun ~]$ emctl stopdbconsole

TZ set to PRC

Oracle Enterprise Manager 10gDatabase Control Release 10.2.0.1.0 

Copyright (c) 1996, 2005Oracle Corporation.  All rightsreserved.

http://sun.localdomain:1158/em/console/aboutApplication

Stopping Oracle EnterpriseManager 10g Database Control ...

 ... Stopped.

[oracle@sun ~]$ emctl startdbconsole

http://192.168.66.110:1158/em/

按钮中文字体正常

0 0
原创粉丝点击