安装数据库Typical path for xclock: /usr/X11R6/bin/xclock 错误问题

[oracle@localhost database]$ ./runInstaller
Starting Oracle Universal Installer...linux

Checking Temp space: must be greater than 120 MB. Actual 2847 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 <<<<shell

Some requirement checks failed. You must fulfill these requirements beforebash

continuing with the installation,session

Continue? (y/n) [n] yoracle


>>> Ignoring required pre-requisite failures. Continuing...
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2019-06-05_12-05-20AM. 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工具

 

 

DISPLAY变量是用来设置将图形显示到何处.好比CENTOS,你用图形界面登陆进去,DISPLAY自动设置为DISPLAY=:0.0表示显式到本地监视器,那么经过终端工具(例如:xshell)进去,运行图形界面的程序,若是没有设置,系统是不容许程序启动的。
在执行xhost +命令(使得全部客户均可以访问)ui

正常返回信息为:
access control disabled,clients can connect from any hostspa

若是xhost +不能执行,报错:xhost :  unable to open display ""server

能够输入命令export DISPLAY=:0执行一下rem

再执行xhost +  

就能够安装oracle了,可是若是没有安装成功 重启linux,还会包上面这个错,再从新执行一下就行了

 

若是启动图形界面显示错误 能够执行 xhost + 来解决

这是由于Xserver默认状况下不答应别的用户的图形程序的图形显示在当前屏幕上. 假如须要别的用户的图形显示在当前屏幕上, 则应以当前登录的用户, 也就是切换身份前的用户执行以下命令

xhost +

这个命令将答应别的用户启动的图形程序将图形显示在当前屏幕上. 

相关文章
相关标签/搜索