監視資料庫的 [復原模式] 設定。附註: 預設會停用此監視器。必要時請使用覆寫加以啟用。
此監視檢查此資料庫的 [復原模式] 設定。由於此監視為整體標準需求的一部分,所以如果 [復原模式] 設定不符合指定的標準,便會產生警示。
BULK_LOGGED 和 SIMPLE 復原模式在某些條件下會造成資料遺失。如需完整資訊,請參閱《線上叢書》。
此設定控制資料庫復原選項。如需選取適合復原模式的詳細資訊,請參閱 選擇資料庫的復原模式。
RECOVERY {FULL | BULK_LOGGED | SIMPLE}
如果 [復原模式] 選項不符合必要的設定,便會引發警告警示。根據預設,當此設定不是 "FULL" 時,監視器會設定為產生警示。
請按照下列方式解決此問題::
將此資料庫的組態設定變更為符合預期的值。
針對此特定資料庫或所有資料庫覆寫這個單元監視的預期值。
或者,如果此監視與這個資料庫無關::
請對此特定資料庫或所有資料庫使用覆寫來停用監視。
請對此特定資料庫或所有資料庫使用複寫來停用最上層彙總組態監視。
如需此設定的詳細資訊,請參閱: ALTER DATABASE SET 選項 (Transact-SQL)
名稱 | 描述 | 預設值 |
已啟用 |
| 否 |
停用 SQL Express 檢查 | 這只能設為 'true' 或 'false'。如果設為 'true',工作流程就不會考慮 SQL Server Express 版本。 | 0 |
預期的值 | 資料庫組態設定的預期值。若要檢視這組適用值,請參閱此監視器之知識庫文章的<組態>一節。 | 完整 |
產生警示 |
| 是 |
間隔 (秒) | 執行工作流程的週期性時間間隔 (秒)。 | 43200 |
逾時 (秒) | 指定允許工作流程在關閉且標示為失敗之前執行的時間。 | 300 |
Target | Microsoft.SQLServer.2014.Database | ||
Parent Monitor | Microsoft.SQLServer.2014.Database.RecoveryConfiguration | ||
Category | ConfigurationHealth | ||
Enabled | False | ||
Alert Generate | True | ||
Alert Severity | Warning | ||
Alert Priority | Normal | ||
Alert Auto Resolve | True | ||
Monitor Type | Microsoft.SQLServer.2014.DBConfigurationStatus | ||
Remotable | True | ||
Accessibility | Public | ||
Alert Message |
| ||
RunAs | Default |
<UnitMonitor ID="Microsoft.SQLServer.2014.Database.Configuration.RecoveryModel" Accessibility="Public" Enabled="false" Target="SQL2014Core!Microsoft.SQLServer.2014.Database" ParentMonitorID="Microsoft.SQLServer.2014.Database.RecoveryConfiguration" Remotable="true" Priority="Normal" TypeID="Microsoft.SQLServer.2014.DBConfigurationStatus" ConfirmDelivery="false">
<Category>ConfigurationHealth</Category>
<AlertSettings AlertMessage="Microsoft.SQLServer.2014.Database.Configuration.RecoveryModel.AlertMessage">
<AlertOnState>Warning</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>Warning</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Target/Property[Type="SQL2014Core!Microsoft.SQLServer.2014.Database"]/DatabaseName$</AlertParameter1>
<AlertParameter2>$Target/Host/Property[Type="SQL2014Core!Microsoft.SQLServer.2014.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="SQL2014Core!Microsoft.SQLServer.2014.DBEngine"]/ConnectionString$</ConnectionString>
<DatabaseName>$Target/Property[Type="SQL2014Core!Microsoft.SQLServer.2014.Database"]/DatabaseName$</DatabaseName>
<IntervalSeconds>43200</IntervalSeconds>
<SyncTime/>
<ConfigValue>RecoveryModel</ConfigValue>
<ExpectedValue>FULL</ExpectedValue>
<ExcludeOnExpress>false</ExcludeOnExpress>
<SQLSKU>$Target/Host/Property[Type="SQL2014Core!Microsoft.SQLServer.2014.DBEngine"]/Edition$</SQLSKU>
<TimeoutSeconds>300</TimeoutSeconds>
</Configuration>
</UnitMonitor>