3 Replies Latest reply: Jul 25, 2013 8:21 AM by EdStevens RSS

    Install Oracle "DISPLAY not Set"

    Ruhulamin

      Hii master,

       

      I have problem,

      I trying install Oracle 10.2 at my server, and I have a problem,

       

      this my problem:

       

      <quote>

      Has 'rootpre.sh' been run by root? [y/n] (n)

      y

       

       

      Starting Oracle Universal Installer...

       

       

      No pre-requisite checks found in oraparam.ini, no system pre-requisite checks will be executed.

      Preparing to launch Oracle Universal Installer from /tmp/OraInstall2013-07-25_02-30-10PM. Please wait ...

      DISPLAY not set. Please set the DISPLAY and try again.

      Depending on the Unix Shell, you can use one of the following commands as examples to set the DISPLAY environment variable:

      - For csh:                      % setenv DISPLAY 192.168.1.128:0.0

      - For sh, ksh and bash:         $ DISPLAY=192.168.1.128:0.0; export DISPLAY

      Use the following command to see what shell is being used:

              echo $SHELL

      Use the following command to view the current DISPLAY environment variable setting:

              echo $DISPLAY

      - Make sure that client users are authorized to connect to the X Server.

      To enable client users to access the X Server, open an xterm, dtterm or xconsole as the user that started the session and type the following command:

      % xhost +

      To test that the DISPLAY environment variable is set correctly, run a X11 based program that comes with the native operating system such as 'xclock':

              % <full path to xclock.. see below>

      If you are not able to run xclock successfully, please refer to your PC-X Server or OS vendor for further assistance.

      Typical path for xclock: /usr/bin/X11/xclock

       

      </quote>

       

       

      I hope resolv my problem..

       

      regard..

        • 1. Re: Install Oracle "DISPLAY not Set"
          S27

          Hi,

           

          Before starting the oracle installation give xhost+

          Afer that try this xclock it should show you the clock

           

          Thanks

          Sham

          • 3. Re: Install Oracle "DISPLAY not Set"
            EdStevens

            Your quoted messages look pretty self-explanatory.  Which of those detailed steps are you having difficulty with?

             

            A little background ...

             

            The OUI (and a few other oracle utilities) are GUI applications.   On *nix, that means they are x-windows (x-11) apps.  As such, they require an x-windows server be running on the machine that is actually controlling the display.  The typical *nix server setup is that you connect to the server from your desktop using an ssh client, such as putty.  You also have an x-windows server running on your desktop.  There are several products available for this.  Exceed is one popular (and expensive) product that includes the x-server among several other functions.  I use xming because it is free, lightweight and does only the one thing I want -- x-windows service).  After connecting to the db server, you need to tell the os where to send the x-11 output.  Historically that is done by setting the DISPLAY variable to the ip address and display number of the machine that is supposed to receive the output.  There are other methods that can be preferable, especially since your desktop is probably DHCP and you'd have to check the IP address every time.  I prefer to set my  putty session to use x-11 port forwarding.  With that I don't have to do anything special on the *nix server -- no DISPLAY, no +xhost.  Just make sure xming is running on my desktop, connect and go.

             

            As has already pointed out, this won't work if you log on as someone else (say, root) then su to oracle.  You have to log on directly as the user that will be using the x-11.

             

             

            ============================================================================

            BTW, it would be really helpful if you would go to your profile and give yourself a recognizable name.  It doesn't have to be your real name, just something that looks like a real name.  Who says my name is really Ed Stevens?  But at least when people see that on a message they have a known identity.  Unlike the system generated name of 'ed0f625b-6857-4956-9b66-da280b7cf3a2', which is like going to the pub with a bag over your head.

            ============================================================================