当前位置:操作系统 > Unix/Linux >>

OEM简介及按钮乱码问题

OEM简介及按钮乱码问题
 
自ORACLE 9i之后,Oracle提供了一个基于Web图形化数据管理工具Oracle
企业管理器(Oracle Enterprise Manager),用来代替SQL命令来管理数据库。
Windows下OEM默认是开启的,可以直接访问,Linux下必须通过命令启
动,相关命令如下:  www.zzzyk.com  
--查看当前OEM状态
EMCTL STATUS DBCONSOLE;
--停止OEM
EMCTL STOP  DBCONSOLE;
--启动OEM  www.zzzyk.com  
EMCTL STRAT DBCONSOLE;
OEM的访问URL如下:
http://localhost:1158/em
如是本地访问则lcalhost本地服务的用户名,当远程访问OEM时则可输入远
程服务器的IP地址。
在Linux下安装oracle后,Windows下访问OEM时会出现按钮中文乱码情
况,解决方法如下:
1、停止OEM
[oracle@localhost ~]$ emctl stop dbconsole
TZ set to PRC
Oracle Enterprise Manager 10g DatabaseControl Release 10.2.0.1.0 
Copyright (c) 1996, 2005 OracleCorporation.  All rights reserved.
http://localhost.localdomain:1158/em/console/aboutApplication
Stopping Oracle Enterprise Manager 10gDatabase Control ...
 ... Stopped.
2、找到如下路径:
$ORACLE_HOME/jdk/jre/lib
$ORACLE_HOME/jre/1.4.2/lib
,执行下列步骤
[oracle@localhost ~]$ cd/opt/oracle/product/10.2.0/db_1/jdk/jre/lib/
[oracle@localhost lib]$ cp font.propertiesfont.properties.1.bat
[oracle@localhost lib]$ cp font.properties.zh_CN.Redhatfont.properties
[oracle@localhost lib]$ cd/opt/oracle/product/10.2.0/db_1/jre/1.4.2/lib/
[oracle@localhost lib]$ cp font.propertiesfont.properties.1.bat
[oracle@localhost lib]$ cpfont.properties.zh_CN.Redhat font.properties
此时可以查看文件font.properties最后一行如下
filename.-misc-zysong18030-medium-r-normal--*-%d-*-*-c-*-iso10646-1=/usr/share/fonts/zh_CN/TrueType/zysong.ttf
3、切换root用户查看是否存在文件/usr/share/fonts/zh_CN/TrueType
/zysong.ttf,默认情况下是不存在此文件,如不存在,则可从Windows
下C:/Windows/fonts找到中文字符文件,如不存在可用其他文件代替,
替换文件名即可,推荐使用STSONG,处理结构如下所示:
[root@localhost ~]# cd/usr/share/fonts/zh_CN/TrueType/
[root@localhost TrueType]# ll
total 11440
-rwxrwxr-x 1 root root 11697600 Mar  8 13:53 zysong.ttf
需注意的是zysong.ttf文件名必须小写。
4、清楚OEM下的缓存图片
[oracle@localhost~]$cd/opt/oracle/product/10.2.0/db_1/oc4j
/j2ee/oc4j_applications/applications/em/em/cabo/images/cache/zhs/
[oracle@localhost zhs]$ ll *.gif
-rw-r----- 1 oracle oinstall 1681 Mar 1211:07 b-0c_ASH_5.gif
-rw-r----- 1 oracle oinstall 1260 Mar 1210:05 b-3d-1.gif
-rw-r----- 1 oracle oinstall 1608 Mar 1210:05 b-61af-1.gif
……
[oracle@localhost zhs]$ rm *.gif
[oracle@localhost zhs]$ rm *.imx
5、重新启动OEM
[oracle@localhost zhs]$ emctl startdbconsole
TZ set to PRC
Oracle Enterprise Manager 10g DatabaseControl Release 10.2.0.1.0 
Copyright (c) 1996, 2005 OracleCorporation.  All rights reserved.
http://localhost.localdomain:1158/em/console/aboutApplication
Starting Oracle Enterprise Manager 10gDatabase Control
................................. started.
------------------------------------------------------------------
Logs are generated in directory/opt/oracle/product/10.2.0
/db_1/localhost.localdomain_testdb/sysman/log
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,