主机OS是WINXP,已上INTERNET,IPCONFIG后内容如下:
[
Ethernet adapter VMware Network Adapter VMnet8:
Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 192.168.0.1
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . :
Ethernet adapter VMware Network Adapter VMnet1:
Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 192.168.43.1
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . :
Ethernet adapter ワイヤレス ネットワーク接続:
Media State . . . . . . . . . . . : Media disconnected
Ethernet adapter ローカル エリア接続:
Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 192.168.1.3
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.1.1
]
VM上的LINUX使用IFCONFIG,是以下内容:(默认网关是172.168.1.1)
[
eth0 Link encap:Ethernet HWaddr 00:0C:29:B4:B4:2B
inet addr:192.168.1.4 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
...
请教为什么本机Windows环境下java连接Linux环境下Oracle数据库出错?(注:一下代码连接本机Oracle数据库正常,驱动包为ojdbc14.jar)
以下为java连接Oracle数据库代码,在连接本机Oracle数据库正常
Connection co ......