When I running the runinstaller command on my linux server after entering through ssh it fails with DISPLAY not set.
$ssh oracle@192.168.1.91
-bash-3.1$ /oradata1/clusterware/runInstaller
Starting Oracle Universal Installer...
Checking installer requirements...
Checking operating system version: must be redhat-3, SuSE-9, redhat-4, UnitedLinux-1.0, asianux-1 or asianux-2
Passed
All installer requirements met.
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2008-08-17_04-01-48PM. 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/X11R6/bin/xclock
Solution of The Problem
If you are trying to run GUI on remote unix machine using ssh from the client unix machine then you have to ssh with the -X or -Y option. To solve the problem just quit the session and reenter to the remote machine using anyone of the following,
ssh oracle@192.168.1.91 -X
ssh oracle@192.168.1.91 -Y
If your are already on the machine and got above message then as a root user issue,
#xhost +
Now as oracle user run oracle universal installer.
No comments:
Post a Comment