简体   繁体   English

SQL Server与Oracle的连接

[英]SQL Server to Oracle Connection

I'm trying to access an Oracle Database from MS SQL Server. 我正在尝试从MS SQL Server访问Oracle数据库。 I installed a local Oracle DB and tried this and everything worked OK. 我安装了本地Oracle DB并尝试了此操作 ,一切正常。

But when I try to connect to a remote system (ie. an Oracle DB on another computer) it shows an error saying "ORA-01017 invalid username/password; logon denied". 但是,当我尝试连接到远程系统(例如,另一台计算机上的Oracle DB)时,它显示错误消息“ ORA-01017无效的用户名/密码;登录被拒绝”。

I can connect to that computer with SQL Developer (with same user/pass). 我可以使用SQL Developer(具有相同的用户/密码)连接到该计算机。

What am I missing? 我想念什么?

==================== ====================

Update 1: 更新1:

Results of execute_sp_helplinkedsrvlogin : execute_sp_helplinkedsrvlogin的结果:

Linked Server     LocalLogin     Is self Mapping     Remote Login
--------------    ----------     ---------------     -------------
192.168.0.56      sa             0                   sa

which is correct (target username is sa). 正确(目标用户名是sa)。

========================== ==========================

Update 2 : 更新2:

I can connect to that database with sqlplus with same username and password, even add and remove data. 我可以使用具有相同用户名和密码的sqlplus连接到该数据库,甚至可以添加和删除数据。

Try running this in your SSMS: 尝试在您的SSMS中运行此命令:

execute sp_helplinkedsrvlogin

This should return a result indicating if a remote login has been setup for each linked server. 这应该返回一个结果,指示是否已为每个链接服务器设置了远程登录。 If a remote login is not setup for your linked server, go to properties page for that linked server to add a remote login. 如果未为链接服务器设置远程登录名,请转到该链接服务器的属性页以添加远程登录名。

addremotelogin_linkedserver

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM