Oracle安装报Display错误

问题:

Oracle安装时,运行./runInstaller 不能弹出安装界面,报Display类错误

 

解决方法:

 

[root@ddba02 ~]# vncserver

-bash: vncserver: command not found

 

 

[root@ddba02 ~]# rpm -qc tigervnc-server

package tigervnc-server is not installed

[root@ddba02 ~]# yum install tigervnc-server

Loaded plugins: security

Setting up Install Process

Resolving Dependencies

--> Running transaction check

---> Package tigervnc-server.i686 0:1.1.0

 

[root@ddba02 ~]#  rpm -qc tigervnc-server

/etc/sysconfig/vncservers

[root@ddba02 ~]# chkconfig --level 35 vncserver on

[root@ddba02 ~]#  vncserver

 

You will require a password to access your desktops.

 

Password:123321

Verify:

xauth:  creating new authority file /root/.Xauthority

 

New 'ddba02:1 (root)' desktop is ddba02:1

 

Creating default startup script /root/.vnc/xstartup

Starting applications specified in /root/.vnc/xstartup

Log file is /root/.vnc/ddba02:1.log

 

 

[root@ddba02 ~]# vncserver

 

New 'ddba02:2 (root)' desktop is ddba02:2

 

Starting applications specified in /root/.vnc/xstartup

Log file is /root/.vnc/ddba02:2.log

 

[root@ddba02 ~]# export DISPLAY=localhost:1

 

 

[root@ddba02 ~]#  xhost +

-bash: xhost: command not found
[root@localhost ~]# yum -y install xorg-x11-server-utils
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
Setting up Install Process
No package xorg-x11-server-utils-7.7-2.el6.x86_64 available.
Error: Nothing to do
[root@localhost ~]# yum -y install xorg-x11-server-utils
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package xorg-x11-server-utils.x86_64 0:7.7-14.el6 will be installed
--> Processing Dependency: mcpp for package: xorg-x11-server-utils-7.7-14.el6.x86_64
--> Processing Dependency: libXxf86misc.so.1()(64bit) for package: xorg-x11-server-utils-7.7-14.el6.x86_64
--> Running transaction check
---> Package libXxf86misc.x86_64 0:1.0.3-4.el6 will be installed
---> Package mcpp.x86_64 0:2.7.2-4.1.el6 will be installed
--> Processing Dependency: libmcpp.so.0()(64bit) for package: mcpp-2.7.2-4.1.el6.x86_64
--> Running transaction check
---> Package libmcpp.x86_64 0:2.7.2-4.1.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

===============================================================================================================================================================================================
Package Arch Version Repository Size
===============================================================================================================================================================================================
Installing:
xorg-x11-server-utils x86_64 7.7-14.el6 base 156 k
Installing for dependencies:
libXxf86misc x86_64 1.0.3-4.el6 base 18 k
libmcpp x86_64 2.7.2-4.1.el6 base 69 k
mcpp x86_64 2.7.2-4.1.el6 base 23 k

Transaction Summary
===============================================================================================================================================================================================
Install 4 Package(s)

Total download size: 266 k
Installed size: 573 k
Downloading Packages:
http://mirrors.aliyun.com/centos/6.10/os/x86_64/Packages/libXxf86misc-1.0.3-4.el6.x86_64.rpm: [Errno 12] Timeout on http://mirrors.aliyun.com/centos/6.10/os/x86_64/Packages/libXxf86misc-1.0.3-4.el6.x86_64.rpm: (28, 'connect() timed out!')
Trying other mirror.
(1/4): libXxf86misc-1.0.3-4.el6.x86_64.rpm | 18 kB 00:00
(2/4): libmcpp-2.7.2-4.1.el6.x86_64.rpm | 69 kB 00:00
(3/4): mcpp-2.7.2-4.1.el6.x86_64.rpm | 23 kB 00:00
(4/4): xorg-x11-server-utils-7.7-14.el6.x86_64.rpm | 156 kB 00:00
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 5.1 kB/s | 266 kB 00:51
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : libXxf86misc-1.0.3-4.el6.x86_64 1/4
Installing : libmcpp-2.7.2-4.1.el6.x86_64 2/4
Installing : mcpp-2.7.2-4.1.el6.x86_64 3/4
Installing : xorg-x11-server-utils-7.7-14.el6.x86_64 4/4
Verifying : xorg-x11-server-utils-7.7-14.el6.x86_64 1/4
Verifying : libmcpp-2.7.2-4.1.el6.x86_64 2/4
Verifying : libXxf86misc-1.0.3-4.el6.x86_64 3/4
Verifying : mcpp-2.7.2-4.1.el6.x86_64 4/4

Installed:
xorg-x11-server-utils.x86_64 0:7.7-14.el6

Dependency Installed:
libXxf86misc.x86_64 0:1.0.3-4.el6 libmcpp.x86_64 0:2.7.2-4.1.el6 mcpp.x86_64 0:2.7.2-4.1.el6

Complete!
[root@localhost ~]# xhost +
access control disabled, clients can connect from any host

然后再切换到oracle用户,执行export DISPLAY=:0.0

export DISPLAY=:1

注意:这块是0.0还是1.0查看xmanage的隧道中就可以看到

================================================

如果执行./runInstaller还是报错为

Could not execute auto check for display colors using command /usr/bin/xdpyinfo <

.....

安装xdpyinfo

yum install xdpyinfo 

安装完成以后执行./runInstaller就可以在Xshell下显示出安装页面了.
=====================================================

 

出现乱码执行export LANG=US_en

b、若打开oracle安装界面出现乱码,在安装之前输入:export LC_CTYPE=en_US.UTF-8后在安装

然后再进行安装,将系统注销,切换oracle用户登录(并不是su - oracle)

进入database文件夹中,cd /opt/oracle/database (具体看上传的路径)

进行安装,输入 ./runInstaller 弹出安装界面

转载于:https://www.cnblogs.com/zxyfly/p/9982837.html

你可能感兴趣的:(Oracle安装报Display错误)