0

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

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

  1. 备份数据库(3 个数据库)
  2. 备份事务日志(3 个数据库)
  3. 删除超过 n 天的备份文件
  4. 删除超过 n 天的事务日志

几天前,由于磁盘已满,备份(步骤#1)失败。我通过删除一些备份并减少要保留的备份天数来解决这个问题。

但从那以后,维护计划一直失败。它成功执行了第 1 步和第 2 步,但没有继续执行第 3 步和第 4 步。而且我找不到任何解释原因的错误消息。

Windows 应用程序报告维护计划失败,但没有给出原因:

SQL Server 计划作业“DailyFullBackupAndCleanup.Subplan_1”(0xEC4CDE928E25FE4B964CE0758108D70D)-
状态:失败-调用时间:2017-04-18 02:02:00-
消息:作业失败。
作业由 Schedule 21 (DailyFullBackupAndCleanup.Subplan_1) 调用。
最后运行的步骤是步骤 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.

谁能给我有关如何找到错误消息的任何线索?谢谢。

4

0 回答 0