Solution to Oracle Chinese garbled characters installed in Linux

Source: Internet
Author: User

Chinese characters are garbled during Oracle Installation on Linux

At the beginning, it was relatively time-consuming and can only be installed in English. After repeated trials and sorting, the oracle Chinese garbled characters in linux can be completely solved. The following is the prepared documents:

I think we should be able to implement it in linux 9. Here we mainly add the font of and to the system, so it may be very troublesome.
Need software, google find j2sdk-1_4_2_04-linux-i586.bin
Javacn.zip

1. Install JDK
Create a Temporary Folder under/tmp
---------------------------------------------------
[Root @ tooth root] # cd/tmp
[Root @ tooth root] # mkdir javacn
[Root @ tooth root] # cd javacn
----------------------------------------------------

Save the j2sdk-1_4_2_02-linux-i586.bin to/tmp/javacn
Add executable permissions to files
----------------------------------------------------
[Root @ tooth root] # chmod 755 j2sdk-1_4_2_02-linux-i586.bin
----------------------------------------------------

Install JDK in the execution File
----------------------------------------------------
[Root @ tooth root] #./j2sdk-1_4_2_02-linux-i586.bin
----------------------------------------------------
... (A lot of license information)
Check whether you agree. Of course, select yes.

----------------------------------------------------
[Root @ tooth root] # mv j2sdk1.4.2 _ 02/usr/j2sdk
----------------------------------------------------

The JDK installation is not complete yet. You need to set the environment variable:

----------------------------------------------------
[Root @ tooth root] # vi $ HOME/. bash_profile
Add the following section before the export PATH
JAVA_HOME =/usr/j2sdk
Export JAVA_HOME
JRE = $ JAVA_HOME/jre
Export JRE
PATH = $ JAVA_HOME/bin: $ JRE/bin: $ PATH
----------------------------------------------------
Save the disk and exit. Run [root @ tooth root] # The environment variable set in source. bash_profile takes effect.
Ii. Install the system font
Decompress the attachment file to/tmp/javacn. The extracted results are as follows:
----------------------------------------------------
[Root @ tooth root] # cd/tmp
[Root @ tooth root] # cd javacn
[Root @ tooth javacn] # ls-l
----------------------------------------------------
-Rw-r -- 1 root 8102 font. properties
Drwxr-xr-x 9 root 4096 June 24 15:36 j2sdk1.4.2 _ 02
-Rw-r -- 1 root 12642204 1970-01-01 SimSun18030.ttc
-Rw-r -- 1 root 10500352 1970-01-01 simsun. ttc
-Rw-r -- 1 root 7764 1970-01-01 sm. sh
-Rw-r -- 1 root 260472 1970-01-01 tahomabd. ttf
-Rw-r -- 1 root 265528 1970-01-01 tahoma. ttf

Next, you need to rename the font. properties file in $ JRE/lib and copy the font. properties file in/tmp/javacn to $ JRE/lib.

----------------------------------------------------
[Root @ tooth root] # cd $ JRE
[Root @ tooth jre] # cd lib
[Root @ tooth lib] # mv font. properties font. properties. bak
[Root @ tooth lib] # cp/tmp/javacn/font. properties ./
----------------------------------------------------

The remaining operation is to execute/tmp/javacn/sm. sh.
After sm. sh is executed, the system restarts automatically. Therefore, save the ongoing work before performing the following operations!

