操作系统:Red Hat Enterprise Linux AS release 5
语言安装的为英文,安装完Oracle数据库后,通过企业管理器登陆,点击的按钮显示乱码。
先关闭em,再重新安装中文字体, 再覆盖font.properties文件,再删除*.gif, 再启动em
1,重新安装中文支持
ttfonts-zh_CN-2.14-6.noarch.rpm 下载:http://rpm.pbone.net/
[root@tonykorn97 ~]# rpm -ivh ttfonts-zh_CN-2.14-6.noarch.rpm
warning: ttfonts-zh_CN-2.14-6.noarch.rpm: V3 DSA signature: NOKEY, key ID db42a60e
Preparing... ########################################### [100%]
1:ttfonts-zh_CN ########################################### [100%]
[root@tonykorn97 ~]#
或直接拷贝sysong.ttf文件到font.properties最后一行指定的目录里
2,安装如下步骤操作:
企业管理器已经关闭了
[root@tonykorn97 ~]# su - oracle
[oracle@tonykorn97 ~]$ cd $ORACLE_HOME/jdk/jre/lib
[oracle@tonykorn97 lib]$ ls -al font*zh_CN*
-rwxr-xr-x 1 oracle oinstall 6854 Apr 20 2005 font.properties.zh_CN.Redhat
-rwxr-xr-x 1 oracle oinstall 7410 Apr 20 2005 font.properties.zh_CN.Redhat2.1
-rwxr-xr-x 1 oracle oinstall 6845 Apr 20 2005 font.properties.zh_CN.Sun
-rwxr-xr-x 1 oracle oinstall 7137 Apr 20 2005 font.properties.zh_CN_UTF8.Sun
[oracle@tonykorn97 lib]$ cp font.properties.zh_CN.Redhat font.properties
[oracle@tonykorn97 lib]$ cd $ORACLE_HOME/jre/1.4.2/lib/
[oracle@tonykorn97 lib]$ ls -al font*.zh_CN*
-rwxr-xr-x 1 oracle oinstall 6854 Apr 6 2005 font.properties.zh_CN.Redhat
-rwxr-xr-x 1 oracle oinstall 7410 Apr 6 2005 font.properties.zh_CN.Redhat2.1
-rwxr-xr-x 1 oracle oinstall 6845 Apr 6 2005 font.properties.zh_CN.Sun
-rwxr-xr-x 1 oracle oinstall 7137 Apr 6 2005 font.properties.zh_CN_UTF8.Sun
[oracle@tonykorn97 lib]$ cp font.properties.zh_CN.Redhat font.properties
[oracle@tonykorn97 lib]$ cd $ORACLE_HOME/oc4j/j2ee/oc4j_applications/applications/em/em/cabo/images/cache/zhs
[oracle@tonykorn97 zhs]$ rm -rf *.gif
[oracle@tonykorn97 zhs]$ 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://tonykorn97:1158/em/console/aboutApplication
Starting Oracle Enterprise Manager 10g Database Control ........ started.
------------------------------------------------------------------
Logs are generated in directory /oracle/app/oracle/product/10.2.0/Database/tonykorn97_szrrlcw/sysman/log
[oracle@tonykorn97 zhs]$
------------------------------------------------------------
EM按钮乱码问题
||
[oracle@RHEL lib]$ ls font*zh_CN*
font.properties.zh_CN.Redhat font.properties.zh_CN.Sun
font.properties.zh_CN.Redhat2.1 font.properties.zh_CN_UTF8.Sun
$ORACLE_HOME/jre/1.4.2/lib/font.properties
$ORACLE_HOME/jdk/jre/lib/font.properties
[oracle@RHEL lib]$ cp font.properties.zh_CN.Sun font.properties (上面每个都改)
Cache路径通常位于:
$ORACLE_HOME/oc4j/j2ee/oc4j_applications/applications/em/em/cabo/images/cache/zhs
filename.-misc-fzsongti-medium-r-normal--*-%d-*-*-p-*-gbk-0=/usr/share/fonts/chinese/TrueType/***.TTF (***与=/usr/share/fonts/chinese/TrueType/的.TTF文件有关,就是名字改成一样)
# appendedfontpath=/usr/X11R6/lib/X11/fonts/truetype (把原来的注释了)
appendedfontpath=/usr/share/fonts/chinese/TrueType
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/27042095/viewspace-742465/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/27042095/viewspace-742465/