Get the App
SLTechnology News&Howtos  ›  Database  › 

Oracle 11g R2 em garbled

Shulou Source: shulou.com Published: 2022-06-01 11:59:57 10月04日 Update

My system is redhat 5.564 bit, oracle is 11G R2

Oracle 11g uses jdk1.5,jdk1.5 as an easy way to solve this problem. Just create a fallback directory under $JAVA_HOME/jre/lib/fonts/ and copy the fonts you want to use in java to this directory, under oracle users:

$mkdir $ORACLE_HOME/jdk/jre/lib/fonts/fallback

Copy the font file simsun.ttc under windows to the $ORACLE_HOME/jdk/jre/lib/fonts/fallback directory and rename simsun.ttf (note that ms's simsun font is copyrighted, so merchants change to other fonts), and the corresponding permissions are available to oracle users.

After that, you need to clean up Cache and restart EM:

$rm $ORACLE_HOME/oc4j/j2ee/oc4j_applications/applications/em/em/cabo/p_w_picpaths/cache/zhs/*.gif

$emctl stop dbconsole

$emctl start dbconsole

Log in to the Web page to view, and the EM display will be able to display Chinese normally.

Note: when executing $emctl stop dbconsole or $emctl start dbconsole, you will encounter an error message:

[root@langzi bin] #. / emctl stop dbconsole

Environment variable ORACLE_UNQNAME not defined. Please set ORACLE_UNQNAME to database unique name.

[root@langzi bin] #. / emctl start dbconsole

Environment variable ORACLE_UNQNAME not defined. Please set ORACLE_UNQNAME to database unique name.

Two solutions

One, su oracle, try again, if not

The following is being performed:

Add environment variable ORACLE_UNQNAME

Vi / home/oracle/.bashrc

Export ORACLE_UNQNAME=orcl

Vi / home/oracle/.bash_profile

Export ORACLE_UNQNAME=orcl

ORACLE_UNQNAME is actually used to launch dbconsole, it is your ORACLE_SID default and orcl.

2010-09-14

Tags: Fonts directories that is users no simple information methods variables just commercial actual files methods permissions copyright environment systems problems pages Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Docker Xiaomi Shulou Technology macOS Huawei