Can't connect to X11 window server using DISPLAY variable [转]
文章分类:数据库
在redhat as 4 上安装Oracle 10g数据库的时候出现以下错误:
Exception in thread "main" java.lang.InternalError: Can't connect to X11 window
server using '<hostname>:0.0' as the value of the DISPLAY variable.
这个错误是为什么,其实我知道是由于当前用户不是oracle或者环境变量设置的不正确导致的,因为每次都是用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:
<ip address of the DBA desktop PC>:0.0
or
<hostname of the DBA desktop PC>:0.0
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, 2005, 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
分享到:
相关推荐
在AIX操作系统上安装Oracle WebLogic Server是一项技术性较强的任务,需要对AIX系统和WebLogic有深入的理解。本文将详细介绍在AIX环境下如何进行WebLogic的安装、配置以及启动。 首先,AIX(Advanced Interactive ...
在MySQL服务器的运行过程中,可能会遇到“ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock'”这样的错误。这个错误提示表明,客户端试图通过Unix域套接字(socket文件)...
?php $link=mysql_connect(‘localhost’,’root’,... 运行后报错 Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock’ 但在 命令行中能进入mysql [root@localhost local]# mysql -u root -p E
linux-JAVA图形处理 ...Can't connect to X11 window server using ':0' as the value of the DISPLAY variable. 错误信息2: Xlib: connection to ":0.0" refused by server Xlib: No protocol specified
解决Can’t connect to MySQL server on ‘localhost’ (10048), 一般见于使用mysql的windows 2003服务器. 错误的出现的原因: 应用程序需要快速释放和创建新连接, 但是由于 TIME_WAIT 中存在的连接超过默认值,导致...
让人纠结了一把…… 代码如下:zhouqian@zhou:~$ mysqlERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2)网上好多的解决办法,可是每个人的实际情况...
unable to connect to ZooKeeper server解决方案(亲测可用)
ERROR 2003 (HY000): Can't connect to MySQL server on '*.*.*.*' (113)的解决办法
How To Connect To The FTP Server
当在Windows 2003服务器环境下,运行PHP时遇到"Can't connect to MySQL server on 'localhost' (10048)"错误时,这意味着本地MySQL服务器没有被成功连接。这种情况通常发生在需要迅速地释放并重新建立新的数据库连接...
ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock’ (2) 的异常。是用dmg直接安装的以为安装包又出现了奇奇怪怪的错误,正欲卸载该版本时找到了我的问题的关键。 解决...
标题中的问题“MySQL无法连接到本地MySQL服务器”通常是由多种因素引起的,这可能是由于服务未启动、配置问题、权限问题或者是网络通信问题等。描述提到的情况指出,即使卸载并重新安装MySQL,问题仍然存在,这表明...
在安装好了MySQL之后,使用了新的配置文件后,MySQL服务器可以成功启动,但在登陆的时候出现了ERROR 2002 (HY000): Can’t connect to local MySQL server through socket,即无法通过socket连接到mysql服务器,同时...
在本文中,我们将深入探讨如何有效解决“ERROR 2003 (HY000): Can’t connect to MySQL server on ‘localhost’ (111)”这个错误,它通常发生在尝试连接到本地MySQL服务器时失败的情况。 首先,这个错误代码...
### "Can't connect to MySQL server on localhost (10061)" 解决方法 #### 错误概述 遇到“Can't connect to MySQL server on 'localhost' (10061)”这一错误通常意味着本地计算机上的MySQL服务出现了问题,可能是...
k8s Unable to connect to the server: x509: certificate is valid for问题解决
博文链接:https://tomshen.iteye.com/blog/192140
ERROR 2002: Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock’ (111) 解决办法: /usr/local/mysql/bin/mysqladmin -u root > -S /var/lib/mysql/mysql.sock password 'your.passwd' ...