Install Oracle9i Chinese under Linux AS3 garbled complete solution

xiaoxiao2021-03-06  61

When I have installed Oracle on Linux, the Chinese characters are "oral" shape for chaos. The initial time is more tense. It can only be installed in English. Later, after repeated trials and finishing, now you can completely solve the problem of oracle Chinese garbled under Linux. Document: I want to be able to implement it under Linux 9, here mainly add the system to the Song and New Song's font, so I can see the software, Google find J2SDK-1_4_2_04-linux-i586.bin JavaCn .zip one. Install JDK to create a temporary folder under / TMP -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ------------- [Root @ Tooth root] # CD / TMP [root @ Tooth root] # mkdir javacn [root @ Tooth root] # CD javacn --------- ------------------------------------------- will j2sdk-1_4_2_02-linux- I586.bin and saved to / tmp / javaacn to add executable permissions -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -------------------- [Root @ Tooth root] # chmod 755 J2SDK-1_4_2_02-linux-i586.bin ------------ ---------------------------------------- Execute file installation JDK ------ ---------------------------------------------- [root @ TOOTH Root] # ./j2sdk-1_4_2_02-linux-i586.bin -------------------------------------------------------------------- ---------------- ... (a bunch of license information) Ask if you agree, of course, Yes -------------- ---------------------------------------- [root @ Tooth root] # mv j2sdk1. 4.2_02 / usr / j2sdk ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ -------- Now JDK can't be installed, but also set up environment variables: ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -------------------------- [root @ Tooth root] # vi $ home / .bash_profile Add below to Export Path Java_Home = / USR / J2SDK EXPORT JAVA_HOME JRE = $ JAVA_HOME / JRE EXPO RT JRE PATH = $ JAVA_HOME / BIN: $ jre / bin: $ PATH ---------------------------------- ------------------ store exit, perform [root @ Tooth root] # source .Bash_profile This set of environment variables take effect. The installation system font decompresses the attachment file to / tmp / javacn, the results after the decompression are as follows: -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ------------------------ [root @ Tooth root] # CD / TMP [root @ Tooth root] # cd javacn [root @

TOOTH JAVACN] # ls -l ------------------------------------------- --------- -RW-R - R - 1 Root Root 8102 1970-01-01 Font.properties DRWXR-XR-X 9 root root 4096 June 24 15:36 J2SDK1.4.2_02 - RW-R - R - 1 root root 12642204 1970-01-01 Simsun18030.ttc -rw-r - r - 1 root root 10500352 1970-01-01 SIMSUN.TTC -RW-R - R - r - 1 root root 7764 1970-01-01 sm.sh -rw-r - r - 1 root root 260472 1970-01-01 Tahomabd.ttf -rw-r - r - 1 root root 265528 1970-01- 01 TAHOMA.TTF The following needs 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 rest of the operation That is to execute /tmp/javacn/sm.sh. After executing sm.SH, the system is automatically restarted, so please save the working work before performing the following operation! -------------------------------------------------- - [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 will restart.

three. After setting the operating system font to restart, follow these steps: (The following steps are KDE, gnome should be almost) Start -> Control Center -> Appearance and theme -> Fonts You can modify the system to Song SIMSUN I. Red HAT system 1. Select the simplified Chinese installation when install, first copy SIMSUN.TTC (Song) SIMSUN18030.TTC (New Song) Tahomabd.ttf Tahoma.ttf to / usr / x11r6 / lib / x11 / font / trueType And change all TTC files to TTF files; 2. 2. Then enter the / usr / x11r6 / lib / x11 / font / trueType directory, 3. Run the TTMKFDIR> fonts.dir command; then edit the fonts.dir file with the VI, Add below to you ------------------------------------------- ------- SIMSUN.TTTF -MISC-SIMSUN-Medium-R-NORMAL - 0-0-0-C-0-ASCII-0 SIMSUN.TTTTF -MISC-SIMSUN-Medium-R-NORMAL --0-0-0-0-C-0-ISO10646-1 SIMSUN.TTTF -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.TTTTF -MISC-SIMSUN-Medium-r-Normal - 0-0-0- C-0-GB2312.1980-0 SIMSUN.TTTF -MISC-SIMSUN-Medium-R-NORMAL - 0-0-0-0-P-0-GB2312.1980-0 SIMSUN.TTTTF -MISC-SIMSUN-Medium -R-NORMAL - 0-0-0-0-0-0- 0-GB2312.1980-0 SIMSUN.TTTTF -MISC-SIMSUN-Medium-R-NORMAL - 0-0-0-P-0- GBK-0 --------------------------------- ----- then execute #cat fonts.dir> font.scale modified / etc / x11 / xf86co Nfig, [root @ Tooth X11] # vi xf86config in section "Files" plus the following line: fontpath "/ usr / x11r6 / lib / x11 / fonts / trueType" two .jdk 1. Copy SIMSun.ttf first SIMSUN18030.TTTF (New Song) Tahomabd.ttf Tahoma.ttf to $ JAVA_HOME / JRE / LIB / FONTS, copy the FONTS.DIR that has just generated in the system to $ java_home / jre / lib / fonts That is. 4. Install Oracle At this time, switch to Oracle users, run ./RunInstaller, out of the interface should be a kind Chinese interface, if it is still garbled, please check the steps above.

The installation process of this Oracle is not garbled, you can display the Chinese Oracle installation, start OCM, etc., will be garbled, so modify his JRE file first change DBCA -------------- ------------------------------------ [Oracle @ TOOTH ORACLE] $ CD $ Oracle_home [Oracle @ Tooth 9.2] $ CD BIN [Oracle @ Tooth Bin] $ VI DBCA ------------------------------------------------------------------------------------------------------------------ ---------------- Put 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 is changed: # run dbca java -doracle_home = $ oh -djdbc_protocol = thin -mx64m -classpath $ class path oracle.sysman.ssistants.dbca.dbca $ arguments =========== =============================================================================================================================================================================== "=" 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" "$ 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 change: if [ "$ 1" = "ocmcli" ], java -dadmin_wrl = $ admin_wrl -doracle_home = $ oracle_home -dorbdisableloca tor = true -djdbc.backward_compatible_to_816 =

转载请注明原文地址:https://www.9cbs.com/read-112970.html

New Post(0)