现在的位置: 首页 > 综合 > 正文

安装Oracle 9i时出现乱码

2013年10月02日 ⁄ 综合 ⁄ 共 3861字 ⁄ 字号 评论关闭

在RedHat9中安装Oracle 9i时出现乱码
信息: Oracle安装界面中没有文字,只有乱码,怎么办?

解决中文的问题   vi .bash_profile
export LC_ALL=zh_CN
export LANG=zh_CN
export JAVA_FONTS=/usr/share/fonts/zh_CN/TrueType/

另一个不是最佳的解决方案.

设置ORACLE用户的环境变量。 vi .bash_profile
添加 export LC_CTYPE="en_US.UTF-8"
安装时就变成英文界面了,
用DBCA建库的时候,注意要选择 数据库 的 字符集.

还可以设置为unset LANG
安装的时候就是正常的英文了

.bash_profile文件如下
[root@logo oracle]# cat .bash_profile
# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
         . ~/.bashrc
fi

# User specific environment and startup programs

export ORACLE_BASE=/home/oracle/OraHome
export ORACLE_HOME=/home/oracle/OraHome/9.2.0
export LC_ALL=zh_CN
export LANG=zh_CN
export JAVA_FONTS=/usr/share/fonts/zh_CN/TrueType/
export ORACLE_SID=ora9i
export ORACLE_TERM=xterm
export NLS_LANG=american_america.ZHS16GBK
export ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
export LD_LIBRARY_PATH

PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin

export PATH LD_ASSUME_KERNEL=2.4.1
unset USERNAME

用来解决Warning: Cannot convert string "AltReturn,Alt_Key_KP_Enter" to type
$ xprop -root -remove _MOTIF_DEFAULT_BINDINGS
(注:本语句在打开其他终端窗口时,可能会还原,如果你打开了其他窗口,一定要回本窗口,重新执行)
[oracle@logo oracle]$ cd /soft/oracle/Disk1
[oracle@logo Disk1]$ ./runInstaller
Initializing Java Virtual Machine from /tmp/OraInstall2005-12-24_10-59-12PM/jre/bin/java. Please wait...
Font specified in font.properties not found [-b&h-lucidatypewriter-medium-r-normal-sans-*-%d-*-*-m-*-iso8859-1]
Font specified in font.properties not found [-b&h-lucidasans-bold-i-normal-sans-*-%d-*-*-p-*-iso8859-1]
Font specified in font.properties not found [-b&h-lucidasans-bold-r-normal-sans-*-%d-*-*-p-*-iso8859-1]
Font specified in font.properties not found [-b&h-lucidatypewriter-bold-r-normal-sans-*-%d-*-*-m-*-iso8859-1]
Font specified in font.properties not found [-b&h-lucidasans-bold-r-normal-sans-*-%d-*-*-p-*-iso8859-1]
Font specified in font.properties not found [-b&h-lucidatypewriter-bold-r-normal-sans-*-%d-*-*-m-*-iso8859-1]
Font specified in font.properties not found [-b&h-lucidatypewriter-medium-r-normal-sans-*-%d-*-*-m-*-iso8859-1]
Font specified in font.properties not found [-b&h-lucidasans-medium-i-normal-sans-*-%d-*-*-p-*-iso8859-1]
Font specified in font.properties not found [-b&h-lucidatypewriter-bold-r-normal-sans-*-%d-*-*-m-*-iso8859-1]
Font specified in font.properties not found [-b&h-lucidasans-medium-r-normal-sans-*-%d-*-*-p-*-iso8859-1]
Font specified in font.properties not found [-b&h-lucidasans-medium-i-normal-sans-*-%d-*-*-p-*-iso8859-1]
Font specified in font.properties not found [-b&h-lucidabright-medium-r-normal--*-%d-*-*-p-*-iso8859-1]
Font specified in font.properties not found [-b&h-lucidabright-demibold-i-normal--*-%d-*-*-p-*-iso8859-1]
Font specified in font.properties not found [-b&h-lucidabright-demibold-r-normal--*-%d-*-*-p-*-iso8859-1]
Font specified in font.properties not found [-b&h-lucidabright-medium-i-normal--*-%d-*-*-p-*-iso8859-1]
Font specified in font.properties not found [-b&h-lucidasans-medium-r-normal-sans-*-%d-*-*-p-*-iso8859-1]
Font specified in font.properties not found [-b&h-lucidatypewriter-bold-r-normal-sans-*-%d-*-*-m-*-iso8859-1]
Font specified in font.properties not found [-b&h-lucidasans-bold-i-normal-sans-*-%d-*-*-p-*-iso8859-1]
Font specified in font.properties not found [-b&h-lucidatypewriter-medium-r-normal-sans-*-%d-*-*-m-*-iso8859-1]
Font specified in font.properties not found [-b&h-lucidatypewriter-medium-r-normal-sans-*-%d-*-*-m-*-iso8859-1]
Warning: Cannot convert string "Escape,_Key_Cancel" to type VirtualBinding
Warning: Cannot convert string "Home,_Key_Begin" to type VirtualBinding
Warning: Cannot convert string "F1,_Key_Help" to type VirtualBinding
Warning: Cannot convert string "ShiftF10,_Key_Menu" to type VirtualBinding
Warning: Cannot convert string "F10,Shift_Key_Menu" to type VirtualBinding
Warning: Cannot convert string "KP_Enter,_Key_Execute" to type VirtualBinding
Warning: Cannot convert string "AltReturn,Alt_Key_KP_Enter" to type VirtualBinding

[oracle@logo Disk1]$ xprop -root -remove _MOTIF_DEFAULT_BINDINGS
[oracle@logo Disk1]$ ./runInstaller

抱歉!评论已关闭.