SSAS 数据库备份失败,错误为 3239837698
当我运行 XMLA 查询来备份 SSAS 数据库时,
<Batch xmlns="http://schemas.microsoft.com/analysisservices/2003/engine" Transaction="false" >
<Backup xmlns="http://schemas.microsoft.com/analysisservices/2003/engine">
<Object>
<DatabaseID>MyDB</DatabaseID>
</Object>
<File>D:\SSAS\OLAP\Backup\MyDB.abf</File>
<AllowOverwrite>true</AllowOverwrite>
</Backup>
</Batch>
它运行一个小时,创建备份文件,并给我一个错误:
<return xmlns="urn:schemas-microsoft-com:xml-analysis">
<results xmlns="http://schemas.microsoft.com/analysisservices/2003/xmla-multipleresults">
<root xmlns="urn:schemas-microsoft-com:xml-analysis:empty">
<Exception xmlns="urn:schemas-microsoft-com:xml-analysis:exception" />
<Messages xmlns="urn:schemas-microsoft-com:xml-analysis:exception">
<Error ErrorCode="3239837698" Description="Server: The operation has been cancelled." Source="Microsoft SQL Server 2008 Analysis Services" HelpFile="" />
</Messages>
</root>
</results>
</return>
日志显示: `Microsoft.AnalysisServices.Xmla.XmlaException:服务器:操作已取消。
在 Microsoft.AnalysisServices.Xmla.XmlaClient.CheckForSoapFault(XmlReader reader,XmlaResult xmlaResult,布尔 throwIfError) 在 Microsoft.AnalysisServices.Xmla.XmlaClient.CheckForError(XmlReader reader, XmlaResult xmlaResult, Boolean throwIfError) 在 Microsoft.AnalysisServices.Xmla.XmlaClient.SendMessage(布尔 endReceivalIfException、布尔 readSession、布尔 readNamespaceCompatibility) 在 Microsoft.AnalysisServices.Xmla.XmlaClient.SendMessageAndReturnResult(String& 结果,布尔skipResult) 在 Microsoft.AnalysisServices.Xmla.XmlaClient.Execute(字符串命令,字符串属性,字符串和结果,布尔skipResult,布尔属性XmlIsComplete) 在 Microsoft.SqlServer.Management.Smo.Olap.SoapClient.ExecuteStatement(字符串 stmt、StatementType stmtType、布尔 withResults、字符串属性、字符串参数、布尔限制ListElement、字符串 discoveryType、字符串目录) 在 Microsoft.SqlServer.Management.Smo.Olap.SoapClient.SendCommand(字符串命令、布尔 withResults、字符串属性) 在 OlapEvent(SCH_STEP* pStep、SUBSYSTEM* pSubSystem、SUBSYSTEMPARAMS* pSubSystemParams、布尔 fQueryFlag)Microsoft.AnalysisServices.Xmla.XmlaException:服务器:操作已取消。 `
我不确定备份是否良好。
When I run XMLA query to backup SSAS database
<Batch xmlns="http://schemas.microsoft.com/analysisservices/2003/engine" Transaction="false" >
<Backup xmlns="http://schemas.microsoft.com/analysisservices/2003/engine">
<Object>
<DatabaseID>MyDB</DatabaseID>
</Object>
<File>D:\SSAS\OLAP\Backup\MyDB.abf</File>
<AllowOverwrite>true</AllowOverwrite>
</Backup>
</Batch>
It runs for an hour, creates backup file, and gives me an error:
<return xmlns="urn:schemas-microsoft-com:xml-analysis">
<results xmlns="http://schemas.microsoft.com/analysisservices/2003/xmla-multipleresults">
<root xmlns="urn:schemas-microsoft-com:xml-analysis:empty">
<Exception xmlns="urn:schemas-microsoft-com:xml-analysis:exception" />
<Messages xmlns="urn:schemas-microsoft-com:xml-analysis:exception">
<Error ErrorCode="3239837698" Description="Server: The operation has been cancelled." Source="Microsoft SQL Server 2008 Analysis Services" HelpFile="" />
</Messages>
</root>
</results>
</return>
Log says:
`Microsoft.AnalysisServices.Xmla.XmlaException: Server: The operation has been cancelled.
at Microsoft.AnalysisServices.Xmla.XmlaClient.CheckForSoapFault(XmlReader reader, XmlaResult xmlaResult, Boolean throwIfError)
at Microsoft.AnalysisServices.Xmla.XmlaClient.CheckForError(XmlReader reader, XmlaResult xmlaResult, Boolean throwIfError)
at Microsoft.AnalysisServices.Xmla.XmlaClient.SendMessage(Boolean endReceivalIfException, Boolean readSession, Boolean readNamespaceCompatibility)
at Microsoft.AnalysisServices.Xmla.XmlaClient.SendMessageAndReturnResult(String& result, Boolean skipResult)
at Microsoft.AnalysisServices.Xmla.XmlaClient.Execute(String command, String properties, String& result, Boolean skipResult, Boolean propertiesXmlIsComplete)
at Microsoft.SqlServer.Management.Smo.Olap.SoapClient.ExecuteStatement(String stmt, StatementType stmtType, Boolean withResults, String properties, String parameters, Boolean restrictionListElement, String discoverType, String catalog)
at Microsoft.SqlServer.Management.Smo.Olap.SoapClient.SendCommand(String command, Boolean withResults, String properties)
at OlapEvent(SCH_STEP* pStep, SUBSYSTEM* pSubSystem, SUBSYSTEMPARAMS* pSubSystemParams, Boolean fQueryFlag)Microsoft.AnalysisServices.Xmla.XmlaException: Server: The operation has been cancelled.
`
I am not sure if backup is good.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试查看 强制提交超时。
Try looking at ForceCommitTimeout.