SQL Server作业失败

编程入门 行业动态 更新时间:2024-10-27 12:37:06
SQL Server作业失败 - 帐户被锁定(SQL Server Job Failed - Account locked out)

我们目前有一个SQL Server 2012作业因帐户锁定而无法执行。 在事件查看器中找到的消息如下:

SQL错误:被引用的帐户当前被锁定并可能未被登录。

SQL代理运行一个本地帐户并验证它当前没有被锁定在服务器上的System Admin中。 还确认帐户未锁定在SQL Server框中。 SQL Server作业运行一个SSIS包。 如果我自己运行SSIS包,那么作业就会执行得很好。 当它通过作业执行时,它会失败。

有没有其他人有一个SQL Server作业神秘的帐户锁定问题?

We currently have a SQL Server 2012 job that fails to execute because of an account lock out. The message found within the Event Viewer is the following:

SQL Error: The referenced account is currently locked out and may not be logged on to.

The SQL Agent runs a local account and have verified it is not currently locked out within System Admin on the server. Have also verified that account is not locked out on the SQL Server box. The SQL Server job runs a SSIS package. If I run the SSIS package by itself the job will execute just fine. It is when it is executed via the job that it fails.

Has anyone else had a mysterious account locking problem with a SQL Server Job?

最满意答案

遵循以下步骤:

右键单击SQL代理作业名称 - >查看历史记录 - >检查错误。 它给出了出错的确切细节。 通过SQL代理的SSIS作业需要代理帐户,其中包含SQL Server登录凭据。 因此Security - > Credentials并更新用户名和密码。 一旦完成,确保它反映在代理(SQL Server代理 - > Proxies - > SSIS Package Execution 。 确保在Security - > Login下添加引用的帐户

Follow below steps:

Right click sql agent job name -> view history -> check error. It gives exact details of what has gone wrong. SSIS Jobs via SQL Agent needs proxy account, which contains credentials of SQL Server login. Hence Security -> Credentials and update the username and password. Once done, make sure it is reflected in Proxy (SQL Server Agent -> Proxies -> SSIS Package Execution. Make sure the referenced account is added under Security -> Login

更多推荐

本文发布于:2023-07-22 18:19:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1222275.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:作业   SQL   Server

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!