Solved

while run ./runInstaller i unable to connect X11

Posted on 2008-10-21
4
702 Views
Last Modified: 2013-12-27
Hi experts.
Good morning!
MY OS sunsolaris sparc
My Database oracle8i

Question:
I m try to Install oracle8i database on sunsolaris sparc mechine, i have completed pre-installation process, But when trying to run ./runInstaller the following error i getting. Pls help me .

The error:
$ Initializing Java Virtual Machine from /tmp/OraInstall/jre/bin/jre. Please wait...
java.lang.InternalError: Can't connect to X11 window server using ''who -m | cut -f2 -d'('| cut -f1 -d')'':0.0' as the value of the DISPLAY variable.
        at sun.awt.motif.MToolkit.<init>(Compiled Code)
        at java.awt.Toolkit.getDefaultToolkit(Compiled Code)
        at oracle.sysman.oii.oiif.oiifm.OiifmSplashScreen.getImage(Compiled Code
)
        at oracle.sysman.oii.oiif.oiifm.OiifmSplashScreen.<init>(Compiled Code)
        at oracle.sysman.oii.oiic.OiicInstaller.main(Compiled Code)

thanks
siva
0
Comment
Question by:Maddy
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 38

Accepted Solution

by:
yuzh earned 200 total points
ID: 22773684
If you are at the console, you can manually set the DISPLAY variable:
DISPLAY=`hostname`:0.0
export  DISPLAY
then run the script.
IF you are remote login, you need to make sure your local machine has X server install and it is running on the background.
and set:
DISPLAY="Local-IP":0.0
export DISPLAY
You can also for setup X forwarding for ssh to do the job.
0
 

Author Comment

by:Maddy
ID: 22773816
hi yuzh sir :

YAP i got it ... sir i need permanent solution for this.

Thanks lots

siva.
0
 
LVL 38

Expert Comment

by:yuzh
ID: 22774342
What type of  "permanent solution " do you need?
How often do you need to run the installer.
You can also write a script to set the DISPLAY and run the installer.
eg:
#!/bin/ksh
export DISPLAY=`who am i | awk '{print $6}' | tr -d "()"`:0.0
/path-to/ runInstaller
exit
# End of script
0
 

Author Closing Comment

by:Maddy
ID: 31508619
sir thanks lots.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question