linux 7环境安装oracle11 r2遇到的DISPLAY设置问题,怎么解决?

环境配置好了,到了执行oracle安装程序的步骤,在oracle用户下执行:./runInstaller ,然后报错,信息如下:
[oracle@localhost database]$ ./runInstaller
Starting Oracle Universal Installer...

Checking Temp space: must be greater than 120 MB. Actual 11920 MB Passed
Checking swap space: must be greater than 150 MB. Actual 2047 MB Passed
Checking monitor: must be configured to display at least 256 colors
>>> Could not execute auto check for display colors using command /usr/bin/xdpyinfo. Check if the DISPLAY variable is set. Failed <<<<

Some requirement checks failed. You must fulfill these requirements before

continuing with the installation,

Continue? (y/n) [n] n

我查过这是设置图形界面显示的配置;DISPLAY在隐形文件.bash_profile 文件下,对应的配置是export DISPLAY=localhost:0.0,这是我修改后的配置,原先是:0.0,我还将localhost改成当前LinuxIP地址过,但是在安装oracle程序的时候还是报错,由于当前系统是Linux 7 ,不支持xhost 命令;所以.........请问还有什么方法 处理这个报错信息吗???

#xhost +  //切换到root用户输入

#su – Oracle  //切换到oracle用户

$./runInstaller  //执行安装程序

xhost 是用来控制X server访问权限的。

通常当你从hostA登陆到hostB上运行hostB上的应用程序时,

做为应用程序来说,hostA是client,但是作为图形来说,

是在hostA上显示的,需要使用hostA的Xserver,所以hostA是

server.因此在登陆到hostB前,需要在hostA上运行xhost +

来使其它用户能够访问hostA的Xserver.

xhost + 是使所有用户都能访问Xserver.

xhost + ip使ip上的用户能够访问Xserver.

xhost + nis:user@domain使domain上的nis用户user能够访问

xhost + inet:user@domain使domain上的inet用户能够访问。

    安装的过程出现OUI-25031的错误界面
    主要是IP地址和主机名不对应,因为oracle不是直接获取IP地址的,而是通过解析主机名来获取IP的
    修改2个地方:
    #vi /etc/sysconfig/network
    hostname=newhostname
    #vi /etc/hosts
    IP  主机名

    安装过程中遇到乱码:
    这是因为oracle不支持中文造成的。你可以先使用命令
    export将环境临时换成英文,然后再安装。这个环境变量的修改只是临时的,重启后或者使用oracle用户登录时会自己换回来的

    安装过程中出现INS-32031,INS-32033错误:
    [INS-32031]Invalid inventorylocation
    [INS-32033]Central Inventorylocation is not vritable
    解决办法:修改/home/oracle_11的权限
    chown -R oracle:oinstall/home/oracle_11就行

    创建oracle用户,提示useradd: warning: the home directory already exist
    在Linux中安装oracle11g  R2时:
    #groupadd oinstall
    #groupadd dba
    mkdir -p /home/oracle  //oracle安装到此目录下

温馨提示:答案为网友推荐,仅供参考
相似回答