Linux oracle em Chinese garbage solutions

2010-09-07  来源:本站原创  分类:Database  人气:154 

If the installation, our system environment variable set in Chinese environment, then there would be no problem. The root of the problem is that installation, JDK / JRE automatically select the character set.

In the $ ORACLE_HOME / jdk / jre / lib and $ ORACLE_HOME/jre/1.4.2/lib / directory has a variety of character sets the font configuration file:

[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

We only use the appropriate Chinese character set files can replace the default file, I choose to use font.properties.zh_CN.Redhat to replace the default font definition file:

[Oracle @ danaly lib] $ cp font.properties.zh_CN.Redhat font.properties

Replace the need to clean up after the Cache, you can restart EM.

Cache path is usually located in:

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

Clear all gif files. And then restart the EM:

[Oracle @ danaly zhs] $ 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.
http://danaly.hurrray.com.cn:1158/em/console/aboutApplication
Stopping oracle Enterprise Manager 10g Database Control ...
... Stopped.
[Oracle @ danaly 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://danaly.hurrray.com.cn:1158/em/console/aboutApplication
Starting 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

Now landing Web page, EM display can properly display Chinese.

Note: If after the above treatment still can not correctly display Chinese, please refer to the following description:

Open just replace good font.properties, or view the original Chinese font file:

[Oracle @ smsdbrac1 lib] $ tail -2 font.properties.zh_CN.Redhat
filename.-misc-zysong18030-medium-r-normal--*-% d-*-*- c-*- iso10646-1 = / usr / share / fonts / zh_CN / TrueType / zysong.ttf

Note that the filename contains the font file point to the Chinese, make sure the file exists on your server, if does not exist, change an existing font file to the Chinese, you can also install new fonts to download file:

[Oracle @ smsdbrac1 lib] $ ls-al / usr / share / fonts / zh_CN / TrueType / zysong.ttf
-Rw-r - r - 1 root root 9249332 Mar 29 2002 / usr / share / fonts / zh_CN / TrueType / zysong.ttf

This problem Redhat, the used as the follow-up version of the Bug was fixed:

Bug 445297 - Add fonts-chinese-zysong package for zysong font from fonts-chinese.

Font Download: See attachment Original Address: http://www.eygle.com/archives/2006/03/oracle10g_em_font_change.html

相关文章
  • Linux oracle em Chinese garbage solutions 2010-09-07

    If the installation, our system environment variable set in Chinese environment, then there would be no problem. The root of the problem is that installation, JDK / JRE automatically select the character set. In the $ ORACLE_HOME / jdk / jre / lib an

  • Linux oracle em Chinese garbled solution 2010-09-07

    If installed, the system environment variables we set in Chinese environment, then there would be no problem and this problem simply because the installation, JDK / JRE character set is automatically selected. In the $ ORACLE_HOME / jdk / jre / lib a

  • Struts + hibernate + Mysql5.0 of Chinese garbage solutions 2010-05-04

    Recent study Struts + hibernate + Mysql5.0 of Web application development, the most troublesome problem encountered in the natural is the Chinese garbled MySQL problem. Now solutions are described below: 1. First of all, JSP page inside <% @ page con

  • Related commands Linux oracle em 2010-09-07

    See ORACLE em status: emctl status dbconsole Start ORACLE em emctl start dbconsole Stop ORACLE em emctl stop dbconsole

  • Chinese garbled under linux oracle EM problem-solving 2011-09-19

    I rhel5.4 above installed oracle, system language is English, so oracleEM until there is no how to use the English will look forward to, most recently with the very frequent, birds or inconvenient. So will the English into Chinese, and found to have

  • GEOSERVER SHP file to read the Chinese garbage solutions 2010-05-31

    Some time ago to use GEOSERVER release SHP format, the record in the Chinese language is garbled. Internet access GOOGLE, and find two solutions: 1) shp files into postgresql, using the UTF-8 format 2) modify the source code for each geotools tried a

  • Properties file in Struts Chinese garbage solutions 2010-04-12

    First http://download.csdn.net/source/2230779 download, unzip, the folder will be Myeclipse copy to the plugins directory in the installation directory, such as my myeclipse installation directory: C: \ Program Files \ Genuitec \ Common \ plugins. An

  • (Transfer) Oracle em button appears garbled practical solutions 2010-07-15

    Oracle em buttons appear garbled in the actual application is often in the actual operation to bring a lot of inconvenience, the following article that describes Oracle em button appears garbled practical solutions, the following is the detailed desc

  • Mysql character encoding mechanism. Chinese garbage problem and solutions 2011-09-05

    ZZ http://apps.hi.baidu.com/share/detail/33178546 I believe many of my friends will turn away from the character encoding, but a garbled problems are endless head, the paper combined with previous experience and Mysql manual explains, with examples o

  • Java / JSP Chinese garbage problem-solving experience (change) 2010-06-09

    From: http://www.xici.net/u9206704/d56632455.htm Since access to Java and JSP has been with the Java on the issue of Chinese garbage deal, and now finally been completely resolved, we now experience and share solutions. 1, Java the Chinese origin of

  • On the ora-12505 ORACLE error, and connectivity solutions and related information 2010-03-08

    On the ora-12505 ORACLE error, and connectivity solutions and related information Recently, I use jdbc to connect oracle 9i database, the following error occurred: Error occured while trying to connect to the database Error connecting to database: (u

  • JSP Chinese garbage problem 2010-04-24

    JSP Chinese garbled to the first article: 1, we must ensure that the output to the client JSP is the output encoding in Chinese, that is all we have in our first generation of JSP source code by adding the following line: <% @ Page contentType = "

  • Hibernate MySQL Chinese garbage problem 2010-07-28

    Hibernate MySQL Chinese garbage problem <script type="text/javascript"> document.body.oncopy = function () (if (window.clipboardData) (setTimeout (function () (var text = clipboardData.getData ("text"); if (text & ; & tex

  • Jquery Ajax requests Chinese garbage problem 2010-08-05

    Ajax request parameters passed the Chinese will be garbled question, there are two solutions: First, modify the Jquery source code is the code for common defects in this method decreased the future, when upgrading the code, the same question that wil

  • Solve the linux environment, the Chinese garbled jsp + mysql database problem 2011-05-02

    After a week of hard work has finally solved the problem, especially to extract the experience down note. This article will address the following question several garbled. Chinese into mysql table appears garbled, mysql from JSP page to read the data

  • Detailed Oracle DataGuard data backup solutions 2010-11-01

    Detailed Oracle DataGuard data backup solutions http://database.51cto.com 2009-07-03 09:44 vfast_chenxy I want to pursue Comments (0) • Summary: This article describes how to create a standby database using RMAN backups (dataguard). Oracle DataGuard

  • How to reconfigure the Oracle EM Database Control 2011-05-30

    How to reconfigure the Oracle EM Database Control Author: eygle | English Version [reprint, please indicate the form of the article hyperlink source and author information and this statement ] Links: http://www.eygle.com/archives/2007/09/em_database_

  • oracle em 按钮乱码解决办法及em网页变成英文 2014-06-30

    oracle em 按钮乱码,该问题很是麻烦啊,不过本文介绍了一些解决方法,有需要的你可千万不要错过啊,好了,话不多说切入主题 一.oracle em中按钮乱码解决办法: 1.修改jdk 下面的字体. [[email protected] db_1]$ cd $ORACLE_HOME/jdk/jre/lib/ [[email protected] lib]$ mv font.properties font.properties_bak [[email protected] lib]$ cp font.properties.zh_C

  • URL to pass the Chinese garbage treatment issue 2010-04-08

    URL to pass the Chinese garbage treatment issue At 10:12 on May 27, 2009 Method 1: In the background to get some string iso-8859-1 encoding the form of an array, and then use this array of instances of a UTF-8 encoded form of String type String. Url

  • javascript url parameter to pass the Chinese garbage problem-solving program 2010-04-29

    This article comes from http://hi.baidu.com/% B4% FA% CD% E9/blog/item/b195d554158ba45f574e005e.html javascript url parameter to pass the Program in Chinese garbage problem-solving a html page: function testOne () ( var url = "testTwo.action? expr =&