图形化安装oracle11g的时候,图形化出不来:http://blog.csdn.net/ssrmygod/article/details/70141185
报错是这样:
Could not execute auto check for display colors using command /usr/bin/xdpyinfo. Check if the DISPLAY variable is set. Failed
我的第一反应是,the DISPLAY variable is not set,设置一下DISPLAY应该可以解决。
网上找了方法是这样:http://blog.itpub.net/30211111/viewspace-1605534/
use root login,then
#xhost +
#su - oracle
#./runInstaller
讲道理这样就可以解决问题。
但是我没有奏效。我就是用另一种办法。
详细情况是这样:
[oracle@mygod app]$ cd database/
[oracle@mygod database]$ ls
install readme.html response rpm runInstaller sshsetup stage welcome.html
[oracle@mygod database]$ ./runInstaller
[oracle@mygod database]$ ./runInstaller
Starting Oracle Universal Installer...
Checking Temp space: must be greater than 120 MB. Actual 9391 MB Passed
Checking swap space: must be greater than 150 MB. Actual 2047 MB Passed
Checking monitor: must be configured to display at least 256 colors
>>> Could not execute auto check for display colors using command /usr/bin/xdpyinfo. Check if the DISPLAY variable is set. Failed <<<<
Some requirement checks failed. You must fulfill these requirements before
continuing with the installation,
Continue? (y/n) [n] y
>>> Ignoring required pre-requisite failures. Continuing...
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2017-04-12_01-29-30PM. Please wait ...
DISPLAY not set. Please set the DISPLAY and try again.
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.
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':
% <full path to xclock.. see below>
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
[oracle@mygod database]$
解决方法:
根据提示我export DISPLAY=192.168.1.128:0.0
在root下执行 xhost +
[root@mygod ~]# yum -y install xorg-x11-apps.x86_64
xclock测试也没问题
但就是依旧解决不了问题。
终于让我找到一个100%解决问题的方法:
正确的登录方式:在字符界面,使用 oracle 用户通过 start x登录 Xwindow,即可进行安装。
或者以图形界面启动系统,再使用 oracle 用户登陆,即可进行安装。
失败的登陆方式:以root用户登录Xwindow,然后su - oralce,这样在进行安装时,就会提示上述那些错误了。