X wIndows for Oracle installation

I am installing Oracle on a Solaris 10 server. I need to set the display environment before the installation. I tried this command to set the display environment:

# DISPLAY=servername.xxx.com:0
# xhost +
xhost:  unable to open display "servername.xxx.com:0"

How can I set the display correctly?
toookiAsked:
Who is Participating?
 
achellstromConnect With a Mentor Commented:
You also probably should:
# DISPLAY=servername.xxx.com:0
# export DISPLAY
# xhost +
0
 
achellstromCommented:
Are you actually on the machine's console or are you attempting to run this through an x-windows session say with Cygwin-X, Exceed, Ubuntu, or Labtam?  
What shell are you using sh, ksh, etc.
Are you the Oracle user or root?
0
 
achellstromCommented:
Also, if you are connecting remotely using ssh then make sure you connect using >ssh -X oracle@servername.XXX.com
0
Cloud Class® Course: CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

 
toookiAuthor Commented:
I need to install Oracle on a Solaris 10 server to which I login remotely via telnet (not ssh) only.

So on my Windows PC I telnet to the Solaris 10 server and become root on the server. When I try to run the Oracle installer command it complains that the display is not set.

I am not using X-windows on my Windows PC.

I tried:
#DISPLAY=servername.xxx.com:0
# export DISPLAY
# xhost +
xhost:  unable to open display "servername.xxx.com:0"


And this is the shell:
# echo $SHELL
/bin/ksh

But I can switch the shell. And I am the oracle user. I su to oracle before running the above commands.


Get the same error message.
0
 
achellstromCommented:
In order to be able to display x-window content back to your Windows OS you must have an x-server running on the Windows box.  I am sure there probably are some free x-windows servers.  I mentioned several x-windowing programs in my notes above.  I think Cygwin/X may be freeware.  I personally use Labtam.  Exceed is also a very good program.  I am sure Labtam and Exceed you have to pay for.  I have not used Cygwin/X, so I am not sure on that one.  Once you have an x-windowing program in place then it will work.  If it is a good xwindow server you will not have to set your DISPLAY variable.  Additionally, sometimes the variable for the console :0 or :0.0 is not available for root, because it is not safe to allow windows to be thrown back via ssh to root from the console.  Your Solaris system administrator sets this to either true or false.  If it is set to false you will not be able to log in as root and su - oracle and get your display.  You should be able to log straight into Oracle using an xwindow program, and then all GUI applications will display on your Windows machine.
0
 
toookiAuthor Commented:
Thank you for your explanation.

With the problem above --- I installed tightvnc viewer on my Windows PC. And now I can have a X-windows on my Windows XP PC.

The X-windows server is running to port 75 on a Solaris server. I connect to that port of the server via my tightvnc client on Windows XP.

I attached the screenshot of the screen after I connect via the tightvnc.

New to it -- I cannot create a new window inside the X-windows screen... How do I do it so that I could do multiple work done on multiple windows..? screen
0
 
achellstromCommented:
So you can display the DCE window back to your Windows XP or Windows 7 box with no problem?
0
 
achellstromCommented:
You have done an su or a sudo to a different user, without copying the correct MIT-MAGIC-COOKIE authentication.
You should list these cookies by entering the following, under the account you used to login:
Example:
$ xauth list
10.254.212.13:0  MIT-MAGIC-COOKIE-1  8783b78982a4be8c99a88d99a19495ae
10.200.200.139:0  MIT-MAGIC-COOKIE-1  a59dabaf8cb79b999db399a4be97849a
galactus/unix:10  MIT-MAGIC-COOKIE-1  4ea88bc8281ee1e7f6b296728e99c4b7
galactus/unix:11  MIT-MAGIC-COOKIE-1  fefb4342e24c0bdff69c4e313614912e
galactus/unix:12  MIT-MAGIC-COOKIE-1  b36a53f1b53dd605ec234242b6e8a1b0

These should be copied into the oracle account: i.e. the one you su to
Therefore, as the user (in this case, oracle) trying to run the X11 application, add the cookies by hand:
oracle@servername.xxx.com# xauth add 10.254.212.13:0  MIT-MAGIC-COOKIE-1  8783b78982a4be8c99a88d99a19495ae
oracle@servername.xxx.com# xauth add 10.200.200.139:0  MIT-MAGIC-COOKIE-1  a59dabaf8cb79b999db399a4be97849a
oracle@servername.xxx.com# xauth add galactus/unix:10  MIT-MAGIC-COOKIE-1  4ea88bc8281ee1e7f6b296728e99c4b7
oracle@servername.xxx.com# xauth add galactus/unix:11  MIT-MAGIC-COOKIE-1  fefb4342e24c0bdff69c4e313614912e
oracle@servername.xxx.com# xauth add galactus/unix:12  MIT-MAGIC-COOKIE-1  b36a53f1b53dd605ec234242b6e8a1b0

Check that the X11 Forwarding function is correctly activated, as well as your DISPLAY variable:
oracle@servername.xxx.com# env | grep -i display
DISPLAY=localhost:11.0
... and you should be in business!
Please update this and let me know if it helped you.
Thanks

I referenced this website to  help resolve this issue:
http://www.gilandre.net/cgi-bin/wiki.cgi/X11PuttyProxy
http://froebe.net/blog/2008/11/14/getting-xlib-putty-x11-proxy-wrong-authentication-protocol-attempted-i-have-the-answer/
0
 
toookiAuthor Commented:
Thank you for the explanation..

But I went one step back now. The VNCserver (running on a Solaris10 server) and vncviewer (running on my Windows XP PC) was working.

For some reason I stopped vncserver on the Solaris server.

Now when I try:
$./vncserver
To start vncserver, I get attached error... error
0
 
achellstromCommented:
You don't appear to be root. ie. /home/awy088.  I would try sticking to the last solution I gave you and stop switching your environment while we are trying to resolve this problem.  The easiest way to solve all of this is to spend $100 for a Labtam x-window server license.  You will install it on your Windows box and all your problems will magically go away.  How much is your time worth?
0
 
toookiAuthor Commented:
Thank you. I downloaded labtam and will look into the license cost.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.