Quick Solution to Oracle 10g em garbled code

Source: Internet
Author: User

I have never used the 10 Gb em tool. Today I open it and find that there are also long-standing garbled code problems. there are also n solutions circulating on the Internet. Let's take a closer look. In fact, this problem is a good solution.

 

If the system environment variable is set to a Chinese environment during installation, this problem does not occur. The root cause is that the JDK/JRE character set is automatically selected during installation.

 

There are multiple character set font configuration files in the $ ORACLE_HOME/JDK/JRE/lib and $ ORACLE_HOME/JRE/1.4.2/lib/directories:

 

[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 need to replace the default file with an appropriate Chinese Character Set file. I chose to replace the default font definition file with font. properties. zh_cn.redhat:

 

[Oracle @ danaly lib] $ CP font. properties. zh_cn.redhat font. Properties

 

After replacement, you need to clear the cache and restart em.

 

The cache path is usually located:

 

$ ORACLE_HOME/Solaris/J2EE/oc4j_applications/applications/EM/Cabo/images/Cache/ZHS

 

Clear all GIF files. Then restart EM:

 

[Oracle @ danaly ZHS] $ emctl stop dbconsoletz set to prcoracle Enterprise Manager 10g Database Control Release 10.2.0.1.0 copyright (c) 1996,200 5 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,200 5 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

 

Now log on to the web page, and the EM display will display Chinese characters normally.

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.