SQL 작업을 완료하지 못했습니다.

Microsoft.SQLServer.2012.A_SQL_job_failed_to_complete_successfully_1_5_Rule (Rule)

Knowledge Base article:

요약

SQL Server 에이전트 작업이 실패했습니다. SQL Server 에이전트는 특정 시간이나 간격으로 발생하도록 예약된 SQL Server 태스크를 실행할 뿐 아니라 관리자가 호출기나 전자 메일을 통한 경고와 같은 동작을 정의한 특정 상태 또는 이러한 상태를 해결할 태스크를 검색합니다. SQL Server 에이전트는 관리자가 정의한 복제 태스크 실행에도 사용됩니다.

구성

이 규칙은 완료하지 못한 작업에 대한 이벤트 로그 알림이 있는 작업의 오류만 검색합니다. 이벤트 로그 알림이 있는 작업을 구성하기 위해 다음을 수행할 수 있습니다.

해결 방법

이 오류를 해결하려면 이 경고와 관련된 이벤트를 보고 실패한 특정 작업 및 작업 단계를 파악하십시오. 또한 작업의 기록 값에서 작업을 마지막으로 수행한 날짜를 확인하십시오. 작업 기록 값을 보기 위해 다음을 수행할 수 있습니다.

SQLServerAgent 서비스가 실행되는 계정이 Domain Users 그룹의 멤버인지도 확인합니다. 로컬 시스템 계정에는 네트워크 액세스 권한이 없으므로 네트워크의 리소스가 필요한 작업을 수행하거나 전자 메일 또는 호출기를 통해 운영자에게 알리려는 경우 SQL Server 에이전트 서비스가 실행되는 계정을 Domain Users 그룹의 멤버로 설정해야 합니다.

재정의 가능한 매개 변수

이름

설명

기본값

사용

워크플로를 사용하거나 사용하지 않도록 설정합니다.

아니요

우선 순위

알림 우선 순위를 정의합니다.

1

심각도

알림 심각도를 정의합니다.

2

Element properties:

TargetMicrosoft.SQLServer.2012.Agent
CategoryEventCollection
EnabledFalse
Alert GenerateTrue
Alert SeverityError
Alert PriorityNormal
RemotableTrue
Alert Message
SQL 작업을 완료하지 못했습니다.
{0}
Event LogApplication
CommentMom2012ID='{8CCE3391-B79E-4182-922E-BB540ED8396E}';MOM2012GroupID={467ECC75-C5DA-42BD-955C-A73BBB51AF74}

Member Modules:

ID Module Type TypeId RunAs 
_F6DA1507_12AF_11D3_AB21_00A0C98620CE_ DataSource Microsoft.Windows.EventProvider Microsoft.SQLServer.SQLDefaultAccount
GenerateAlert WriteAction System.Health.GenerateAlert Default

Source Code:

<Rule ID="Microsoft.SQLServer.2012.A_SQL_job_failed_to_complete_successfully_1_5_Rule" Target="SQL2012Core!Microsoft.SQLServer.2012.Agent" Enabled="false" ConfirmDelivery="true" Remotable="true" Comment="Mom2012ID='{8CCE3391-B79E-4182-922E-BB540ED8396E}';MOM2012GroupID={467ECC75-C5DA-42BD-955C-A73BBB51AF74}">
<Category>EventCollection</Category>
<DataSources>
<DataSource ID="_F6DA1507_12AF_11D3_AB21_00A0C98620CE_" Comment="{F6DA1507-12AF-11D3-AB21-00A0C98620CE}" TypeID="Windows!Microsoft.Windows.EventProvider" RunAs="SQL!Microsoft.SQLServer.SQLDefaultAccount">
<ComputerName>$Target/Host/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<LogName>Application</LogName>
<Expression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery>EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value>208</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery>PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value>$Target/Property[Type="SQL!Microsoft.SQLServer.Agent"]/ServiceName$</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery>Params/Param[3]</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value>Failed</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</Expression>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="GenerateAlert" TypeID="SystemHealth!System.Health.GenerateAlert">
<Priority>1</Priority>
<Severity>2</Severity>
<AlertMessageId>$MPElement[Name="Microsoft.SQLServer.2012.A_SQL_job_failed_to_complete_successfully_1_5_Rule.AlertMessage"]$</AlertMessageId>
<AlertParameters>
<AlertParameter1>Event ID: $Data/EventDisplayNumber$. $Data/EventDescription$</AlertParameter1>
</AlertParameters>
<Suppression>
<SuppressionValue>$Data/Params/Param[1]$</SuppressionValue>
</Suppression>
</WriteAction>
</WriteActions>
</Rule>