Linux下安装oracle数据库提示DISPLAY not set. Please set the DISPLAY and try again。

本文详细介绍了在Linux环境下遇到Oracle数据库安装提示DISPLAY未设置的错误时,如何通过调整环境变量DISPLAY来解决问题。通过切换到root用户执行特定命令,确保客户端用户能够连接到XServer,从而顺利进行Oracle数据库的安装。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

错误如下:

Ignoring required pre-requisite failures. Continuing...
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2015-01-29_03-14-51AM. Please wait ...
DISPLAY not set. Please set the DISPLAY and try again.
Depending on the Unix Shell, you can use one of the following commands as examples to set the DISPLAY environment variable:
- For csh:                      % setenv DISPLAY 192.168.1.128:0.0
- For sh, ksh and bash:         $ DISPLAY=192.168.1.128:0.0; export DISPLAY
Use the following command to see what shell is being used:
        echo $SHELL
Use the following command to view the current DISPLAY environment variable setting:
        echo $DISPLAY
- Make sure that client users are authorized to connect to the X Server.
To enable client users to access the X Server, open an xterm, dtterm or xconsole as the user that started the session and type the following command:
% xhost +
To test that the DISPLAY environment variable is set correctly, run a X11 based program that comes with the native operating system such as 'xclock':
        % <full path to xclock.. see below>
If you are not able to run xclock successfully, please refer to your PC-X Server or OS vendor for further assistance.
Typical path for xclock: /usr/X11R6/bin/xclock

 

【解决办法】:

切换到root用户,执行以下命令:

[root@localhost ~]# export DISPLAY=:0.0

[root@localhost ~]# xhost +

access control disabled, clients can connect from any host

[root@localhost ~]#

执行以上命令后,再次切换到oracle用户执行安装即可。

[oracle@localhost database]# ./runInstaller

 

转载:http://blog.youkuaiyun.com/aovenus/article/details/8680468

posted on 2015-01-29 16:42 奋斗吧~少年 阅读( ...) 评论( ...) 编辑 收藏

转载于:https://www.cnblogs.com/donghua2014/p/4260299.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值