In ubuntu (and perhaps in all debian), by default, to a running X-server can have access only to the user running the server instance. In this connection problems arise. For example, when you install Oracle, which has a graphical installer, the installer itself runs as user oracle. But, since no “oracle” user X-started the current session, and he does not have access to the X-server and the installation is aborted with an error.

The solution is simple:

  1. Oracle provides users access to our X-session:
    xhost + local: oracle
  2. Check the value of the variable DISPLAY:
    echo $ DISPLAY

    we get something like:

    $ Echo $ DISPLAY
    0
  3. Switch to the “oracle” user and check the variable DISPLAY:
    su - oracle
    echo $ DISPLAY

    If the output differs from what is shown in claim 2, it means must

  4. set the variable DISPLAY. For bash it looks like this:
    export DISPLAY =: 0
  5. Again, check the value of the variable DISPLAY:
    echo $ DISPLAY

    At this time, we get something similar to:

    $ Echo $ DISPLAY
    0

Now you can run the Oracle installer.

(Visited 18 times, 1 visits today)
adminOracleTips
In ubuntu (and perhaps in all debian), by default, to a running X-server can have access only to the user running the server instance. In this connection problems arise. For example, when you install Oracle, which has a graphical installer, the installer itself runs as user oracle. But, since...

Do you want to be notified about new DBA updates, releases, jobs and free tips? Join our email newsletter. It's fast and easy. You will be among the first to know about hot new DBA updates and stuff, it will help you enhance your DBA skills.
We take your privacy very seriously