我正在尝试使用数据库服务器的VIP连接数据库。我可以从本地机器用这个VIP连接到DB。
在unix框中,我无法使用此VIP连接
这是我的JDBC
jdbc:oracle:thin:@scan01.usatln6.db.net:1521/CF
误差
IO Error: The Network Adapter could not establish the connection
当我用真正的DB IP来代替这个VIP时,我可以连接。
然而,这个VIP的电话网络运行良好。
$ telnet scan01.usatln6.db.net 1521
Trying 10.96.36.252...
Connected to scan01.usatln6.db.net.
Escape character is '^]'.
Connection closed by foreign host.
发布于 2014-06-20 21:49:21
我发现字符串的格式如下:
c = DriverManager.getConnection("jdbc:oracle:thin:@//hostname.com:1521/orcl.dbname.local", "user", "pass");
因此,尝试在"@“符号之后添加两个斜杠。
https://stackoverflow.com/questions/24335604
复制相似问题