简体   繁体   中英

Can not install Oracle database in Linux 7

I am trying to install Oracle database to Linux machine.I am getting error down below

Could not execute auto check for display colors using command /usr/bin/xdpyinfo. Check if the DISPLAY variable is set. Failed <<<<

I run commands down below but it still returns error. What should I do?

      [oracle@localhost ~]$ hostname
      localhost.localdomain
      [oracle@localhost ~]$ DISPLAY=localhost.localdomain:0.0; export DISPLAY 
      [oracle@localhost ~]$ xclock
      Error: Can't open display: localhost.localdomain:0.0

Linux Version

        [root@localhost oracle]# uname -a
        Linux localhost.localdomain 3.10.0-514.el7.x86_64 #1 SMP Wed Oct 19 
         11:24:13 EDT 2016 x86_64 x86_64 x86_64 GNU/Linux

Oracle Db Version 12.2.01

This should do the trick:

# as root. Grant access to everyone to the X Server
#xhost + 
# as oracle
$export DISPLAY=:0.0
$xclock
$./runInstaller
  1. You need to install Linux with gui
  2. Then check

echo $DISPLAY

This command must output like :0

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM