Dear DBA-Mates,
Hope you all are Good and Safe, also may have taken Covid-19
Vaccination which is very important.
We would like to share Xclock
issue: Error: Can't open display xclock display error which we need to
fix for display during Oracle Database/Application software installation as
GUI.
Below are some important points and steps which may
useful to all. This is very easy and simple steps but sometimes it will be headache
to us…
Xclock issue: Error: Can't open display
XCLOCK Fix:
Below are the Pre-checks/pre settings:
1.
We need to start Xming software.
2.
We need to enable X11 in putty as shown below
path:
Open putty à
SSH à X11 à X11 Forwarding (Tick Mark “Enable X11 forwarding”)
X display location : “:0.0”
3.
Echo $DISPLAY – should give
output
4.
Below rpms should be installed:
1.
libXaw-1.0.13-4.el7.x86_64.rpm
2.
xorg-x11-apps-7.7-7.el7.x86_64.rpm
5. If still not working then we can add xauth list
as shown below:
[oracle@linux dbhome_1]$ xclock
Error: Can't open display:
[oracle@linux dbhome_1]$ echo $DISPLAY
[oracle@linux dbhome_1]$ export DISPLAY=localhost:11.0
[oracle@linux dbhome_1]$ xclock
PuTTY X11 proxy: Authorisation not
recognised
Error: Can't open display: localhost:11.0
[oracle@linux dbhome_1]$ xauth list
linux.oracle.com/unix:16 MIT-MAGIC-COOKIE-1 ea8443005780edfb76f6930b20d4802c
linux.oracle.com/unix:11 MIT-MAGIC-COOKIE-1 80eab308a9f45535b261e1bf999d475e
linux.oracle.com/unix:13 MIT-MAGIC-COOKIE-1 3bbf11afe24f078bae5f55ae9145ca64
linux.oracle.com/unix:14 MIT-MAGIC-COOKIE-1 abc18e54fd548ccec81649f300a6a1af
linux.oracle.com/unix:15 MIT-MAGIC-COOKIE-1 2a03c3a4cc9c52f41b6fd13878194c0e
linux.oracle.com/unix:12 MIT-MAGIC-COOKIE-1 e7b5657526c2481dbfee1e0599496013
linux.oracle.com/unix:10 MIT-MAGIC-COOKIE-1 1ee8aec7489a11e0cb89a93734ccc19c
[oracle@linux dbhome_1]$ pwd
/u01/DB18C/oracle/product/18.0.0/dbhome_1
[oracle@linux dbhome_1]$
[oracle@linux dbhome_1]$ echo $DISPLAY
localhost:11.0
Note: If xclock is working with root but not working
with oracle user then also we can take xauth list from root user and export the
display as per root user and add the xauth list in oracle user from root user.
Below is the step to add the xauth list:
[oracle@linux dbhome_1]$ xauth add
localhost.localdomain/unix:10
MIT-MAGIC-COOKIE-1
15779b706bb1daf925ad02323df4fda3
[oracle@linux dbhome_1]$ xauth add
localhost.localdomain/unix:11
MIT-MAGIC-COOKIE-1
542175afd02f0cc7d5f9fe27c43321d4
[oracle@linux dbhome_1]$ xauth add
linux.oracle.com/unix:10
MIT-MAGIC-COOKIE-1
94eb4e7f6c702d2e962a3e2cbf727dc8
[oracle@linux dbhome_1]$ xauth add
linux.oracle.com/unix:11
MIT-MAGIC-COOKIE-1
21ad871e3931d34b963988874a232d0d
[oracle@linux dbhome_1]$ xclock
Warning: Missing charsets in String to FontSet
conversion
^C
[oracle@linux dbhome_1]$
Hope above steps are easy and helpful. Kindly let us
know for any concerns and will try to give some more inputs.
How to improve
oracle database performance tuning
SQL Tuning Advisor steps and details
What is PDB and CDB in oracle 12c
Stuck Thread in WebLogic Error and
solution
Concurrent Manager Performance Tuning Tips in Oracle EBS R12
Thanks for your information. very good article.
ReplyDeleteAWS Online Training in India
AWS Online Training in Hyderabad