oracle em 按鈕亂碼現象
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 stop dbconsole 把em停掉;
6.進入$ORACLE_HOME/oc4j/j2ee/oc4j_applications/applications/em/em/cabo/images/cache/zhs
把裡面的所有GIF檔案刪除;
7.emctl stop dbconsole
以下是具體操作過程:
[oracle@sun ~]$ cd $ORACLE_HOME/jdk/jre/lib
[oracle@sun lib]$ cp font.properties font.properties.bak
[oracle@sun lib]$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 -y groupinstall chinese-support
Loaded plugins: rhnplugin, security
This system is not registered with RHN.
RHN support will be disabled.
Setting up Group Process
rhel-debuginfo/group | 1.0 MB 00:00
Resolving Dependencies
--> Running transaction check
---> Package Deployment_Guide-zh-CN.noarch 0:5.2-11 set to be updated
---> Package Deployment_Guide-zh-TW.noarch 0:5.2-11 set to be updated
---> Package fonts-chinese.noarch 0:3.02-12.el5 set to be updated
---> Package lv.i386 0:4.51-8.1 set to be updated
---> Package scim-bridge-gtk.i386 0:0.4.5-9.el5 set to be updated
--> Processing Dependency: scim-bridge = 0.4.5-9.el5 for package: scim-bridge-gtk
---> Package scim-chewing.i386 0:0.3.1-11.el5 set to be updated
--> Processing Dependency: libscim-gtkutils-1.0.so.8 for package: scim-chewing
--> Processing Dependency: libscim-1.0.so.8 for package: scim-chewing
--> Processing Dependency: scim for package: scim-chewing
--> Processing Dependency: libchewing.so.3 for package: scim-chewing
--> Processing Dependency: libscim-1.0.so.8(LIBSCIM_1.0) for package: scim-chewing
---> Package scim-chinese-standard.i386 0:0.0.2-1.el5 set to be updated
---> Package scim-pinyin.i386 0:0.5.91-16.el5 set to be updated
---> Package scim-qtimm.i386 0:0.9.4-5 set to be updated
---> Package scim-tables-chinese.i386 0:0.5.6-7 set to be updated
--> Processing Dependency: scim-tables = 0.5.6 for package: scim-tables-chinese
---> Package stardict.i386 0:2.4.5-5 set to be updated
--> Running transaction check
---> Package libchewing.i386 0:0.3.0-8.el5 set to be updated
---> Package scim.i386 0:1.4.4-41.el5 set to be updated
---> Package scim-bridge.i386 0:0.4.5-9.el5 set to be updated
---> Package scim-libs.i386 0:1.4.4-41.el5 set to be updated
---> Package scim-tables.i386 0:0.5.6-7 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
====================================================================================================================================
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 423 k
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 for dependencies:
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 16 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Total download size: 43 M
Downloading Packages:
------------------------------------------------------------------------------------------------------------------------------------
Total 885 MB/s | 43 MB 00:00
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
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.noarch 0:5.2-11 Deployment_Guide-zh-TW.noarch 0:5.2-11 fonts-chinese.noarch 0:3.02-12.el5
lv.i386 0:4.51-8.1 scim-bridge-gtk.i386 0:0.4.5-9.el5 scim-chewing.i386 0:0.3.1-11.el5
scim-chinese-standard.i386 0:0.0.2-1.el5 scim-pinyin.i386 0:0.5.91-16.el5 scim-qtimm.i386 0:0.9.4-5
scim-tables-chinese.i386 0:0.5.6-7 stardict.i386 0:2.4.5-5
Dependency Installed:
libchewing.i386 0:0.3.0-8.el5 scim.i386 0:1.4.4-41.el5 scim-bridge.i386 0:0.4.5-9.el5 scim-libs.i386 0:1.4.4-41.el5
scim-tables.i386 0: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]# cd fonts/
[root@sun fonts]# ls
bitmap-fonts bitstream-vera chinese default dejavu-lgc liberation zh_TW
[root@sun fonts]# cd chinese/
[root@sun chinese]# ls
misc TrueType
[root@sun chinese]# cd T
-bash: cd: T: No such file or directory
[root@sun chinese]# cd TrueType/
[root@sun TrueType]# ls
fonts.dir fonts.scale ukai.ttf uming.ttf
[root@sun TrueType]# 有兩種字型可選,最後一行編輯為對應字型。
[root@sun TrueType]# su - oracle
[oracle@sun ~]$ cd $ORACLE_HOME/jdk/jre/lib
[oracle@sun lib]$ vi font.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 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.
Stopping Oracle Enterprise Manager 10g Database Control ...
... Stopped.
[oracle@sun ~]$ emctl start dbconsole
http://192.168.66.110:1158/em/
按鈕中文字型正常
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/24179204/viewspace-2126783/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle EM按鈕亂碼問題Oracle
- EM按鈕亂碼問題
- (轉)Oracle 11g x64 em 按鈕亂碼Oracle
- oracle10g oem web介面按鈕亂碼(轉摘)OracleWeb
- em 出現亂碼的處理
- 防止表單提交按鈕重複點選現象程式碼例項
- Oracle 10g EM 亂碼問題Oracle 10g
- Oracle10g EM亂碼解決Oracle
- 10g控制檯按鈕亂碼的解決
- 為什麼網頁出現亂碼現象網頁
- Oracle10g EM亂碼之快速解決Oracle
- oracle 10g em 亂碼問題解決方法Oracle 10g
- oracle 10g em 登入亂碼的解決Oracle 10g
- mysql亂碼現象及對字符集的理解MySql
- Jmeter json格式 unicode亂碼現象解決方法JMeterJSONUnicode
- 按鈕上面的按鈕 (轉)
- 動態建立script引入js檔案導致亂碼現象JS
- 使用 SecureCRT連線 linux 主機,會有亂碼現象SecurecrtLinux
- JavaFx 實現按鈕防抖Java
- 實現浮動按鈕 (轉)
- 按鈕
- 解決AIX 5.3 & Oracle 10g EM中出現的亂嗎問題AIOracle 10g
- UITableview重新整理時介面“亂跑”現象UIView
- CSS實現帶箭頭按鈕CSS
- css實現圓角按鈕效果CSS
- 單選按鈕美化效果程式碼
- Simple WPF: WPF 實現按鈕的長按,短按功能
- 按鈕禁用
- Bootstrap 按鈕boot
- css3實現的開關按鈕程式碼例項CSSS3
- css3實現button按鈕美化效果程式碼例項CSSS3
- 如何使用angularjs實現按鈕事件AngularJS事件
- jQuery操作單選按鈕程式碼示例jQuery
- javascript開關按鈕程式碼例項JavaScript
- 各種語言按鈕事件特徵碼事件特徵
- Fiori Elements List Report table 裡的普通按鈕,Global 按鈕 和 Determining 按鈕
- 窗體(文字框,按鈕,單選按鈕,標籤)
- oracle 中文亂碼Oracle