頁面確認組態

Microsoft.SQLServer.2016.Database.Configuration.TornPageDetection (UnitMonitor)

監視資料庫的 [頁面確認] 設定。附註: 預設會停用此監視器。必要時請使用覆寫加以啟用。

Knowledge Base article:

摘要

此監視器會檢查此資料庫的 [頁面確認] 設定。由於此監視為整體標準需求的一部分,所以如果 [頁面確認] 設定不符合指定的標準,便會產生警示。

組態

頁面確認設定會探索因 I/O 路徑錯誤造成的損毀資料庫頁面。磁碟 I/O 路徑錯誤可能是資料庫損毀問題的原因,這通常是因為電源故障或頁面寫入磁碟時磁碟硬體故障所造成。

PAGE_VERIFY {CHECKSUM | TORN_PAGE_DETECTION | NONE}

原因

如果 [頁面確認] 選項不符合必要的設定,便會引發警告警示。根據預設,當此設定不是 "CHECKSUM" 時,監視器會設定為產生警示。

解決方式

請按照下列方式解決此問題::

或者,如果此監視與這個資料庫無關::

外部資源

如需有關這項設定的詳細資訊,請參閱: ALTER ENDPOINT (Transact-SQL)

可覆寫的參數

名稱

描述

預設值

警示優先程式

定義警示優先順序。

一般

警示嚴重性

定義警示嚴重性。

警告

停用 SQL Express 檢查

這只可設定為 'true' 或 'false'。如果設定為 'true',則工作流程就不會考量 SQL Server Express 版本。

已啟用

啟用或停用該工作流程。

需要的值

資料庫組態設定需要的值。若要檢視一組適用的值,請參閱此監視的知識庫之<組態>一節。

總和檢查碼

產生警示

定義工作流程是否會產生警示。

間隔 (秒)

執行工作流程的週期性時間間隔 (秒)。

43200

逾時 (秒)

指定允許工作流程在關閉且標示為失敗之前執行的時間。

300

Element properties:

TargetMicrosoft.SQLServer.2016.Database
Parent MonitorMicrosoft.SQLServer.2016.Database.RecoveryConfiguration
CategoryConfigurationHealth
EnabledFalse
Alert GenerateTrue
Alert SeverityWarning
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.SQLServer.2016.DBConfigurationStatus
RemotableTrue
AccessibilityPublic
Alert Message
MSSQL 2016: 頁面確認組態錯誤
電腦 "{2}" 上 SQL 執行個體 "{1}" 中資料庫 "{0}" 的 [頁面確認] 設定,未依照最佳作法設定。
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.SQLServer.2016.Database.Configuration.TornPageDetection" Accessibility="Public" Enabled="false" Target="SQL2016Core!Microsoft.SQLServer.2016.Database" ParentMonitorID="Microsoft.SQLServer.2016.Database.RecoveryConfiguration" Remotable="true" Priority="Normal" TypeID="Microsoft.SQLServer.2016.DBConfigurationStatus" ConfirmDelivery="false">
<Category>ConfigurationHealth</Category>
<AlertSettings AlertMessage="Microsoft.SQLServer.2016.Database.Configuration.TornPageDetection.AlertMessage">
<AlertOnState>Warning</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>Warning</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Target/Property[Type="SQL2016Core!Microsoft.SQLServer.2016.Database"]/DatabaseName$</AlertParameter1>
<AlertParameter2>$Target/Host/Property[Type="SQL2016Core!Microsoft.SQLServer.2016.ServerRole"]/InstanceName$</AlertParameter2>
<AlertParameter3>$Target/Host/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</AlertParameter3>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="ConfigurationValueOK" MonitorTypeStateID="ConfigurationValueOK" HealthState="Success"/>
<OperationalState ID="ConfigurationValueNotOK" MonitorTypeStateID="ConfigurationValueNotOK" HealthState="Warning"/>
</OperationalStates>
<Configuration>
<ConnectionString>$Target/Host/Property[Type="SQL2016Core!Microsoft.SQLServer.2016.DBEngine"]/ConnectionString$</ConnectionString>
<DatabaseName>$Target/Property[Type="SQL2016Core!Microsoft.SQLServer.2016.Database"]/DatabaseName$</DatabaseName>
<IntervalSeconds>43200</IntervalSeconds>
<SyncTime/>
<ConfigValue>PageVerify</ConfigValue>
<ExpectedValue>CHECKSUM</ExpectedValue>
<ExcludeOnExpress>false</ExcludeOnExpress>
<SQLSKU>$Target/Host/Property[Type="SQL2016Core!Microsoft.SQLServer.2016.DBEngine"]/Edition$</SQLSKU>
<TimeoutSeconds>300</TimeoutSeconds>
</Configuration>
</UnitMonitor>