ITPub博客

首页 > 数据库 > Oracle > oracle和sqlserver互访(3)

oracle和sqlserver互访(3)

原创 Oracle 作者:jss001 时间:2009-02-26 19:18:09 0 删除 编辑
3.SQLSERVER訪問ORACLE
環境:windowsxp + sqlserver2000 + Oracle9i Enterprise Edition Release 9.0.1.1.1 - Production IP:192.168.1.221
代码:

// 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 個資料列)

[@more@]

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/18921899/viewspace-1017082/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
  • 博文量
    306
  • 访问量
    871791