[oracle@localhost database]$ ./runInstaller
Starting Oracle Universal Installer...
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 <<<<
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/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 +命令(使得所有客戶都可以訪問)
正常返回信息為:
access control disabled,clients can connect from any host
如果xhost +不能執行,報錯:xhost : unable to open display ""
可以輸入命令export DISPLAY=:0執行一下
再執行xhost +
就可以安裝oracle了,但是如果沒有安裝成功 重啟linux,還會包上面這個錯,再重新執行一下就好了
如果啟動圖形界面顯示錯誤 可以執行 xhost + 來解決
這是因為Xserver默認情況下不答應別的用戶的圖形程序的圖形顯示在當前屏幕上. 假如需要別的用戶的圖形顯示在當前屏幕上, 則應以當前登陸的用戶, 也就是切換身份前的用戶執行如下命令
xhost +
這個命令將答應別的用戶啟動的圖形程序將圖形顯示在當前屏幕上.