首页 > 数据库 > Oracle > oracle和sqlserver互访(3)
[@more@]代码:
// A. 添加ODBC,OdbcName=DB,OracleSid=DB
// B. 執行sp_addlinkedserver 'LIORA', 'Oracle', 'MSDAORA', 'DB'GO
EXEC sp_addlinkedsrvlogin @rmtsrvname='LIORA',@useself='false',@locallogin='sa',@rmtuser='SYSTEM',@rmtpassword='MANAGER'
select top 10 topic,info from LIORA..SYSTEM.HELP
topic info -------------------------------------------------- --------------------------------------------------------------------------------
@ NULL@ @ ("at" sign)
@ -------------
@ NULL@ Runs the SQL*Plus statements in the specified command file. The command@ file can be called from the local file system or from a web server.
@ NULL@ @ {uri|file_name[.ext]} [arg...]
@ NULL@ where uri supports HTTP, FTP and gopher protocols in the form:
(影響 10 個資料列)
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/18921899/viewspace-1017082/ ,如需转载,请注明出处,否则将追究法律责任。