このモニターは、ログ配布構成の一部として定義されているしきい値内で、ログ配布先がログを復元していない状況を検出します。
すべてのログ配布が、SQL Server Express の任意のエディションでサポートされているわけではないことに注意してください。
このモニターは、ログ配布構成の一部として定義されているしきい値内で、ログ配布先がログを復元していない状況を検出します。この条件が発生すると、モニターが重大な状態に変わります。ログの復元が再開され、定義されたしきい値内で復元が行われると、モニターは正常状態に戻ります。既定では、このモニターは、エラー状態になった場合にアラートを生成します。
ログ配布が、復元のしきい値を超えて、同期されていません。復元のしきい値は、復元操作が完了するまでの許容時間 (分数) です。この時間が経過すると警告メッセージが生成されます。
この問題をトラブルシューティングするには、次の手順を実行します。
セカンダリ サーバー インスタンスで SQL Server エージェント サービスが実行されていることを確認します。また、セカンダリ データベースの復元ジョブが有効になっており、適切な頻度で実行するようにスケジュール設定されていることを確認します。
セカンダリ サーバーの復元ジョブが失敗している可能性があります。この場合は、復元ジョブのジョブ履歴を参照して原因を探してください。
セカンダリ サーバー インスタンスでログ配布の復元ジョブを実行する際、監視サーバー インスタンスに接続して log_shipping_monitor_secondary テーブルを更新できない可能性があります。その場合、監視サーバー インスタンスとセカンダリ サーバー インスタンス間での認証に問題があると思われます。
バックアップの警告のしきい値に、正しくない値が設定されている可能性があります。この値は、復元ジョブの少なくとも 3 倍の頻度に設定するのが理想的です。ログ配布を構成して有効にした後で、復元ジョブの頻度を変更した場合は、それに合わせて復元の警告しきい値も更新する必要があります。
監視サーバー インスタンスがオフラインになり、その後オンラインに戻ったとき、警告メッセージ ジョブが実行される前に、log_shipping_monitor_secondary テーブルが現在の値に更新されません。復元ジョブに成功し、"セカンダリ データベースに適用できるログ バックアップ ファイルが見つかりませんでした。" というメッセージが表示された場合に、エラー 14421 が発生することがあります。このエラーが発生すると、復元時間は更新されません。この場合のエラーの原因は、コピー ジョブに問題があります。
監視テーブルを更新して、セカンダリ データベースの最新データを反映させるには、セカンダリ サーバー インスタンスで sp_refresh_log_shipping_monitor を実行します。
セカンダリ サーバー インスタンスまたは監視サーバー インスタンスで、日付または時刻が正しく設定されていません。これが原因で、警告メッセージが生成される場合もあります。これらいずれかのサーバーで、システムの日付または時刻が変更された可能性があります。
メモ: 2 つのサーバー インスタンスで異なるタイム ゾーンを使用していることは、問題の原因にはなりません。
SQL Server 2014 オンライン ブックのログ配布に関するトピック
http://go.microsoft.com/fwlink/?LinkId=799279
名前 | 説明 | 既定値 |
アラートの優先度 | アラートの優先順位を定義します。 | 中 |
アラートの重要度 | アラートの重大度を定義します。 | エラー |
有効 | ワークフローを有効または無効にします。 | はい |
アラートを生成する | ワークフローがアラートを生成するかどうかを定義します。 | はい |
Target | Microsoft.SQLServer.2014.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.2014.Database.LogShippingDestinationMonitor" Accessibility="Public" Enabled="true" Target="SQL2014Core!Microsoft.SQLServer.2014.Database" ParentMonitorID="SystemHealth!System.Health.PerformanceState" Remotable="true" Priority="Normal" TypeID="Windows!Microsoft.Windows.2SingleEventLog2StateMonitorType" ConfirmDelivery="true">
<Category>PerformanceHealth</Category>
<AlertSettings AlertMessage="Microsoft.SQLServer.2014.Database.LogShippingDestinationMonitor.AlertMessage">
<AlertOnState>Error</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>Error</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Data/Context/EventDescription$</AlertParameter1>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="DestOutOfSync" MonitorTypeStateID="FirstEventRaised" HealthState="Error"/>
<OperationalState ID="DestInSync" 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">14421</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">$Target/Host/Property[Type="SQL2014Core!Microsoft.SQLServer.2014.DBEngine"]/ServiceName$</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<RegExExpression>
<ValueExpression>
<XPathQuery>EventDescription</XPathQuery>
</ValueExpression>
<Operator>ContainsSubstring</Operator>
<Pattern>.$Target/Property[Type="SQL2014Core!Microsoft.SQLServer.2014.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">18268</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">$Target/Host/Property[Type="SQL2014Core!Microsoft.SQLServer.2014.DBEngine"]/ServiceName$</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<RegExExpression>
<ValueExpression>
<XPathQuery>EventDescription</XPathQuery>
</ValueExpression>
<Operator>ContainsSubstring</Operator>
<Pattern>: $Target/Property[Type="SQL2014Core!Microsoft.SQLServer.2014.Database"]/DatabaseName$,</Pattern>
</RegExExpression>
</Expression>
</And>
</SecondExpression>
</Configuration>
</UnitMonitor>