sql中和oracle中应该差不多啊,都支持标准sql的啊
这个也许有用:
http://vonxing.javaeye.com/blog/509469
http://www.connectionstrings.com/oracle
用db_links哦
drop database link ss
create database link woody_DB_LINK
connect to woodydb(数据库实例名称)
identified by woody123(密码)
using 'woody.woodycad.com'(连接字符)
然后在oracle安装目录下:D:\oracle\network\ADMIN
tnsnames.ora文件里面根据链接情况加上链接
woody.woodyCAD.COM =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.100.24)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = woody.com)
)
)
查询的时候可以:
select * From test_table@woody_DB_LINK