DISPLAY issue

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

DISPLAY issue

VinodN
Hi Erman,

I am having a hard time configuring display for running dbca/dmu.
So far, I have

Installed X11 on RHEL server, where my db is running.
Exported DISPLAY as follows:

DISPLAY=172.20.163.217:0.0; export DISPLAY  (172.20.163.217 is the IP of my windows laptop)


Tested it as follows:

[oracle@erpfinuat openv]$ ping -c 1 `echo $DISPLAY | cut -f1 -d:`
PING 172.20.163.217 (172.20.163.217) 56(84) bytes of data.
64 bytes from 172.20.163.217: icmp_seq=1 ttl=126 time=1.83 ms

--- 172.20.163.217 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 1.827/1.827/1.827/0.000 ms

But still dmu is failing with:

[oracle@erpfinuat dmu]$ ./dmu.sh

   Database Migration Assistant for Unicode
 Copyright (c) 2011, 2024, Oracle and/or its affiliates.

Exception in thread "main" java.awt.AWTError: Can't connect to X11 window server using '172.20.163.217:0.0' as the value of the DISPLAY variable.
        at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
        at sun.awt.X11GraphicsEnvironment.access$200(X11GraphicsEnvironment.java:65)
        at sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:115)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:74)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:264)
        at java.awt.GraphicsEnvironment.createGE(GraphicsEnvironment.java:103)
        at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:82)
        at sun.awt.X11.XToolkit.<clinit>(XToolkit.java:132)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:264)
        at java.awt.Toolkit$2.run(Toolkit.java:860)
        at java.awt.Toolkit$2.run(Toolkit.java:855)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:854)
        at java.awt.Toolkit.getEventQueue(Toolkit.java:1734)
        at java.awt.EventQueue.isDispatchThread(EventQueue.java:1071)
        at javax.swing.SwingUtilities.isEventDispatchThread(SwingUtilities.java:1366)
        at oracle.ide.osgi.boot.SplashScreenImpl.SynchronizeWithEdt(SplashScreenImpl.java:529)
        at oracle.ide.osgi.boot.api.SplashScreen.createInstance(SplashScreen.java:66)
        at oracle.ide.osgi.boot.OracleIdeLauncher.showSplashScreen(OracleIdeLauncher.java:828)
        at oracle.ide.osgi.boot.OracleIdeLauncher.main(OracleIdeLauncher.java:109)


Looking for your insight..
Reply | Threaded
Open this post in threaded view
|

Re: DISPLAY issue

ErmanArslansOracleBlog
Administrator
Is the VNC port of your laptop open?
Did yo run xhost + command from the root (for privileges)

Also see -> https://ermanarslan.blogspot.com/2016/12/linux-displaying-x-windows-in-windows.html
Reply | Threaded
Open this post in threaded view
|

Re: DISPLAY issue

VinodN
The command is not working:

[root@erpfinuat oracle]# xhost +
xhost:  unable to open display ""


I am checking on the VNC port...
Reply | Threaded
Open this post in threaded view
|

Re: DISPLAY issue

ErmanArslansOracleBlog
Administrator
you should set the DISPLAY properly and then run xhost +
Reply | Threaded
Open this post in threaded view
|

Re: DISPLAY issue

VinodN
It is still failing...

[oracle@erpfinuat 19chome]$ DISPLAY=172.20.163.217:0.0; export DISPLAY
[oracle@erpfinuat 19chome]$ exit
logout
[nagpure.vinod@erpfinuat ~]$ sudo su -
Last login: Mon Oct 21 19:19:49 IST 2024 on pts/6
[root@erpfinuat ~]# xhost +
xhost:  unable to open display ""
[root@erpfinuat ~]#
[root@erpfinuat ~]#
[root@erpfinuat ~]# DISPLAY=172.20.163.217:0.0; export DISPLAY
[root@erpfinuat ~]# xhost +
xhost:  unable to open display "172.20.163.217:0.0"
Reply | Threaded
Open this post in threaded view
|

Re: DISPLAY issue

ErmanArslansOracleBlog
Administrator
what is that 172. ip? Which machine does it belong?

And what are you trying to do? If you want to open X on the server, then you will configure vnc, connect to that vnc, set the display to that vnc, give permission using xhost + with root,  and then run the X-based app (DBCA, DMU) from there..
Reply | Threaded
Open this post in threaded view
|

Re: DISPLAY issue

VinodN
Hi Erman,

It is the IP of my windows desktop. I have not yet installed VNC. Will do it and re-try.