1.以ROOT身份SSH登录远程主机,修改/etc/ssh/sshd_config文件,设置允许TCP转发和X11转发
AllowTcpForwarding yes X11Forwarding yes
2.重启远程主机上的ssh服务
# /etc/init.d/sshd restart Stopping sshd: [ OK ] Starting sshd: [ OK ]
3.本地SSH客户端配置,修改/etc/ssh/ssh_config文件,确保以下三项为yes
ForwardAgent yes ForwardX11 yes ForwardX11Trusted yes
4.以oracle身份SSH登录远程主机
# ssh -Y oracle@192.168.0.31 oracle@192.168.0.31's password: Last login: Wed Nov 4 10:52:52 2015 from station90.example.com
5.运行OUI安装程序
$ ./runInstaller Starting Oracle Universal Installer... Checking Temp space: must be greater than 80 MB. Actual 4715 MB Passed Checking swap space: must be greater than 150 MB. Actual 4094 MB Passed Checking monitor: must be configured to display at least 256 colors. Actual 16777216 Passed Preparing to launch Oracle Universal Installer from /tmp/OraInstall2015-11-04_11-06-00AM. Please wait …
另外:如果按Oracler的官方文档的设置,在远程主机的oracle用户.bash_profile中有设置了export DISPLAY=local_host:0.0,运行安装程序会提示
>>> Could not execute auto check for display colors using command /usr/bin/xdpyinfo. Check if the DISPLAY variable is set. Failed <<<<
需要修改.bash_profile中注释掉export DISPLAY那行,重新登录即可。