10g如果安装成功了,去网上下载一个jdbc驱动,然后用eclipse直接使用ip+端口连接oralce,看可以不
jdbc url。
jdbc:oracle:thin:@202.102.x.x:1521:ORCL
oracle tnsnames.ora 设置
MYORACLE =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = LOCALHOST)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = ORCL)
)
)
[此贴子已经被作者于2007-10-9 15:02:17编辑过]
10g如果安装成功了,去网上下载一个jdbc驱动,然后用eclipse直接使用ip+端口连接oralce,看可以不
jdbc url。
jdbc:oracle:thin:@202.102.x.x:1521:ORCL
oracle tnsnames.ora 设置
MYORACLE =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = LOCALHOST)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = ORCL)
)
)
我就是的这种方法,但有个地方不同:(SERVER = DEDICATED)是什么意思?10g里没有这项,9i里有。
jdbc:oracle:thin:@0923D2DEFD1F435:1521:ORCL
tnsnames.ora:
ORCL =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 0923D2DEFD1F435)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = orcl)
)
)