----------------------------------------------------
[Root @ tooth root] # cd/tmp
[Root @ tooth tmp] # cd javacn
[[Root @ tooth javacn] # chmod 755 sm. sh
[Root @ tooth javacn] #./sm. sh
----------------------------------------------------
The operating system restarts.
3. Set the operating system font
After restarting logon, follow these steps:
(The following steps are in KDE and should be similar in GNOME)
Start-> Control Center-> appearance and subject-> Font: You can change the font of the system to simsun.
I. Red Hat system
1. select Simplified Chinese for installation, and copy simsun first. ttc () simsun18030.ttc (New) tahomabd. ttf tahoma. ttf to/usr/X11R6/lib/X11/fonts/TrueType, and change all ttc files to ttf files;
2. Go to the/usr/X11R6/lib/X11/font/TrueType directory,
3. Run the ttmkfdir> fonts. dir command. Then use vi to edit the fonts. dir file and add the following content.

----------------------------------------------------
Simsun. ttf-misc-SimSun-medium-r-normal -- 0-0-0-0-c-0-ascii-0
Simsun. ttf-misc-SimSun-medium-r-normal -- 0-0-0-0-c-0-iso10646-1
Simsun. ttf-misc-SimSun-medium-r-normal -- 0-0-0-0-p-0-iso8859-15
Simsun. ttf-misc-SimSun-medium-r-normal -- 0-0-0-0-p-0-iso8859-1
Simsun. ttf-misc-SimSun-medium-r-normal -- 0-0-0-0-c-0-gb2312.1980-0
Simsun. ttf-misc-SimSun-medium-r-normal -- 0-0-0-0-p-0-gb2312.1980-0
Simsun. ttf-misc-SimSun-medium-r-normal -- 0-0-0-0-m-0-gb2312.1980-0
Simsun. ttf-misc-SimSun-medium-r-normal -- 0-0-0-0-p-0-gbk-0
----------------------------------------------------
Run # cat fonts. dir> font. scale
Modify/etc/X11/XF86Config,
[Root @ tooth X11] # vi XF86Config
Add the following line to Section "Files": FontPath "/usr/X11R6/lib/X11/fonts/TrueType"
Ii. JDK
1. copy simsun first. ttf () simsun18030.ttf (New) tahomabd. ttf tahoma. from ttf to $ JAVA_HOME/jre/lib/fonts. dir and fonts. copy the scale file to $ JAVA_HOME/jre/lib/fonts.
4. Install Oracle
Switch to the Oracle user and run./runInstaller. The interface should be a friendly Chinese interface. If it is still garbled, check the above steps.
The Installation Process of oracle is no longer garbled and Chinese characters can be displayed.

After oracle is installed, startup of ocm will be garbled.
So modify the jre file.

Change dbca first
----------------------------------------------------
[Oracle @ tooth oracle] $ cd $ ORACLE_HOME
[Oracle @ tooth 9.2] $ cd bin
[Oracle @ tooth bin] $ vi dbca
----------------------------------------------------
Add the last paragraph
# Run DBCA
$ JRE_DIR/bin/jre-DORACLE_HOME = $ OH-DJDBC_PROTOCOL = thin-mx64m-classpath $ CLASS
PATH oracle. sysman. assistants. dbca. Dbca $ ARGUMENTS
Changed:
# Run DBCA
Java-DORACLE_HOME = $ OH-DJDBC_PROTOCOL = thin-mx64m-classpath $ CLASS
PATH oracle. sysman. assistants. dbca. Dbca $ ARGUMENTS
========================================================== =
Modify the oemapp
[Oracle @ tooth bin] $ vi oemapp
Last paragraph
If ["$1" = "ocmcli"]
Then
Exec $ JRE-DADMIN_WRL = $ ADMIN_WRL-DORACLE_HOME = $ ORACLE_HOME-DORBdisableLoca
Tor = true-Djdbc. backward_compatible_to_816 = true $ JREOPTIONS_STRING-$ CLASSPATH_Q
UAL $ CLASSPATHADD oracle. sysman. vtx. vtxOemApp. OemApp $ APPLICATION "$2" "$3" "$4"
"$5" "$6" "$7" "$8" "$9"
Else
Exec $ JRE-DADMIN_WRL = $ ADMIN_WRL-DORACLE_HOME = $ ORACLE_HOME-DORBdisableLoca
Tor = true-Djdbc. backward_compatible_to_816 = true $ JREOPTIONS_STRING-$ CLASSPATH_Q
UAL $ CLASSPATHADD oracle. sysman. vtx. vtxOemApp. OemApp $ APPLICATION $2 $3 $4 $5 $6
$7 $8 $9
Fi

Changed:
If ["$1" = "ocmcli"]
Then
Java-DADMIN_WRL = $ ADMIN_WRL-DORACLE_HOME = $ ORACLE_HOME-DORBdisableLoca
Tor = true-Djdbc. backward_compatible_to_816 = true $ JREOPTIONS_STRING-$ CLASSPATH_Q
UAL $ CLASSPATHADD oracle. sysman. vtx. vtxOemApp. OemApp $ APPLICATION "$2" "$3" "$4"
"$5" "$6" "$7" "$8" "$9"
Else
Java-DADMIN_WRL = $ ADMIN_WRL-DORACLE_HOME = $ ORACLE_HOME-DORBdisableLoca
Tor = true-Djdbc. backward_compatible_to_816 = true $ JREOPTIONS_STRING-$ CLASSPATH_Q
UAL $ CLASSPATHADD oracle. sysman. vtx. vtxOemApp. OemApp $ APPLICATION $2 $3 $4 $5 $6
$7 $8 $9
Fi
========================================================== ====================
Finally, netca
[Oracle @ tooth bin] $ vi netca
Last paragraph
# Run Net Configuration Assistant
Cd $ NETTOOLSDIR
$ JRE-classpath $ CLASSPATH oracle.net. ca. NetCA $ *
Exit $ status

Change
# Run Net Configuration Assistant
Cd $ NETTOOLSDIR
Java-classpath $ CLASSPATH oracle.net. ca. NetCA $ *
Exit $ status

You have already set up the oracle Chinese installation and oracle Chinese interface, and the installation documentation can be fully implemented.

Related Article

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.