Can not install Oracle database in Linux 7

4.6k Views Asked by At

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

2

There are 2 best solutions below

0
On BEST ANSWER

This should do the trick:

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

echo $DISPLAY

This command must output like :0