按照文档进行Oracle12R2,出现下面问题,环境变量已经配置完成,但是无法显示Oracle安装界面,相应的执行代码如下,希望高手指路?我的Linux的IP设置为10.201.119.165,曾经配置过xhost与export DISPLAY=:“0.0”,但是没有用。[oracle@em13cr2 database]$ ./runInstaller 
Starting Oracle Universal Installer...Checking Temp space: must be greater than 500 MB.   Actual 136598 MB    Passed
Checking swap space: must be greater than 150 MB.   Actual 10239 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 beforecontinuing with the installation,Continue? (y/n) [n] y
>>> Ignoring required pre-requisite failures. Continuing...
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2016-02-29_01-40-23AM. 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@em13cr2 database]$ cd

解决方案 »

  1.   

    首先,你需要安装xdpyinfo,其次,你在安装数据库的时候不能用root切换到oracle的方式,必须直接以oracle用户登录才可以,上次遇到跟你一样的错误,折腾半天才意识到用户必须以oracle登陆,然后顺利解决了
      

  2.   

    这里有一些相关的内容大家可以看一下:
    http://article.lujishu.net/viewarticle/12997196101032,
    http://article.lujishu.net/viewarticle/12996506501032,
    http://article.lujishu.net/viewarticle/1287030601101