1、简介
linux 7操作系统图形化安装Oracle软件,需要设置DISPLAY环境变量,之前的版本几乎是不需要设置的,如果不设置DISPLAY环境变量,在启动图形界面的时候,很可能会遇到下面的错误。
[root@19cs ~]# xhost +
access control disabled, clients can connect from any host
[root@19cs ~]# su – oracle
[oracle@19cs ~]$ cd $ORACLE_HOME
[oracle@19cs dbhome_1]$ ./runInstaller
ERROR: Unable to verify the graphical display setup. This application requires X display. Make sure that xdpyinfo exist under PATH variable.
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
2、设置环境变量
这时就需要设置DISPLAY环境变量了,但是现在并不清楚DISPLAY的端口,需要用xdpyinfo命令查看DISPLAY的当前端口是什么,默认是0。
[root@19cs ~]# xdpyinfo | head
name of display: :0
version number: 11.0
vendor string: The X.Org Foundation
vendor release number: 11905000
X.Org version: 1.19.5
maximum request size: 16777212 bytes
motion buffer size: 256
bitmap unit, bit order, padding: 32, LSBFirst, 32
image byte order: LSBFirst
number of supported pixmap formats: 7
xdpyinfo的命令输出过多,这里只需要关注第一行也就是name of display后面的值,然后设置DISPLAY环境变量的值为name of display后面的值即可。
[oracle@19cs dbhome_1]$ export DISPLAY=:0
或者像下面这样设置也可以。
[oracle@19cs dbhome_1]$ export DISPLAY=localhost:0.0
3、重新打开图形化界面
这时发现就解决这个问题,并且打开图形界面了。
[oracle@19cs dbhome_1]$ ./runInstaller
欢迎大家扫码关注:
本公众号只写原创,不接广告、不接广告、不接广告。下期小伙伴想学习什么技术,可以私信发我吆。
文章转载自IT运维大爆炸,如果涉嫌侵权,请发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。
评论
相关阅读
【纯干货】Oracle 19C RU 19.27 发布,如何快速升级和安装?
Lucifer三思而后行
671次阅读
2025-04-18 14:18:38
Oracle RAC 一键安装翻车?手把手教你如何排错!
Lucifer三思而后行
630次阅读
2025-04-15 17:24:06
Oracle数据库一键巡检并生成HTML结果,免费脚本速来下载!
陈举超
539次阅读
2025-04-20 10:07:02
【活动】分享你的压箱底干货文档,三篇解锁进阶奖励!
墨天轮编辑部
487次阅读
2025-04-17 17:02:24
【ORACLE】记录一些ORACLE的merge into语句的BUG
DarkAthena
482次阅读
2025-04-22 00:20:37
一页概览:Oracle GoldenGate
甲骨文云技术
464次阅读
2025-04-30 12:17:56
【ORACLE】你以为的真的是你以为的么?--ORA-38104: Columns referenced in the ON Clause cannot be updated
DarkAthena
455次阅读
2025-04-22 00:13:51
火焰图--分析复杂SQL执行计划的利器
听见风的声音
412次阅读
2025-04-17 09:30:30
3月“墨力原创作者计划”获奖名单公布
墨天轮编辑部
371次阅读
2025-04-15 14:48:05
OR+DBLINK的关联SQL优化思路
布衣
349次阅读
2025-05-05 19:28:36