- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Unable to run xclock from oracle
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-20-2008 05:32 AM
тАО08-20-2008 05:32 AM
Unable to run xclock from oracle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-20-2008 05:46 AM
тАО08-20-2008 05:46 AM
Re: Unable to run xclock from oracle
export correct display paramters it should work
example:
export DISPLAY=
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-20-2008 06:50 AM
тАО08-20-2008 06:50 AM
Re: Unable to run xclock from oracle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-20-2008 06:52 AM
тАО08-20-2008 06:52 AM
Re: Unable to run xclock from oracle
The script below does this. Assuming you save it as "disp_auth.sh", while still root, your would run "disp_auth.sh oracle" and then "su - oracle" followed by setting / exporting the DISPLAY variable as it was when you were root.
!/usr/bin/ksh
if [ "$1" != '' ]
then
echo
AUTH=/usr/bin/X11/xauth
outfile=${HOME}/`whoami`.disp
echo $AUTH -i add `$AUTH list | tail -1` > ${outfile}
echo export DISPLAY=$DISPLAY >> ${outfile}
chmod 755 $outfile
su - $1 -c "${outfile}"
else
echo 'Usage: disp_auth.sh
fi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-20-2008 07:44 AM
тАО08-20-2008 07:44 AM
Re: Unable to run xclock from oracle
if using ssh and su'ing to oracle, echo $DISPLAY while still root. You will need to set/export this value when you are oracle. It will appear either as
localhost:
the offset is determined by ssh config
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-20-2008 09:05 AM
тАО08-20-2008 09:05 AM
Re: Unable to run xclock from oracle
also we tried export display but that also not work.
export DISPLAY=
i tried with above command
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-20-2008 09:21 AM
тАО08-20-2008 09:21 AM
Re: Unable to run xclock from oracle
sorry, should read:
#!/usr/bin/ksh
"also we tried export display but that also not work.
export DISPLAY=
i tried with above command "
Are you logging in as root using ssh? Are you then "su"ing to oracle? If yes to both, then what does "echo $DISPLAY" when run as root yield?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-20-2008 09:39 AM
тАО08-20-2008 09:39 AM
Re: Unable to run xclock from oracle
When I echo $DISPLAY from root it shows {localhost:10.0}
and same when I run from oracle it shows {-bash: DISPLAY: unbound veriable}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-20-2008 10:10 AM
тАО08-20-2008 10:10 AM
Re: Unable to run xclock from oracle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-20-2008 10:18 AM
тАО08-20-2008 10:18 AM
Re: Unable to run xclock from oracle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-20-2008 10:39 AM
тАО08-20-2008 10:39 AM
Re: Unable to run xclock from oracle
export DISPLAY=localhost:10.0
then try xclock. If you get a message about like
"Xlib: connection to "localhost:10.0" refused by server
Xlib: PuTTY X11 proxy: MIT-MAGIC-COOKIE-1 data did not match
Error: Can't open display: localhost:10.0
Error: Couldn't find per display information"
then you need to authorize the display as described above
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-20-2008 10:47 AM
тАО08-20-2008 10:47 AM
Re: Unable to run xclock from oracle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-20-2008 10:54 AM
тАО08-20-2008 10:54 AM
Re: Unable to run xclock from oracle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-20-2008 11:43 AM
тАО08-20-2008 11:43 AM
Re: Unable to run xclock from oracle
it should be #!/usr/bin/ksh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-20-2008 12:10 PM
тАО08-20-2008 12:10 PM
Re: Unable to run xclock from oracle
first with root, execute:
xhosts + (maybe no required)
then
su - oracle
export DISPLAY=localhost:10.0
xclock
then if the clock appears it works. so you can try to execute your script.
it would be also helpful if you would provide the content of you script.
regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-20-2008 12:28 PM
тАО08-20-2008 12:28 PM
Re: Unable to run xclock from oracle
Xlib: connection to "localhost:10.0" refused by server
Xlib: PuTTY X11 proxy: MIT-MAGIC-COOKIE-1 data did not match
Error: Can't open display: localhost:10.0
I trying to run oracle runInstaller from my Putty.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-20-2008 12:51 PM
тАО08-20-2008 12:51 PM
Re: Unable to run xclock from oracle
but usually you have to connect with exceed or cygwin etc..
exceed:
http://connectivity.hummingbird.com/products/nc/exceed
cygwin:
http://www.cygwin.com/
regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-20-2008 01:15 PM
тАО08-20-2008 01:15 PM
Re: Unable to run xclock from oracle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-20-2008 08:32 PM
тАО08-20-2008 08:32 PM
Re: Unable to run xclock from oracle
What about Xmanager
this is very good product...you can download and work without exporting display at all.
Try while issue resolved....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-20-2008 08:36 PM
тАО08-20-2008 08:36 PM
Re: Unable to run xclock from oracle
Why are you using 10.0 here....have you tried with other display...
like 3.0 or 4.0 etc..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-20-2008 08:41 PM
тАО08-20-2008 08:41 PM
Re: Unable to run xclock from oracle
Try this now!!
Login using root and go to ssh_config under opt/ssh/etc/ssh_config
check if you see
ForwardX11Trusted yes
If you find it "no" then set it to "yes"
Also
ForwardX11 yes
Regds....Deepak
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-20-2008 08:52 PM
тАО08-20-2008 08:52 PM
Re: Unable to run xclock from oracle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-21-2008 01:16 AM
тАО08-21-2008 01:16 AM
Re: Unable to run xclock from oracle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-21-2008 05:06 AM
тАО08-21-2008 05:06 AM
Re: Unable to run xclock from oracle
Cheers!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-21-2008 05:57 AM
тАО08-21-2008 05:57 AM
Re: Unable to run xclock from oracle
Xlib: PuTTY X11 proxy: MIT-MAGIC-COOKIE-1 data did not match
Error: Can't open display: localhost:10.0"
that's the error noted in previous posts along with the fix for it. it indicates that oracle *wasn't*" properly authorized to use the display. As xclock worked before the su, the display variable is fine. Properly fixing the xauth file would / should resolve the problem.