Can't connect to X11 window server using '127.0.0.1:0.0'

tolywang發表於2010-02-26

Oracle 10.2.0.4  ,  Linux AS 5.3 ,  64BIT

oracle 使用者的  .bash_profile  ,

-------------------------------------------------------------------------------------------------------------------------  

# .bash_profile

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

# User specific environment and startup programs

PATH=$PATH:$HOME/bin:/bin:/sbin:/usr/bin:/usr/sbin
BASH_ENV=$HOME/.BASHRC

export BASH_ENV PATH
unset USERNAME

# Set Oracle Environment
ORACLE_HOME=/u01/product/oracle;export ORACLE_HOME
ORACLE_SID=wmb2bprd1; export ORACLE_SID
ORACLE_OWNER=oracle;export ORACLE_OWNER
ORACLE_BASE=/u01/product;export ORACLE_BASE
ORACLE_TERM=vt100;export ORACLE_TERM
#NLS_LANG='traditional chinese_taiwan'.ZHT16BIG5;export NLS_LANG
LD_LIBRARY_PATH=$ORACLE_HOME/lib;export LD_LIBRARY_PATH

ORA_CRS_HOME=/u01/product/crs; export ORA_CRS_HOME

set -u
#PS1=`hostname`'$';export PS1
PS1=`hostname`'$';export PS1
EDITOR=/bin/vi; export EDITOR
JAVA_HOME=/usr/local/java;export JAVA_HOME
ORA_NLS33=/u01/product/oracle/ocommon/nls/admin/data;export ORA_NLS33
CLASSPATH=/u01/product/oracle/jdbc/lib/classesl11.zip:/usr/local/java;
export DISPLAY=127.0.0.1:0.0
# export LD_ASSUME_KERNEL=2.6.9
export LD_ASSUME_KERNEL=2.6.18
PATH=$ORACLE_HOME/bin:$ORACLE_HOME/OPatch:$ORA_CRS_HOME/bin:$JAVA_HOME/bin:$PATH:.;export PATH
alias ll='ls -l';
alias ls='ls --color';
alias his='history';

umask 022

 

 


-------------------------------------------------------------------------------------------------------------------------------- 

安裝Oracle軟體或升級的時候, 會出現java的錯誤, 主要是我們VNC登入xwinow的時候是以root 登入或我們linux  terninal  是從root 使用者切換到oracle使用者來操作的 , 所以會報錯, 我們需要VNC 登入也是oracle , 開啟linux terminal 直接就是oracle使用者,  而不是root 切換的 。 

 

mxb2bcoredb01$./runInstaller

Starting Oracle Universal Installer...

Checking installer requirements...

Checking operating system version: must be redhat-3, SuSE-9, SuSE-10, redhat-4, redhat-5, UnitedLinux-1.0, asianux-1, asianux-2 or asianux-3

                                      Passed

All installer requirements met.

Preparing to launch Oracle Universal Installer from /tmp/OraInstall2010-02-25_01-41-45PM. Please wait ...mxb2bcoredb01$Oracle Universal Installer, Version 10.2.0.4.0 Production

Copyright (C) 1999, 2008, Oracle. All rights reserved.

Can't connect to X11 window server using '127.0.0.1:0.0' as the value of the DISPLAY variable.

127.0.0.1:0.0

127.0.0.1:0.0

OUI-10025:Unable to start an interactive install session because of the following error:Can't connect to X11 window server using '127.0.0.1:0.0' as the value of the DISPLAY variable. The DISPLAY environment variable should be set to :, where the is usually '0.0'.

OUI-10026:Depending on the Unix Shell, you can use one of the following commands as examples to set the DISPLAY environment variable:

- For csh:                      % setenv DISPLAY 192.168.1.128:0.0

- For sh, ksh and bash:         $ DISPLAY=192.168.1.128:0.0; export DISPLAY

Use the following command to see what shell is being used:

        echo $SHELL

Use the following command to view the current DISPLAY environment variable setting:

        echo $DISPLAY

- Make sure that client users are authorized to connect to the X Server.

OUI-10027:To enable client users to access the X Server, open an xterm, dtterm or xconsole as the user that started the session and type the following command:

% xhost +

To test that the DISPLAY environment variable is set correctly, run a X11 based program that comes with the native operating system such as 'xclock':

        %

If you are not able to run xclock successfully, please refer to your PC-X Server or OS vendor for further assistance.

Typical path for 'xclock': '/usr/X11R6/bin/xclock'  

 

 

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/35489/viewspace-627888/,如需轉載,請註明出處,否則將追究法律責任。

相關文章