Oracle 网络适配器不能建立连接问题
The Network Adapter could not establish the connection
我的是Oracle10,具体来说它里面的url是:jdbc:oracle:thin:@地址:1521:ORCL
地址的值是和Oracle 的安装目录下的product\10.2.0\db_1\NETWORK\ADMIN目录下的listener.ora和tnsnames.ora里的host后面对应的值一样的。
当把里面的值改动的时候连接就不管用了。能连接上的不一定是localhost,或是127.0.0.1 。
数据库安装的时候要是正联网,默认的是当时的ip。