SQL Server 代理运行时 Analysis Services 处理任务失败

发布于 2025-01-03 00:58:43 字数 253 浏览 7 评论 0原文

我有一个 SSIS 包,其中包含 Analysis Services 处理任务。 该包由 SQL Server 2008 R2 中的 SQL Server 作业启动。

如果我自己运行此作业或手动处理多维数据集,一切都很好。

但是,如果我计划该作业并让 SQL Server 代理运行它,则 Analysis Services 处理任务将失败,并指出 OLAP 存储引擎中出现错误,并且在处理度量值组之一时发生错误。

还有其他人见过这样的事情吗?

I have an SSIS package which contains an Analysis Services Processing Task.
This package is kicked off by a SQL Server Job in SQL Server 2008 R2.

If I run this job myself or process the cube manually everything is fine.

However if I schedule the job and let the SQL server agent run it then the Analysis Services Processing task fails stating Errors in the OLAP storage engine and that an error occurred while processing the one of the measure groups.

Has anyone else every seen anything like this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

情话已封尘 2025-01-10 00:58:43

SQL Server 代理服务帐户可能没有足够的权限。您可以通过执行以下任一操作来验证此问题:

  1. 将服务帐户添加到分析服务服务器上的管理员组以验证此问题。让作业按计划运行。
  2. 创建一个在您的凭据下运行的代理,并将作业设置为在下面执行代理。让作业按计划运行。
  3. 更改 SQL Server 代理以使用您的凭据。让作业按计划运行。

如果在进行上述任何更改后作业成功完成,则您有需要解决的权限问题。

The SQL Server Agent service account may not have sufficient permissions. You can validate this by doing any of the following:

  1. Add the service account to the Administrators group on the analysis services server to validate this issue. Let the job run as scheduled.
  2. Create a proxy that runs under your credentials and set the job to execute under the proxy. Let the job run as scheduled.
  3. Change the SQL Server Agent to use your credentials. Let the job run as scheduled.

If the job completes successfully after making any of the above changes, then you have a permission issue that you need to resolve.

今天小雨转甜 2025-01-10 00:58:43

经过几个月的研究,我终于找到了答案;当然这是一个简单的。

我创建的 SSIS 作业仅处理多维数据集,而每次我在 Management Studio 中手动处理时,我都在处理整个 SSAS 数据库。

我现在已经更改了 SSIS 包来处理整个数据库,并且一切似乎都工作正常。

So after months of looking at this I finally realised the answer; of course it's a simple one.

The SSIS job I had created was processing the Cube only, while every time I processed manually in management studio I was processing the whole SSAS database.

I've now changed the SSIS package to process the whole database and everything seems to be working correctly.

心凉怎暖 2025-01-10 00:58:43

当此错误生成时:
报告服务目录数据库文件存在失败 sql server 2008 r2

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

出现此问题的原因是 SQL 数据库您要安装的 Server 2008 Reporting Services 实例已存在于具有以下路径的计算机上。

C:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\DATA

从上述路径中手动删除报表的 .MDF 和 .LDF 文件,然后重新运行安装程序。

when This Error Generate :
reporting services catalog database file existence failed sql server 2008 r2

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

This issue occurs because the databases for the SQL Server 2008 Reporting Services instance that you want to install already exist on the computer with following path.

C:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\DATA

Manually Remove .MDF and .LDF files of Report from above path and Re-run Setup.

舂唻埖巳落 2025-01-10 00:58:43

就我而言,我以其他方式找到了解决方案。首先,我使用 SQL Management Studio 登录 Analysus 服务。其次,我在数据库文件夹中搜索了我的项目名称,打开该文件夹后,在 Roles 文件夹中双击,在新角色中单击,在此窗口中我选择了 Membership在左侧窗格中,单击“添加”按钮并搜索 NT AUTHORITY\Service,单击“确定”按钮,最后重新启动 Sql 分析服务。我尝试运行我的工作并且它有效。
输入图片此处描述

In my case I found the solution in other way. First of all I login into analysus services using SQL management studio.Second of all I searched into databases folder the name of my project, after I open that and double clic in Roles folder, clic in new role, in this window I selected Membership in the left pane, clic in add button and search the NT AUTHORITY\Service, clic in Ok button and finally restart Sql analysis services. I tried to run my job and It works.
enter image description here

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文