• linux oracle 10g tar.gz :xhost: unable to open display


    关于这个问题,最总要的一点是要理解xhost的作用,是干什么的,在下面的介绍中可以基本了解到,只要这个问题解决了,oracle就可以顺利安装了(这是建立在我还没碰到其它问题的基础上)。

    1、 以root用户登录

    输入命令xdpyinfo,记录下里面的name of display:后的字符串,如 name of display:127.0.0.1:1.0

    在执行xhost +命令(使得所有客户都可以访问)

    返回信息为: 
    access control disabled,clients can connect from any host

    如果xhost +不能执行,可以输入命令export DISPLAY=:0执行一下

    再执行xhost +

          xhost + ip (name表示那个ip机器可以使用该服务)

    2、以oracle用户登录

    如果前面root登录下执行xdpyinfo后的name of display:后的字符串是127.0.0.1:1.0

    那么在该oracle用户下执行一下export DISPLAY=:1.0

    然后再执行xdpyinfo命令,如果能出现信息说明你已经成功了

    这样估计就可以解决linux下安装oracle出现的xhost问题

     3. 安装oracle执行检查,出现

    Checking Network Configuration requirements ...
    Check complete. The overall result of this check is: Failed <<<<
    Problem: The install has detected that the primary IP address of the system is DHCP-
    assigned.
    Recommendation: Oracle supports installations on systems with
    DHCP-assigned public IP addresses. However, the primary network
    interface on the system should be configured with a static IP address in
    order for the Oracle Software to function properly. See the
    Installation Guide for more details on installing the software on
    systems configured with DHCP
    错误提示信息。
    处理方式:
    1.查看/etc/hosts,检查是否添加
      ipaddress servername
      例如:192.168.100.2 db01
    2.查看/etc/sysconfig/network,检查hostname
      hostname=servername
      例如:hostname=db01
    3.查看/etc/sysconfig/network-scripts/ifcfg-eth0,检查是否添加
      BOOTPROTO=static

    参考来源: http://www.blogjava.net/freeman1984/archive/2012/05/22/378848.html

  • 相关阅读:
    linux三剑客
    linux用户权限
    linux文件权限
    linux目录配置
    linux命令(持续更新)
    linux外置命令
    linux日常操作指令
    晨雾

    CAPTCHA--验证码
  • 原文地址:https://www.cnblogs.com/foreverstars/p/3680922.html
Copyright © 2020-2023  润新知