由于当前安全上下文不受信任,对远程服务器的访问被拒绝
我有一个服务代理,它调用存储过程 sp_dequeue 队列--> 激活 (状态=开, MAX_QUEUE_READERS = 1, PROCEDURE_NAME = sp_dequeue, 作为“用户名”执行 ); 在我的 sp_dequeue 中,我将记录插入到链接服务器... 因此,当我从 magmnt 工作室调用 sp_dequeue 时,它工作正常。但是当它通过服务代理自动调用时,我收到此错误消息: “对远程服务器的访问被拒绝,因为当前安全上下文不受信任。”。
在我的链接服务器属性中,我检查了“使用此安全约束进行制作”并提供了oracle用户ID和密码,我还添加了到oracle服务器的“用户名”映射。(oracle/SQL的用户名和密码都不同) 我用谷歌搜索这个错误,尝试了几乎所有的组合。 请帮助我解决这个问题。 使用Sql server 2005和oracle 10g
I have a service broker which calls a stores procedure sp_dequeue
queue -->
ACTIVATION
( STATUS = ON,
MAX_QUEUE_READERS = 1,
PROCEDURE_NAME = sp_dequeue,
EXECUTE AS 'Username'
);
In my sp_dequeue i am inserting record in to Linked server...
So when i am calling sp_dequeue from the magmnt studio it works fine. But when its called automatically via service broker i get this error msg :
"Access to the remote server is denied because the current security context is not trusted.".
In my linked server property i have checked "Be made using this security constraint" and provided oracle userid and pwd also i have added 'Username' mapping to oracle server.(Both username and pwd of oracle/SQL are different)
I googled for this error tried mostly all combination.
Pls do help me in sloving this problem.
using Sql server 2005 and oracle 10g
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
![扫码二维码加入Web技术交流群](/public/img/jiaqun_03.jpg)
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
解释位于 为什么功能……不在激活状态下工作吗?。一种解决方案是启用 TRUSTWORTHY,就像您所做的那样。另一种是使用代码签名,请参阅签署激活的过程。代码签名部署起来比较复杂,但在非常严格的安全环境中是必需的,因为 TRUSTWORTHY 标志打开了从
dbo
到sysadmin
权限升级的路径。The explanation is given at Why does feature … not work under activation?. One solution is to enable TRUSTWORTHY, as you did. Another one is to use code signing, see Signing an activated procedure. Code signing is more complicated to deploy, but is required in very strict security environments because the TRUSTWORTHY flags opens the path to privilege escalation from
dbo
tosysadmin
.