国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

Home Database Mysql Tutorial Linux安裝Oracle中文亂碼的解決

Linux安裝Oracle中文亂碼的解決

Jun 07, 2016 pm 04:54 PM
oracle data

在Linux上安裝過Oracle的時(shí)候漢字都是rdquo;口口rdquo;形亂碼 最初時(shí)間比較緊張只能用英文安裝,后來經(jīng)過反復(fù)試驗(yàn)和整理,現(xiàn)在

在Linux上安裝過Oracle的時(shí)候漢字都是”口口”形亂碼

最初時(shí)間比較緊張只能用英文安裝,后來經(jīng)過反復(fù)試驗(yàn)和整理,現(xiàn)在可以完全解決linux下oracle中文亂碼的問題,下面是整理后的文檔:

我想在linux 9 下也應(yīng)該能夠?qū)崿F(xiàn)吧,這里主要還把系統(tǒng)添加了宋體和新宋體的字庫,所以看著可能很麻煩
需要軟件,google找 j2sdk-1_4_2_04-linux-i586.bin
javacn.zip

一.安裝JDK
在/tmp下建立一個(gè)臨時(shí)的文件夾
---------------------------------------------------
[root@tooth root]# cd /tmp
[root@tooth root]# mkdir javacn
[root@tooth root]# cd javacn
----------------------------------------------------

將 j2sdk-1_4_2_02-linux-i586.bin并保存到/tmp/javacn
給文件加上可執(zhí)行的權(quán)限
----------------------------------------------------
[root@tooth root]# chmod 755 j2sdk-1_4_2_02-linux-i586.bin
----------------------------------------------------

執(zhí)行文件安裝JDK
----------------------------------------------------
[root@tooth root]# ./j2sdk-1_4_2_02-linux-i586.bin
----------------------------------------------------
......(一大堆的license的信息)
詢問是否同意,當(dāng)然選yes

----------------------------------------------------
[root@tooth root]# mv j2sdk1.4.2_02 /usr/j2sdk
----------------------------------------------------

現(xiàn)在JDK還不能算安裝完成了,還要設(shè)置一下環(huán)境變量:

