网站首页
JSP空间
动态资讯
开源项目
技术文档
资源下载
J2EE资源
客户论坛
在线支付
 
  技术文档>>数据库技术>>Oracle技术>>Oracle开发>查看文档  
  解析:教你快速的掌握em乱码的解决方法     
  文章作者:未知  文章来源:赛迪网技术社区  
  查看:172次  录入:管理员--2007-11-15  
 

问:oracle 10g em乱码问题应当如何解决?

答:你在安装时,系统环境变量设置为中文环境,就不会出现这个问题了,出现这个问题的原因在于安装时,jdk/jre字符集的自动选择.

在 $oracle_home/jdk/jre/lib 和 $oracle_home/jre/1.4.2/lib/ 目录下都有多种字符集字体配置文件:

[oracle@danaly ~]$ cd $oracle_home/jdk/jre
/lib[oracle@danaly lib]$ ls font*zh_cn*font.
properties.zh_cn.redhat font.properties.
zh_cn.redhat2.1 font.properties.
zh_cn.sun font.properties.zh_cn_utf8.sun 

[oracle@danaly lib]$ cd $oracle_home/jre
/1.4.2/lib/[oracle@danaly lib]$ ls 
font*zh_cn*font.properties.zh_cn.redhat 
font.properties.zh_cn.redhat2.1 
font.properties.zh_cn.sun font.properties.
zh_cn_utf8.sun

我们只要用合适的中文字符集文件替换缺省文件即可,我选择使用font.properties.zh_cn.redhat来替换缺省字体定义文件:

[oracle@danaly lib]$ cp font.properties.
zh_cn.redhat font.properties

替换之后需要清理一下cache,重启em即可.

cache路径通常位于:

$oracle_home/oc4j/j2ee/oc4j_applications
/applications/em/em/cabo/images/cache/zhs

清除所有gif文件即可.然后重新启动em:

[oracle@danaly zhs]$ emctl stop dbconsoletz 
set to prcoracle enterprise manager 10g database
control release 10.2.0.1.0 copyright (c) 
1996, 2005 oracle corporation. all rights 
reserved.http://danaly.hurrray.com.cn:1158/em
/console/aboutapplicationstopping oracle 
enterprise manager 10g database control 
... ... stopped. [oracle@danaly zhs]$ emctl 
start dbconsoletz set to prcoracle enterprise 
manager 10g database control release 10.2.0.1.0
copyright (c) 1996, 2005 oracle corporation. 
all rights reserved.http://danaly.hurrray.com.cn:1158
/em/console/aboutapplicationstarting oracle 
enterprise manager 10g database control 
.............. started. ------------------------
logs are generated in directory /opt
/oracle/product/10.2.0/danaly.
hurrray.com.cn_danaly/sysman/log

此时,登陆到web页面,em就会显示中文了。

 
 
上一篇: 教你轻松掌握oracle与foxpro的数据转换    下一篇: 解析:执行drop表操作后数据库无法起动
  相关文档
db2提供的两种db连接方式type1和type2 07-15
在redhat as3上快速安装oracle数据库10g 07-25
解读oracle数据库的统一命名与编码规范 (1) 10-16
怎样才能提高oracle 10g增量备份速度 04-09
轻松解决启用数据库复制时出现的18483错误 05-14
Oracle分层管理器的技术原理及应用 04-11
如何将oralce数据库中孤独临时段清除 04-16
八个学习点帮助你全面认识Oracle数据库 05-27
如何将oracle数据库的普通表转换成分区表 (1) 05-05
带你深入了解管理oracle实例的相关方法 (1) 04-23
oracle数据库备份与恢复精华资料集锦 (1) 04-15
oracle10g r2 emca常用命令及实例步骤 07-25
初学者应该如何理解oracle的架构知识 (1) 03-04
Oracle数据库数据对象分析 01-15
认识NBU备份Oracle时Code 29错误的解答 06-03
未来的数据库将构筑在网格计算的环境之上 02-18
详细介绍Oracle 8i中怎样实现实时通信 04-12
遇到ora-12535问题后应当采用哪些方法解决 04-16
三种Windows版本下教你如何卸载Oracle 05-27
ORACLE常用的SQL语法和数据对象 08-05
返回首页 | 关于我们 | J网章程 | JSP空间合租 | 客服中心 | 免责声明 | 常见问题 | 参观机房
本站主机空间代理至厦门市华众网络科技有限公司
《中华人民共和国增值电信业务经营许可证》
编号:闽B2-20050079
@2005-2008福建JSP技术网 版权所有 闽ICP备05000928号
厦门(总部):13616026886 福州:0591-87655121
邮箱:admin@fjjsp.com 站长QQ,点击这里给我发消息