SQL Server 2008 R2维护计划失败但没有错误消息

时间:2017-04-18 15:30:16

标签: sql-server sql-server-2008-r2 maintenance-plan

我有一个我多年来一直管理的SQL Server 2008 R2实例。

我有一个每日备份维护计划,有4个步骤:

  1. 备份数据库(3个数据库)
  2. 备份事务日志(3个数据库)
  3. 删除超过n天的备份文件
  4. 删除超过n天的交易日志
  5. 几天前,由于磁盘已满,备份(步骤#1)失败。我通过删除一些备份并减少要保留的备份天数来解决这个问题。

    但从那时起,维护计划一直在失败。它执行步骤1& 2成功,但没有继续执行第3步和第4步。我无法找到解释原因的错误消息。

    Windows应用程序报告维护计划失败,但没有给出任何理由:

      

    SQL Server计划作业' DailyFullBackupAndCleanup.Subplan_1' (0xEC4CDE928E25FE4B964CE0758108D70D) -
      状态:失败 - 请致电:2017-04-18 02:02:00 -
      消息:工作失败。
      Schedule 21(DailyFullBackupAndCleanup.Subplan_1)调用了Job   最后一步是第1步(Subplan_1)。

    步骤1&的文本文件输出。 2都表示备份已成功完成,没有错误,备份就在那里。 SQL代理历史记录表明

    Message
    Executed as user: NETLINE\NLSQL06$. Microsoft (R) SQL Server Execute Package Utility  Version 10.50.6000.34 for 64-bit  Copyright (C) Microsoft Corporation 2010. All rights reserved.    Started:  2:02:00 AM  Progress: 2017-04-18 02:02:00.84     Source: {5AE5C47F-9694-406C-8F29-A779A2B132C8}      
    Executing query "DECLARE @Guid UNIQUEIDENTIFIER      EXECUTE msdb..sp...".: 100% complete  End Progress  Progress: 2017-04-18 02:02:01.07     Source: Back Up Database (Full)      
    Executing query "EXECUTE master.dbo.xp_create_subdir N'E:\MSSQL_Bac...".: 33% complete  End Progress  Progress: 2017-04-18 02:02:01.07     Source: Back Up Database (Full)      
    Executing query "EXECUTE master.dbo.xp_create_subdir N'E:\MSSQL_Bac...".: 66% complete  End Progress  Progress: 2017-04-18 02:02:01.07     Source: Back Up Database (Full)      
    Executing query "EXECUTE master.dbo.xp_create_subdir N'E:\MSSQL_Bac...".: 100% complete  End Progress  Progress: 2017-04-18 02:02:01.60     Source: Back Up Database (Full)      
    Executing query "BACKUP DATABASE [aspnetdb] TO  DISK = N'E:\MSSQL_B...".: 50% complete  End Progress  Progress: 2017-04-18 02:02:01.65     Source: Back Up Database (Full)      
    Executing query "declare @backupSetId as int  select @backupSetId =...".: 100% complete  End Progress  Progress: 2017-04-18 02:25:09.87     Source: Back Up Database (Full)      
    Executing query "BACKUP DATABASE [NLProduction] TO  DISK = N'E:\MSS...".: 50% complete  End Progress  Progress: 2017-04-18 02:29:33.18     Source: Back Up Database (Full)      
    Executing query "declare @backupSetId as int  select @backupSetId =...".: 100% complete  End Progress  Progress: 2017-04-18 02:29:34.85     Source: Back Up Database (Full)      
    Executing query "BACKUP DATABASE [ReportServer] TO  DISK = N'E:\MSS...".: 50% complete  End Progress  Progress: 2017-04-18 02:29:35.16     Source: Back Up Database (Full)      
    Executing query "declare @backupSetId as int  select @backupSetId =...".: 100% complete  End Progress  Progress: 2017-04-18 02:29:35.23     Source: Back Up Database (Transaction Log)      
    Executing query "EXECUTE master.dbo.xp_create_subdir N'E:\MSSQL_Bac...".: 33% complete  End Progress  Progress: 2017-04-18 02:29:35.23     Source: Back Up Database (Transaction Log)      
    Executing query "EXECUTE master.dbo.xp_create_subdir N'E:\MSSQL_Bac...".: 66% complete  End Progress  Progress: 2017-04-18 02:29:35.23     Source: Back Up Database (Transaction Log)      
    Executing query "EXECUTE master.dbo.xp_create_subdir N'E:\MSSQL_Bac...".: 100% complete  End Progress  Progress: 2017-04-18 02:29:35.35     Source: Back Up Database (Transaction Log)      
    Executing query "BACKUP LOG [aspnetdb] TO  DISK = N'E:\MSSQL_Backup...".: 50% complete  End Progress  Progress: 2017-04-18 02:29:35.54     Source: Back Up Database (Transaction Log)      
    Executing query "declare @backupSetId as int  select @backupSetId =...".: 100% complete  End Progress  Progress: 2017-04-18 02:29:38.90     Source: Back Up Database (Transaction Log)      
    Executing query "BACKUP LOG [NLProduction] TO  DISK = N'E:\MSSQL_Ba...".: 50% complete  End Progress  Progress: 2017-04-18 02:29:39.92     Source: Back Up Database (Transaction Log)      
    Executing query "declare @backupSetId as int  select @backupSetId =...".: 100% complete  End Progress  Progress: 2017-04-18 02:29:40.00     Source: Back Up Database (Transaction Log)      
    Executing query "BACKUP LOG [ReportServer] TO  DISK = N'E:\MSSQL_Ba...".: 50% complete  End Progress  Progress: 2017-04-18 02:29:40.06     Source: Back Up Database (Transaction Log)      
    Executing query "declare @backupSetId as int  select @backupSetId =...".: 100% complete  End Progress  DTExec: The package execution returned DTSER_FAILURE (1).  Started:  2:02:00 AM  Finished: 2:29:40 AM  Elapsed:  1659.84 seconds.  The package execution failed.  The step failed.
    

    任何人都可以给我任何有关如何查找错误消息的线索吗?感谢。

0 个答案:

没有答案