Can't connect to X11 window server using '127.0.0.1:0.0'
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
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/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.Server
- java.lang.InternalError: Can't connect to X11 window server using ':0.0' asJavaErrorServer
- Can't connect to X11 window server usingServer
- Can't connect to X11 window server using DISPLAY variableServer
- DELL R900伺服器上基於REDHAT 4.6安裝oracle中碰到的Can't connect to X11 window server using 'localhost:0.0'伺服器RedhatOracleServerlocalhost
- [jenkins]Can’t connect to window server – not enough permissionsJenkinsServer
- 異常:Can't connect to MySQL server (10060)MySqlServer
- MySQL連線提示Can't connect to local MySQL server through socketMySqlServer
- Can't connect to local MySQL server through socket '/tmp/mysql.sock'MySqlServer
- Error: couldn't connect to server 127.0.0.1:27017 src/mongo/shell/mongo.js:91ErrorServer127.0.0.1GoJS
- 連線MySQL錯誤:Can't connect to MySQL server (10060)MySqlServer
- 解決Can 't connect to local MySQL server through socket '/tmp/mysql.sock '(2) "MySqlServer
- mysqldump: Got error: 2002: Can't connect to local MySQL server through.....MySqlGoErrorServer
- 【linux】Can't connect to MySQL server on 'XXX' (13)問題解決方式LinuxMySqlServer
- Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock錯誤MySqlServer
- ERROR 2002 (HY000): Can't connect server socket /tmp/mysql.sockErrorServerMySql
- MySQL 5.5 關閉資料庫報錯"Can't connect to local MySQL server through socket"MySql資料庫Server
- mysql can't connect error about privilege----not root userMySqlError
- MySQL問題記錄--Can't connect to MySQL server on localhost (10061)解決方法MySqlServerlocalhost
- MySQL報錯'ERROR 2002 (HY000): Can't connect to local MySQL server through'MySqlErrorServer
- ERROR 2003 (HY000)Can't connect to MySQL server on '192.168.8.247' (113)ErrorMySqlServer
- ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)ErrorMySqlServerlocalhost
- Can't Connect to MySQL Server on IP Address (10061) 錯誤的解決方案MySqlServer
- ERROR 2002 (HY000): Can't connect server socket /var/run/mysqld/mysqld.sockErrorServerMySql
- Error:Can't connect to SOCKS proxy:Connection refused (Connection refused)Error
- Linux下安裝Oracle 錯誤解決 - Error: Can't open display:127.0..0.1:0.0LinuxOracleError
- Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)解決方法MySqlServer
- MySQL不能啟動 Can't start server : Bind on unix sockeMySqlServer
- mysql 啟動報錯Can't connect to local MySQL server through socket '/data/mysql/mysql/mysql.sock'(111)MySqlServer
- [mac pip錯誤]Can't connect to HTTPS URL because the SSL module is not availableMacHTTPAI
- 解決 Android studio Connect to 127.0.0.1:[/127.0.0.1] failed: Connection refusedAndroid127.0.0.1AI
- MySQL 5.5 原始碼安裝報錯"[ERROR] Can't start server"MySql原始碼ErrorServer
- rman: can't open target
- Xlib: connection to ":0.0" refused by server(openSUSE)Server
- 解決svnserve: Can't bind server socket: Address already in useServer
- ERROR 2002(HY000):Can't connect to local MySQL socket '/tmp/mysql.sock'ErrorMySql
- Connect SQL Server from Linux Client using Windows Authentication and troubleshoot stepsSQLServerLinuxclientWindows
- mail can't send title on SolarisAI