一、 启动图形界面时报错
1.1问题1描述
执行./runInstaller时出现:
准备从以下地址启动 Oracle Universal Installer /tmp/OraInstall2009-02-25_11-21-35AM. 请稍候...[oracle@MasServer database]$ Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified Exception in thread "main" java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.
at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at sun.awt.X11GraphicsEnvironment.(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(Unknown Source)
at java.awt.Window.init(Unknown Source)
at java.awt.Window.(Unknown Source)
at java.awt.Frame.(Unknown Source)
at oracle.ewt.popup.PopupFrame.(Unknown Source)
at oracle.ewt.lwAWT.BufferedFrame.(Unknown Source)
at oracle.sysman.oio.oioc.OiocOneClickInstaller.(OiocOneClickInstaller.java:378) at oracle.sysman.oio.oioc.OiocOneClickInstaller.main(OiocOneClickInstaller.java:2091)
1.2问题1解决方法
要在图形界面下安装oracle,因此需要oracle用户能启动X(图形界面)。
(1)以root用户身份执行su - xclock
(2)执行xhost +
(3)切换到oracle用户。su – oracle,再执行./runInstaller。
1.3问题2描述
执行./runInstaller时出现:
准备从以下地址启动 Oracle Universal Installer /tmp/OraInstall2009-03-05_06-58-30 PM. 请稍候
Warning: Cannot convert string "-isas-song ti-medium-r-normal--*-140-*-*-c-*-gb2312.1980-0" to type FontStruct
1.4问题2解决方法
以oracle用户身份登录系统
(1) su – oracle
(2) 编辑oracle用户宿主目录下的.bash_profile文件,配置环境变量。在文件下方加入:
ORACLE_SID=htdb
ORACLE_BASE=/u01/app/oracle
ORACLE_HOME=/u01/app/oracle
PATH=$PATH:$ORACLE_HOME/bin
export PATH
export ORACLE_SID
export ORACLE_BASE
Export ORACLE_HOME
export LANG=en_US
export JAVA_FONTS=/usr/share/fonts/zh_CN/TrueType