Oracle安裝報Display錯誤
問題:
Oracle安裝時,執行./runInstaller 不能彈出安裝介面,報Display類錯誤
解決方法:
[[email protected] ~]# vncserver
-bash: vncserver: command not found
[[email protected] ~]# rpm -qc tigervnc-server
package tigervnc-server is not installed
[[email protected] ~]# yum install tigervnc-server
Loaded plugins: security
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package tigervnc-server.i686 0:1.1.0
[[email protected] ~]# rpm -qc tigervnc-server
/etc/sysconfig/vncservers
[[email protected] ~]# chkconfig --level 35 vncserver on
[[email protected] ~]# 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
[[email protected] ~]# vncserver
New 'ddba02:2 (root)' desktop is ddba02:2
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/ddba02:2.log
[[email protected] ~]# export DISPLAY=localhost:1
[[email protected] ~]# xhost +
-bash: xhost: command not found
[[email protected] ~]# 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
[[email protected] ~]# 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!
[[email protected] ~]# xhost +
access control disabled, clients can connect from any host
然後再切換到oracle使用者,執行export DISPLAY=:0.0
export DISPLAY=:1
出現亂碼執行export LANG=US_en
b、若開啟oracle安裝介面出現亂碼,在安裝之前輸入:export LC_CTYPE=en_US.UTF-8後在安裝
然後再進行安裝,將系統登出,切換oracle使用者登入(並不是su - oracle)
進入database資料夾中,cd /opt/oracle/database (具體看上傳的路徑)
進行安裝,輸入 ./runInstaller 彈出安裝介面