ORACLE 11g安装中出现xhost: unable to open display问题解决步骤

所属分类: 数据库 / oracle 阅读数: 173
收藏 0 赞 0 分享

一、Xhosts报错

安装好vncserver,本地pc笔记本能通过vnc viewer远程连接Oracle服务器,但是在执行xhost+报错,尝试过localhost,尝试过127.0.0.1,也试过本机ip地址,都是unable toopen displa,如下所示

[root@orcltest ~]# export DISPLAY=localhost:1
[root@orcltest ~]# xhost
xhost: unable to open display "localhost:1"
[root@orcltest ~]#
 
[root@orcltest ~]# export DISPLAY=127.0.0.1:1
[root@orcltest ~]# xhost
xhost: unable to open display "127.0.0.1:1"
[root@orcltest ~]# xhost +
xhost: unable to open display "127.0.0.1:1"
[root@orcltest ~]# xhost + 192.51.3.12
xhost: unable to open display "192.51.3.12:1"

二、去查看后台的vnc日志信息,日志信息,看到vnc日志信息正常,没有啥异常信息

   [root@orcltest ~]# vim /root/.vnc/orcltest:1.log
 
 
   Xvnc TigerVNC 1.1.0 - built May 11 2016 13:01:55
   Copyright (C) 1999-2011 TigerVNC Team and many others (see README.txt)
   See http://www.tigervnc.org for information on TigerVNC.
   Underlying X server release 11704000, The X.Org Foundation
 
 
   Tue Mar 14 03:23:26 2017
   vncext:  VNC extension running!
   vncext:  Listening for VNC connections on all interface(s), port 5901
   vncext:  created VNC server for screen 0
   GNOME_KEYRING_SOCKET=/tmp/keyring-jRupIx/socket
   SSH_AUTH_SOCK=/tmp/keyring-jRupIx/socket.ssh
   GNOME_KEYRING_PID=7358
   Cleaned 21 files 7 still live
   Failed to play sound: Not available
 
   (polkit-gnome-authentication-agent-1:7380): GLib-GObject-WARNING **: cannot register existing type `_PolkitError'
 
   (polkit-gnome-authentication-agent-1:7380): GLib-CRITICAL **: g_once_init_leave: assertion `initialization_value != 0' failed
 
   ** (gnome-user-share:7381): WARNING **: gnome-user-share cannot be started as root for security reasons.
   Initializing nautilus-gdu extension
 
   ** (gnome-panel:7372): WARNING **: panel-applet-frame.c:1288: failed to load applet OAFIID:GnoteApplet:
   (null)
 
   ** (gnome-panel:7372): WARNING **: panel-applet-frame.c:1288: failed to load applet OAFIID:GNOME_FastUserSwitchApplet:
   (null)

三、试试xdyinfo

Google到了一些资料,有准备安装xdyinfo成功的,这里也试试看,先安装xdpyinfo

   [root@orcltest ~]# xdpyinfo
   -bash: xdpyinfo: command not found
   [root@orcltest ~]# yum install -y xdpyinfo
   Loaded plugins: refresh-packagekit, security
   Setting up Install Process
   Resolving Dependencies
   --> Running transaction check
   ---> Package xorg-x11-utils.x86_64 0:7.5-14.el6 will be installed
   --> Processing Dependency: libdmx.so.1()(64bit) for package: xorg-x11-utils-7.5-14.el6.x86_64
   --> Processing Dependency: libXxf86dga.so.1()(64bit) for package: xorg-x11-utils-7.5-14.el6.x86_64
   --> Running transaction check
   ---> Package libXxf86dga.x86_64 0:1.1.4-2.1.el6 will be installed
   ---> Package libdmx.x86_64 0:1.1.3-3.el6 will be installed
   --> Finished Dependency Resolution
 
   Dependencies Resolved
 
   ===============================================================================================================================================================================================================================================================================
   Package                Arch               Version                 Repository             Size
   ===============================================================================================================================================================================================================================================================================
   Installing:
   xorg-x11-utils              x86_64              7.5-14.el6                base              101 k
   Installing for dependencies:
   libXxf86dga               x86_64              1.1.4-2.1.el6               base               18 k
   libdmx                x86_64              1.1.3-3.el6                base               15 k
 
   Transaction Summary
   ===============================================================================================================================================================================================================================================================================
   Install  3 Package(s)
 
   Total download size: 133 k
   Installed size: 270 k
   Downloading Packages:
   (1/3): libXxf86dga-1.1.4-2.1.el6.x86_64.rpm                                                    | 18 kB  00:00 
   (2/3): libdmx-1.1.3-3.el6.x86_64.rpm                                                     | 15 kB  00:00 
   (3/3): xorg-x11-utils-7.5-14.el6.x86_64.rpm                                                    | 101 kB  00:00 
   -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
   Total                                                           252 kB/s | 133 kB  00:00 
   Running rpm_check_debug
   Running Transaction Test
   Transaction Test Succeeded
   Running Transaction
   Installing : libXxf86dga-1.1.4-2.1.el6.x86_64                                                       1/3
   Installing : libdmx-1.1.3-3.el6.x86_64                                                         2/3
   Installing : xorg-x11-utils-7.5-14.el6.x86_64                                                       3/3
   Verifying : libdmx-1.1.3-3.el6.x86_64                                                         1/3
   Verifying : xorg-x11-utils-7.5-14.el6.x86_64                                                       2/3
   Verifying : libXxf86dga-1.1.4-2.1.el6.x86_64                                                       3/3
 
   Installed:
   xorg-x11-utils.x86_64 0:7.5-14.el6                                                           
 
   Dependency Installed:
   libXxf86dga.x86_64 0:1.1.4-2.1.el6                          libdmx.x86_64 0:1.1.3-3.el6                          
 
   Complete!
   [root@orcltest ~]#

