在家使用无线wifi,虚拟机搭配操作:
C:\Users\jyc>ipconfig
Windows IP 配置
以太网适配器 以太网:
媒体状态 . . . . . . . . . . . . : 媒体已断开连接
连接特定的 DNS 后缀 . . . . . . . :
以太网适配器 以太网 2:
媒体状态 . . . . . . . . . . . . : 媒体已断开连接
连接特定的 DNS 后缀 . . . . . . . :
无线局域网适配器 本地连接* 1:
媒体状态 . . . . . . . . . . . . : 媒体已断开连接
连接特定的 DNS 后缀 . . . . . . . :
无线局域网适配器 本地连接* 10:
媒体状态 . . . . . . . . . . . . : 媒体已断开连接
连接特定的 DNS 后缀 . . . . . . . :
以太网适配器 VMware Network Adapter VMnet1:
连接特定的 DNS 后缀 . . . . . . . :
本地链接 IPv6 地址. . . . . . . . : fe80::8da2:1cb5:4790:bb8a%20
IPv4 地址 . . . . . . . . . . . . : 192.168.161.1
子网掩码 . . . . . . . . . . . . : 255.255.255.0
默认网关. . . . . . . . . . . . . :
以太网适配器 VMware Network Adapter VMnet8:
连接特定的 DNS 后缀 . . . . . . . :
本地链接 IPv6 地址. . . . . . . . : fe80::fdd8:8df7:2fc8:fc91%21
IPv4 地址 . . . . . . . . . . . . : 192.168.52.1
子网掩码 . . . . . . . . . . . . : 255.255.255.0
默认网关. . . . . . . . . . . . . :
无线局域网适配器 WLAN:
连接特定的 DNS 后缀 . . . . . . . :
本地链接 IPv6 地址. . . . . . . . : fe80::7849:ecc1:6b52:13d1%15
IPv4 地址 . . . . . . . . . . . . : 192.168.1.6
子网掩码 . . . . . . . . . . . . : 255.255.255.0
默认网关. . . . . . . . . . . . . : 192.168.1.1
以太网适配器 蓝牙网络连接:
媒体状态 . . . . . . . . . . . . : 媒体已断开连接
连接特定的 DNS 后缀 . . . . . . . :
C:\Users\jyc>
Connecting to 192.168.52.134:22...
Connection established.
To escape to local shell, press 'Ctrl+Alt+]'.
Warning: The host key of 192.168.52.134 (port: 22) is not registered.
The authenticity of host '192.168.52.134:22 (192.168.52.134:22)' can't be established.
RSA key fingerprint is 5d:3e:8c:bc:ac:df:89:9b:b8:0f:24:39:51:4c:a3:c3.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.52.134' (RSA) to the list of known hosts.
Username: root
Password: ********
Last login: Wed May 29 22:30:10 2019 from 192.168.52.1
/usr/bin/xauth: file /root/.Xauthority does not exist
[root@rac1 ~]# xhost +
access control disabled, clients can connect from any host
[root@rac1 ~]# su - grid
-bash-4.1$ cd /soft/grid
-bash: cd: /soft/grid: No such file or directory
-bash-4.1$ cd /soft
-bash-4.1$ ls
lost+found oracle patch
-bash-4.1$ cd oracle
-bash-4.1$ ls
grid p13390677_112040_Linux-x86-64_2of7.zip
p13390677_112040_Linux-x86-64_1of7.zip p13390677_112040_Linux-x86-64_3of7.zip
-bash-4.1$ cd grid/
-bash-4.1$ ls
install readme.html response rpm runcluvfy.sh runInstaller sshsetup stage welcome.html
-bash-4.1$ export ORACLE_SID=192.168.1.6:0.0
-bash-4.1$ ./runInstaller
Starting Oracle Universal Installer...
Checking Temp space: must be greater than 120 MB. Actual 22812 MB Passed
Checking swap space: must be greater than 150 MB. Actual 3017 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/OraInstall2019-05-29_10-41-21PM. Please wait ...-bash-4.1$ Exception in thread "main" java.lang.NoClassDefFoundError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at java.awt.Toolkit$2.run(Toolkit.java:821)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:804)
at com.jgoodies.looks.LookUtils.isLowResolution(LookUtils.java:484)
at com.jgoodies.looks.LookUtils.
at com.jgoodies.looks.plastic.PlasticLookAndFeel.
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:242)
at javax.swing.SwingUtilities.loadSystemClass(SwingUtilities.java:1779)
at javax.swing.UIManager.setLookAndFeel(UIManager.java:453)
at oracle.install.commons.util.Application.startup(Application.java:785)
at oracle.install.commons.flow.FlowApplication.startup(FlowApplication.java:165)
at oracle.install.commons.flow.FlowApplication.startup(FlowApplication.java:182)
at oracle.install.commons.base.driver.common.Installer.startup(Installer.java:348)
at oracle.install.ivw.crs.driver.CRSInstaller.startup(CRSInstaller.java:98)
at oracle.install.ivw.crs.driver.CRSInstaller.main(CRSInstaller.java:105)
^C
-bash-4.1$ exit
logout
[root@rac1 ~]# su - grid
-bash-4.1$ cd /soft/oracle/grid
-bash-4.1$ ./runInstaller
Starting Oracle Universal Installer...
Checking Temp space: must be greater than 120 MB. Actual 22570 MB Passed
Checking swap space: must be greater than 150 MB. Actual 3012 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] n
User Selected: No
Exiting Oracle Universal Installer, log for this session can be found at /tmp/OraInstall2019-05-29_10-42-24PM/installActions2019-05-29_10-42-24PM.log
-bash-4.1$
解决办法:
使用grid或oracle直接登录xshell,然后运行./runInstaller即可出现图形:
Connecting to 192.168.52.134:22...
Connection established.
To escape to local shell, press 'Ctrl+Alt+]'.
/usr/bin/xauth: file /home/grid/.Xauthority does not exist
-bash-4.1$ cd /soft/oracle/grid
-bash-4.1$ ./runInstaller
Starting Oracle Universal Installer...
Checking Temp space: must be greater than 120 MB. Actual 22570 MB Passed
Checking swap space: must be greater than 150 MB. Actual 3014 MB Passed
Checking monitor: must be configured to display at least 256 colors. Actual 16777216 Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2019-05-29_10-47-09PM. Please wait ...-bash-4.1$