이 모니터는 로그 전달 원본의 로그가 로그 전달 구성의 일부분으로 정의된 임계값 내에서 백업되지 않은 경우를 검색합니다.
이 모니터는 로그 전달 원본의 로그가 로그 전달 구성의 일부분으로 정의된 임계값 내에서 백업되지 않은 경우를 검색합니다. 이 조건이 발생하면 모니터가 오류(빨강) 상태로 변경됩니다. 로그가 재개를 백업하고 정의된 임계값 내에 있으면 모니터가 성공(녹색) 상태로 변경됩니다. 기본적으로 이 모니터는 오류 상태에 있을 때 경고를 생성합니다.
로그 전달이 백업 임계값을 초과하여 동기화되지 않았습니다. 백업 임계값은 로그 전달 백업 작업 간에 허용되는 시간(분)이며 이 시간이 지나면 경고가 발생합니다. 이 메시지가 반드시 로그 전달 문제를 나타내는 것은 아닙니다. 대신 이 메시지는 다음 문제 중 하나를 나타낼 수 있습니다.
백업 작업이 실행되고 있지 않습니다. 이는 주 서버 인스턴스의 SQL Server 에이전트 서비스가 실행되고 있지 않거나 작업이 해제되었거나 작업 일정이 변경되었기 때문일 수 있습니다.
백업 작업이 실패했습니다. 이는 백업 폴더 경로가 유효하지 않거나 디스크가 꽉 찼거나 BACKUP 문이 실패할 수 있는 다른 원인으로 인한 것일 수 있습니다.
이 문제를 해결하려면
SQL Server 에이전트 서비스가 주 서버 인스턴스에 대해 실행되고 있는지 그리고 주 데이터베이스에 대한 백업 작업이 설정되어 적절한 빈도로 실행되도록 예약되어 있는지 확인합니다.
주 서버의 백업 작업이 실패할 수 있습니다. 이 경우 원인을 찾을 수 있도록 백업 작업에 대한 작업 기록을 확인합니다.
주 서버 인스턴스에서 실행되는 로그 전달 백업 작업의 경우 log_shipping_monitor_primary 테이블을 업데이트하기 위한 모니터 서버 인스턴스에 대한 연결이 불가능할 수 있습니다. 이는 모니터 서버 인스턴스와 주 서버 인스턴스 간의 인증 문제로 인해 발생할 수 있습니다.
백업 경고 임계값에 잘못된 값이 있을 수 있습니다. 이 값은 백업 작업 빈도의 세 배 이상으로 설정되는 것이 좋습니다. 로그 전달을 구성하여 작동한 후에 백업 작업의 빈도를 변경하는 경우 백업 경고 임계값을 이에 맞게 업데이트해야 합니다.
모니터 서버 인스턴스가 오프라인 상태가 된 후 다시 온라인 상태로 돌아오는 경우 경고 메시지 작업이 실행되기 전에는 log_shipping_monitor_primary 테이블이 현재 값으로 업데이트되지 않습니다. 주 데이터베이스에 대한 최신 데이터를 사용하여 모니터 테이블을 업데이트하려면 주 서버 인스턴스에서 sp_refresh_log_shipping_monitor를 실행합니다.
주 서버 인스턴스나 모니터 서버 인스턴스의 날짜 또는 시간이 올바르지 않습니다. 이로 인해 경고 메시지가 생성될 수 있습니다. 두 서버 인스턴스 중 하나에서 시스템 날짜나 시간이 수정되었을 수 있습니다.
참고: 두 서버 인스턴스의 서로 다른 표준 시간대로 인해 문제가 발생하지 않아야 합니다.
SQL Server 2005 온라인 설명서의 로그 전달 항목:
http://msdn.microsoft.com/ko-kr/library/ms190016(SQL.90).aspx
Target | Microsoft.SQLServer.2005.Database | ||
Parent Monitor | System.Health.PerformanceState | ||
Category | PerformanceHealth | ||
Enabled | True | ||
Alert Generate | True | ||
Alert Severity | Error | ||
Alert Priority | Normal | ||
Alert Auto Resolve | True | ||
Monitor Type | Microsoft.Windows.2SingleEventLog2StateMonitorType | ||
Remotable | True | ||
Accessibility | Public | ||
Alert Message |
| ||
RunAs | Default |
<UnitMonitor ID="Microsoft.SQLServer.2005.Database.LogShippingSourceMonitor" Accessibility="Public" Enabled="true" Target="SQL2005Core!Microsoft.SQLServer.2005.Database" ParentMonitorID="SystemHealth!System.Health.PerformanceState" Remotable="true" Priority="Normal" TypeID="Windows!Microsoft.Windows.2SingleEventLog2StateMonitorType" ConfirmDelivery="true">
<Category>PerformanceHealth</Category>
<AlertSettings AlertMessage="Microsoft.SQLServer.2005.Database.LogShippingSourceMonitor.AlertMessage">
<AlertOnState>Error</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>Error</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Data/Context/EventDescription$</AlertParameter1>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="SourceNotBackedUp" MonitorTypeStateID="FirstEventRaised" HealthState="Error"/>
<OperationalState ID="SourceBackUpComplete" MonitorTypeStateID="SecondEventRaised" HealthState="Success"/>
</OperationalStates>
<Configuration>
<FirstComputerName>$Target/Host/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</FirstComputerName>
<FirstLogName>Application</FirstLogName>
<FirstExpression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="UnsignedInteger">14420</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">$Target/Host/Property[Type="SQL!Microsoft.SQLServer.DBEngine"]/ServiceName$</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<RegExExpression>
<ValueExpression>
<XPathQuery>EventDescription</XPathQuery>
</ValueExpression>
<Operator>ContainsSubstring</Operator>
<Pattern>.$Target/Property[Type="SQL!Microsoft.SQLServer.Database"]/DatabaseName$ </Pattern>
</RegExExpression>
</Expression>
</And>
</FirstExpression>
<SecondComputerName>$Target/Host/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</SecondComputerName>
<SecondLogName>Application</SecondLogName>
<SecondExpression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="UnsignedInteger">18265</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">$Target/Host/Property[Type="SQL!Microsoft.SQLServer.DBEngine"]/ServiceName$</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<RegExExpression>
<ValueExpression>
<XPathQuery>EventDescription</XPathQuery>
</ValueExpression>
<Operator>ContainsSubstring</Operator>
<Pattern>: $Target/Property[Type="SQL!Microsoft.SQLServer.Database"]/DatabaseName$,</Pattern>
</RegExExpression>
</Expression>
</And>
</SecondExpression>
</Configuration>
</UnitMonitor>