【问题标题】:error running run file in centOS - bad display在 centOS 中运行运行文件时出错 - 显示错误
【发布时间】:2020-05-21 13:50:39
【问题描述】:

我的任务是使用 VM 在 centOS 8 上安装 Oracle 11g(我是 linux/oracle 的新手)。 我下载了 Oracle 文件并解压缩了它们,然后我尝试 ./runInstaller 但出现错误,这是有错误的完整终端:

login as: admin
admin@192.168.163.129's password:
Activate the web console with: systemctl enable --now cockpit.socket

Last login: Thu May 21 09:26:48 2020 from 192.168.163.1
[admin@oracledb ~]$ cd Downloads
[admin@oracledb Downloads]$ cd database
[admin@oracledb database]$ ls
doc      linux.x64_11gR2_database_1of2  response  runInstaller  stage
install  linux.x64_11gR2_database_2of2  rpm       sshsetup      welcome.html
[admin@oracledb database]$ ./runInstaller
Starting Oracle Universal Installer...

Checking Temp space: must be greater than 120 MB.   Actual 2027 MB    Passed
Checking swap space: must be greater than 150 MB.   Actual 1759 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] y


>>> Ignoring required pre-requisite failures. Continuing...
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2020-05-21_09-43-58AM. 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
[admin@oracledb database]$

我正在使用 putty 和 Xming,但我仍然收到此错误。

【问题讨论】:

    标签: linux oracle centos


    【解决方案1】:

    确保您的 putty 会话正在使用“x-11 端口转发”进行连接

    确保在设置后向上滚动到“会话”,然后“保存”

    【讨论】:

    • 返回并仔细检查您的腻子会话设置是否已保存。腻子对此很奇怪。此外,我注意到您正在尝试在从未经过认证的操作系统 (CentOS) 上安装旧的且不受支持的 Oracle 版本。即使您考虑到 CentOS 与 Oracle 和 Red Hat 属于同一个 LInux 家族的事实(oracle 认证),您还是在版本上走得太远了,因为 oracle 11g 仅通过 Oracle/RedHat v 7 认证。
    • 是的 X11 仍然启用并且发生错误:
    • 我讨厌听起来刺耳,但如果工作面试希望你能够完成某项任务,而你甚至不知道最基本的部分(“他们没有解释何时/如何他们创建了这个用户”)并且您依赖似是而非的 youtube 视频而不是实际文档(docs.oracle.com),那么您希望如何处理这项工作?您是否考虑过他们真正想要的可能是看看您是否有知识和信念来反对安装不受支持的软件......
    • 检查临时空间:必须大于 120 MB。实际 8157 MB 通过检查交换空间:必须大于 150 MB。实际 1490 MB 通过检查显示器:必须配置为至少显示 256 色。实际 16777216 已通过准备从 /tmp/OraInstall2020-05-23_06-14-24AM 启动 Oracle Universal Installer。请稍候...[oracle@localhost 数据库]$ 尝试初始化 HPI 库时出错。请检查您的安装,当安装在 JDK 1.2 Linux 生产版本或任何 JDK 1.1.x 版本中时,HotSpot 无法正常工作
    猜你喜欢
    • 2012-07-28
    • 2019-03-03
    • 2015-09-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-05-09
    • 2019-11-13
    相关资源
    最近更新 更多