之后再执行xdpyinfo,可以xhsot +成功,如下所示,就可以启动./runInstaller安装oracle了。

   [root@orcltest ~]# xdpyinfo
   xdpyinfo: unable to open display "localhost:1".
   [root@orcltest ~]# xhost + 192.51.3.12
   Xhost: unable to open display "localhost:1"
   [root@orcltest ~]# export DISPLAY=:1.0 
   [root@orcltest ~]# xhost +
   access control disabled, clients can connect from any host
   [root@orcltest ~]#

以上就是这篇文章的全部内容了,希望本文的内容对大家的学习或者工作能带来一定的帮助,如果有疑问大家可以留言交流,谢谢大家对脚本之家的支持。

更多精彩内容其他人还在看

oracle(plsql)生成流水号

这篇文章主要介绍了oracle(plsql)生成流水号,需要的朋友可以参考下
收藏 0 赞 0 分享

oracle中decode函数的使用方法

这篇文章主要介绍了oracle中decode函数的使用方法,需要的朋友可以参考下
收藏 0 赞 0 分享

Oracle数据远程连接的四种设置方法和注意事项

Oracle数据库的远程连接可以通过多种方式来实现,本文我们主要介绍四种远程连接的方法和注意事项,并通过示例来说明,接下来我们就开始介绍
收藏 0 赞 0 分享

oracle表空间中空表统计方法示例介绍

这篇文章主要介绍了oracle表空间中空表统计方法,需要的朋友可以参考下
收藏 0 赞 0 分享

oracle用户权限、角色管理详解

这篇文章主要介绍了oracle用户权限、角色管理的使用和示例,需要的朋友可以参考下
收藏 0 赞 0 分享

oracle用户权限管理使用详解

这篇文章主要介绍了oracle用户权限管理使用方法,需要的朋友可以参考下
收藏 0 赞 0 分享

oracle生成动态前缀且自增号码的函数分享

这篇文章主要介绍了oracle生成动态前缀且自增号码的函数,需要的朋友可以参考下
收藏 0 赞 0 分享

45个非常有用的 Oracle 查询语句小结

这里我们介绍的是 40+ 个非常有用的 Oracle 查询语句,主要涵盖了日期操作,获取服务器信息,获取执行状态,计算数据库大小等等方面的查询。这些是所有 Oracle 开发者都必备的技能,所以快快收藏吧
收藏 0 赞 0 分享

oracle监控某表变动触发器例子(监控增,删,改)

这篇文章主要介绍了oracle监控某表变动触发器例子(监控增,删,改),用于监控某表的变动并生成日志记录到另一个表,需要的朋友可以参考下
收藏 0 赞 0 分享

oracle 数据库隔离级别学习

这篇文章主要介绍了oracle数据库的隔离级别相关的知识,数据库操作的隔离级别,有需要的朋友可以参考下
收藏 0 赞 0 分享
查看更多