Can't connect to X11 window server using DISPLAY variable
今天一個同事問我在的時候出現了
Exception in thread "main" .lang.InternalError: Can't connect to X11 window
using '
這個錯誤是為什麼,其實我知道是由於當前使用者不是或者環境變數設定的不正確導致的,因為每次都是用oracle使用者解壓,安裝,沒有遇到這個問題,所以也沒有仔細研究過這個錯誤,今天正好同事問到我這個問題,如果不回答清楚了顯的我很不專業,呵呵,在這裡簡單說明一下自己的理解:
cause:
X-Windows emulation is not yet correctly configured or is being mis-used.
solution:
1.Make sure that "DISPLAY” is set properly as either:
or
note:In this example, ip_address/hostnameis the host name or IP address of the system that you want to use to display Oracle Universal Installer (your workstation or PC).
eg.[root@rac1 ~]# xhost +
access control disabled, clients can connect from any host
[root@rac1 ~]# su - oracle
[oracle@rac1 ~]$ export DISPLAY=192.16.2.98:0.0
[oracle@rac1 ~]$ cd database/
[oracle@rac1 database]$ ./runInstaller
Starting Oracle Universal Installer...
Checking installer requirements...
Checking operating system version: must be redhat-3, SuSE-9, redhat-4, UnitedLinux-1.0, asianux-1 or asianux-2
Passed
All installer requirements met.
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2009-03-05_03-36-28PM. Please wait ...[oracle@rac1 database]$ Oracle Universal Installer, Version 10.2.0.1.0 Production
Copyright (C) 1999, , Oracle. All rights reserved.
2. Oracle Customer Support has seen instances where use of the UNIX/Linux “su” command, even “su - oracle” has caused this “Can't connect to X11 window server” error. Therefore, please be sure that you are LOGGED ON as the oracle account. Log directly into the install session. Do not use any variety of “su”.
use oracle log on , not "su - oracle"
eg. [oracle@rac1 database]$ ./runInstaller
3.Oracle Customer Support has seen instances where the incorrect “ulimit” setting for number of files (aka “-n”, aka “nofiles”) has caused this “Can't connect to X11 window server” error. Therefore, please be sure that your values for “nofiles” in the output of “ulimit -a” is at least 65536.
備註:前2個辦法只需要滿足其中一個就可以避免這個錯誤了:直接用oracle登陸,不能su - oracle or 設定display=ip_address_that you want to use to display Oracle Universal Installer:0.0
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/23141985/viewspace-694039/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.Server
- Can't connect to X11 window server usingServer
- Can't connect to X11 window server using '127.0.0.1:0.0'Server127.0.0.1
- java.lang.InternalError: Can't connect to X11 window server using ':0.0' asJavaErrorServer
- [jenkins]Can’t connect to window server – not enough permissionsJenkinsServer
- DELL R900伺服器上基於REDHAT 4.6安裝oracle中碰到的Can't connect to X11 window server using 'localhost:0.0'伺服器RedhatOracleServerlocalhost
- 異常:Can't connect to MySQL server (10060)MySqlServer
- mysql遇到Variable can’t be set to the value of ‘NULL’MySqlNull
- MySQL連線提示Can't connect to local MySQL server through socketMySqlServer
- Can't connect to local MySQL server through socket '/tmp/mysql.sock'MySqlServer
- 連線MySQL錯誤:Can't connect to MySQL server (10060)MySqlServer
- MySQL 2003 - Can’t connect to MySQL server on (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:Variable 'XXXt' can't be set to the value of 'NULL'解決MySqlNull
- 解決問題:Variable 'time_zone' can't be set to the value of 'NULL'Null
- mysql:Variable 'character_set_client' can't be set to the value of 'NULL'解決MySqlclientNull
- 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
- Variable 'character_set_client' can't be set to the value of Null的解決方法clientNull
- [Err] 1231 - Variable 'sql_mode' can't be set to the value of 'NULLSQLNull
- Can't Connect to MySQL Server on IP Address (10061) 錯誤的解決方案MySqlServer
- ERROR 2002 (HY000): Can't connect server socket /var/run/mysqld/mysqld.sockErrorServerMySql
- [mysql] 批量匯入提示: Variable ‘character_set_client’ can’t be set to the value of ‘NULLMySqlclientNull
- mysql匯入報錯Variable 'sql_notes' can't be set to the value of 'NULL'MySqlNull
- Error:Can't connect to SOCKS proxy:Connection refused (Connection refused)Error
- 完美解決stack Error: Can‘t find Python executable “python“, you can set the PYTHON env variable.ErrorPython
- Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)解決方法MySqlServer
- [ERR] 1231 - Variable 'sql_mode' can't be set to the value of 'NO_AUTO_CREATE_USER'SQL
- 解決ERROR 1231 (42000): Variable 'time_zone' can'tError
- MySQL不能啟動 Can't start server : Bind on unix sockeMySqlServer