Linux上安装Oralce数据库时,往往需要调出图形界面,虽然xmanager passive已经启动,但是依旧调不出来,出现如下报错:
[oracle@cdr database]$ export DISPLAY=172.20.20.15:0.0
[oracle@cdr database]$ ./runInstaller
Starting Oracle Universal Installer...
Checking Temp space: must be greater than 500 MB. Actual 495816 MB Passed
Checking swap space: must be greater than 150 MB. Actual 7551 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] n
User Selected: No
Exiting Oracle Universal Installer, log for this session can be found at /tmp/OraInstall2021-12-23_05-45-13PM/installActions2021-12-23_05-45-13PM.log
解决方法:
先检查xdpyinfo是否安装:
[root@cdr ~]# /usr/bin/xdpyinfo
-bash: /usr/bin/xdpyinfo: No such file or directory
检查发现xdpyinfo没有安装,先安装xdpyinfo
[root@cdr ~]# yum -y install xdpyinfo
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Resolving Dependencies
--> Running transaction check
---> Package xorg-x11-utils.x86_64 0:7.5-23.el7 will be installed
--> Processing Dependency: libdmx.so.1()(64bit) for package: xorg-x11-utils-7.5-23.el7.x86_64
--> Processing Dependency: libXxf86dga.so.1()(64bit) for package: xorg-x11-utils-7.5-23.el7.x86_64
--> Processing Dependency: libXv.so.1()(64bit) for package: xorg-x11-utils-7.5-23.el7.x86_64
--> Running transaction check
---> Package libXv.x86_64 0:1.0.11-1.el7 will be installed
---> Package libXxf86dga.x86_64 0:1.1.4-2.1.el7 will be installed
---> Package libdmx.x86_64 0:1.1.3-3.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
====================================================================================================================================================================================================================================
Package Arch Version Repository Size
====================================================================================================================================================================================================================================
Installing:
xorg-x11-utils x86_64 7.5-23.el7 c7 114 k
Installing for dependencies:
libXv x86_64 1.0.11-1.el7 c7 18 k
libXxf86dga x86_64 1.1.4-2.1.el7 c7 19 k
libdmx x86_64 1.1.3-3.el7 c7 16 k
Transaction Summary
====================================================================================================================================================================================================================================
Install 1 Package (+3 Dependent packages)
Total download size: 168 k
Installed size: 334 k
Downloading packages:
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 3.7 MB/s | 168 kB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : libXxf86dga-1.1.4-2.1.el7.x86_64 1/4
Installing : libdmx-1.1.3-3.el7.x86_64 2/4
Installing : libXv-1.0.11-1.el7.x86_64 3/4
Installing : xorg-x11-utils-7.5-23.el7.x86_64 4/4
Verifying : xorg-x11-utils-7.5-23.el7.x86_64 1/4
Verifying : libXv-1.0.11-1.el7.x86_64 2/4
Verifying : libdmx-1.1.3-3.el7.x86_64 3/4
Verifying : libXxf86dga-1.1.4-2.1.el7.x86_64 4/4
Installed:
xorg-x11-utils.x86_64 0:7.5-23.el7
Dependency Installed:
libXv.x86_64 0:1.0.11-1.el7 libXxf86dga.x86_64 0:1.1.4-2.1.el7 libdmx.x86_64 0:1.1.3-3.el7
Complete!
然后即可调出图形界面
[oracle@cdr database]$ ./runInstaller
Starting Oracle Universal Installer...
Checking Temp space: must be greater than 500 MB. Actual 495814 MB Passed
Checking swap space: must be greater than 150 MB. Actual 7551 MB Passed
Checking monitor: must be configured to display at least 256 colors. Actual 16777216 Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2021-12-23_05-46-11PM. Please wait ...[oracle@cdr database]$