----------------------------------------------------
[root@tooth root]# vi $HOME/.bash_profile
在export PATH前加入下面一段
JAVA_HOME=/usr/j2sdk
export JAVA_HOME
JRE=$JAVA_HOME/jre
export JRE
PATH=$JAVA_HOME/bin:$JRE/bin:$PATH
----------------------------------------------------
存盤退出,執(zhí)行[root@tooth root]# source .bash_profile 這樣設(shè)置的環(huán)境變量就生效了
二. 安裝系統(tǒng)字體
將附件文件解壓到/tmp/javacn中,解壓后的結(jié)果如下所示:
----------------------------------------------------
[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 6月 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-- 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

下面需要將$JRE/lib中的font.properties文件改名備份,并將/tmp/javacn中的font.properties文件拷貝到$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 ./
----------------------------------------------------

剩下的操作就是執(zhí)行/tmp/javacn/sm.sh了。
在執(zhí)行sm.sh后系統(tǒng)后自動(dòng)重啟,所以在執(zhí)行下面的操作前請(qǐng)一定保存正在進(jìn)行的工作!

----------------------------------------------------
[root@tooth root]# cd /tmp
[root@tooth tmp]# cd javacn
[[root@tooth javacn]# chmod 755 sm.sh
[root@tooth javacn]# ./sm.sh
----------------------------------------------------
此處操作系統(tǒng)會(huì)重新啟動(dòng)。
三. 設(shè)置操作系統(tǒng)字體
重新啟動(dòng)登錄后,按如下步驟操作:
(下面的步驟是KDE里的,GNOME里應(yīng)該差不多)
開始->控制中心->外觀和主題->字體 可以將系統(tǒng)的字體修改為宋體simsun
一. Red Hat系統(tǒng)
1. 安裝時(shí)選取簡體中文安裝,先復(fù)制simsun.ttc(宋體)simsun18030.ttc(新宋體)tahomabd.ttf tahoma.ttf到/usr/X11R6/lib/X11/fonts/TrueType下,并將所有ttc文件改為ttf文件;
2. 2.然后進(jìn)入/usr/X11R6/lib/X11/font/TrueType目錄下,
3. 運(yùn)行ttmkfdir>fonts.dir命令;接著用vi編輯fonts.dir文件,將下面內(nèi)容添加進(jìn)去

----------------------------------------------------
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
----------------------------------------------------
然后執(zhí)行 #cat fonts.dir>font.scale
修改/etc/X11/XF86Config,
[root@tooth X11]# vi XF86Config
在Section“Files”加上下面這一行:FontPath “/usr/X11R6/lib/X11/fonts/TrueType”
二.JDK
1.先復(fù)制simsun.ttf(宋體)simsun18030.ttf(新宋體)tahomabd.ttf tahoma.ttf到$JAVA_HOME/jre/lib/fonts下,在將系統(tǒng)中剛剛生成的fonts.dir以及fonts.scale文件復(fù)制到$JAVA_HOME/jre/lib/fonts下即可.
四. 安裝Oracle
此時(shí)切換到Oracle用戶,運(yùn)行./runInstaller,,出來的界面應(yīng)該是親切的中文界面了,如果還是亂碼請(qǐng)檢查上面的步驟。
到此oracle的安裝過程已經(jīng)不是亂碼,可以顯示中文

oracle安裝好后啟動(dòng)ocm等還會(huì)是亂碼
所以要修改他的jre文件

先改dbca
----------------------------------------------------
[oracle@tooth oracle]$ cd $ORACLE_HOME
[oracle@tooth 9.2]$ cd bin
[oracle@tooth bin]$ vi dbca
----------------------------------------------------
將最后一段
# Run DBCA
$JRE_DIR/bin/jre -DORACLE_HOME=$OH -DJDBC_PROTOCOL=thin -mx64m -classpath $CLASS
PATH oracle.sysman.assistants.dbca.Dbca $ARGUMENTS
改成:
# Run DBCA
java -DORACLE_HOME=$OH -DJDBC_PROTOCOL=thin -mx64m -classpath $CLASS
PATH oracle.sysman.assistants.dbca.Dbca $ARGUMENTS
==========================================
再改oemapp
[oracle@tooth bin]$ vi oemapp
也是最后一段
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

改成:
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
=======================================================
最后,是netca
[oracle@tooth bin]$ vi netca
還是最后一段
# Run Net Configuration Assistant
cd $NETTOOLSDIR
$JRE -classpath $CLASSPATH oracle.net.ca.NetCA $*
exit $status

改成
# Run Net Configuration Assistant
cd $NETTOOLSDIR
java -classpath $CLASSPATH oracle.net.ca.NetCA $*
exit $status

個(gè)人已經(jīng)實(shí)現(xiàn)oracle中文安裝和oracle中文界面的設(shè)置,安裝文檔完全可以實(shí)現(xiàn)

linux

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undress AI Tool

Undress AI Tool

Undress images for free

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How to uninstall MySQL and clean residual files How to uninstall MySQL and clean residual files Apr 29, 2025 pm 04:03 PM

To safely and thoroughly uninstall MySQL and clean all residual files, follow the following steps: 1. Stop MySQL service; 2. Uninstall MySQL packages; 3. Clean configuration files and data directories; 4. Verify that the uninstallation is thorough.

Oracle's Role in the Business World Oracle's Role in the Business World Apr 23, 2025 am 12:01 AM

Oracle is not only a database company, but also a leader in cloud computing and ERP systems. 1. Oracle provides comprehensive solutions from database to cloud services and ERP systems. 2. OracleCloud challenges AWS and Azure, providing IaaS, PaaS and SaaS services. 3. Oracle's ERP systems such as E-BusinessSuite and FusionApplications help enterprises optimize operations.

How to create cursors in oracle loop How to create cursors in oracle loop Apr 12, 2025 am 06:18 AM

In Oracle, the FOR LOOP loop can create cursors dynamically. The steps are: 1. Define the cursor type; 2. Create the loop; 3. Create the cursor dynamically; 4. Execute the cursor; 5. Close the cursor. Example: A cursor can be created cycle-by-circuit to display the names and salaries of the top 10 employees.

What steps are required to configure CentOS in HDFS What steps are required to configure CentOS in HDFS Apr 14, 2025 pm 06:42 PM

Building a Hadoop Distributed File System (HDFS) on a CentOS system requires multiple steps. This article provides a brief configuration guide. 1. Prepare to install JDK in the early stage: Install JavaDevelopmentKit (JDK) on all nodes, and the version must be compatible with Hadoop. The installation package can be downloaded from the Oracle official website. Environment variable configuration: Edit /etc/profile file, set Java and Hadoop environment variables, so that the system can find the installation path of JDK and Hadoop. 2. Security configuration: SSH password-free login to generate SSH key: Use the ssh-keygen command on each node

MongoDB vs. Oracle: Understanding Key Differences MongoDB vs. Oracle: Understanding Key Differences Apr 16, 2025 am 12:01 AM

MongoDB is suitable for handling large-scale unstructured data, and Oracle is suitable for enterprise-level applications that require transaction consistency. 1.MongoDB provides flexibility and high performance, suitable for processing user behavior data. 2. Oracle is known for its stability and powerful functions and is suitable for financial systems. 3.MongoDB uses document models, and Oracle uses relational models. 4.MongoDB is suitable for social media applications, while Oracle is suitable for enterprise-level applications.

What to do if the oracle log is full What to do if the oracle log is full Apr 12, 2025 am 06:09 AM

When Oracle log files are full, the following solutions can be adopted: 1) Clean old log files; 2) Increase the log file size; 3) Increase the log file group; 4) Set up automatic log management; 5) Reinitialize the database. Before implementing any solution, it is recommended to back up the database to prevent data loss.

MongoDB vs. Oracle: Choosing the Right Database for Your Needs MongoDB vs. Oracle: Choosing the Right Database for Your Needs Apr 22, 2025 am 12:10 AM

MongoDB is suitable for unstructured data and high scalability requirements, while Oracle is suitable for scenarios that require strict data consistency. 1.MongoDB flexibly stores data in different structures, suitable for social media and the Internet of Things. 2. Oracle structured data model ensures data integrity and is suitable for financial transactions. 3.MongoDB scales horizontally through shards, and Oracle scales vertically through RAC. 4.MongoDB has low maintenance costs, while Oracle has high maintenance costs but is fully supported.

How to configure the database connection of weblogic on centos How to configure the database connection of weblogic on centos Apr 14, 2025 pm 02:06 PM

Configuring WebLogic database connection on a CentOS system requires the following steps: JDK installation and environment configuration: Make sure that the server has installed a JDK that is compatible with the WebLogic version (for example, WebLogic14.1.1 usually requires JDK8). Correctly set JAVA_HOME, CLASSPATH and PATH environment variables. WebLogic installation and decompression: Download the WebLogic installation package for CentOS system from the official Oracle website and unzip it to the specified directory. WebLogic user and directory creation: Create a dedicated WebLogic user account and set a security password

See all articles