Advertisements
Home > Operating System, Software > How to Solve Can’t Open Display Error on Installing Oracle on Linux

How to Solve Can’t Open Display Error on Installing Oracle on Linux

This error occurs during my attempt on installing oracle 11g on a Linux machine (I used Centos 7). When I run the runInstaller script using a non-root user (which is oracle in this case), the error displays:

No protocol specified.

Error: Can’t open display:

So, what I think is happening is that there is a GUI library that is using an X library where this library by default can only be used by a root user. To tackle that problem, here’s what you have to do:

  1. Change to a root user.

    su

  2. Add xhost authorization list so a non-root user can access the library (in this case, we want user oracle to be included in the shost authorization list).

    xhost local:oracle

  3. Change to the non-root user you have authorized in the xhost (in this case, oracle).

    su – oracle

  4. Set the DISPLAY environment value to 0.0.

    export DISPLAY=:0.0

After that, you should be able to install the Oracle application and the GUI installation interface will show.

Advertisements
  1. No comments yet.
  1. August 1, 2017 at 7:08 am

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s

%d bloggers like this: