探索資料庫引擎的鏡像資料庫

Microsoft.SQLServer.2016.Mirroring.DatabaseDiscovery (Discovery)

此物件探索會探索為指定的 SQL Server 2016 資料庫引擎執行個體,所執行的所有鏡像資料庫。預設會探索及監視所有鏡像資料庫。可以使用排除清單來覆寫探索,以排除一或多個不要探索的資料庫。此清單為逗號分隔的資料庫名稱清單,也可以使用 * 字元排除所有的資料庫。

Knowledge Base article:

摘要

此物件探索會探索為指定的 SQL Server 2016 資料庫引擎執行個體,所執行的所有鏡像資料庫。預設會探索及監視所有鏡像資料庫。可以使用排除清單來覆寫探索,以排除一或多個不要探索的資料庫。此清單為逗號分隔的資料庫名稱清單,也可以使用 * 字元排除所有的資料庫。

組態

排除清單: 要從探索中排除的資料庫名稱清單 (以逗號分隔)。您可以使用萬用字元 * 來排除所有資料庫。

可覆寫的參數

名稱

描述

預設值

已啟用

啟用或停用該工作流程。

排除清單

應從探索中排除的資料庫名稱清單 (以逗號分隔)。可以使用萬用字元 * 排除所有資料庫。

 

間隔 (秒)

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

14400

同步處理時間

使用 24 小時制指定的同步處理時間。可以予以省略。

 

逾時 (秒)

指定工作流程在關閉並標記為失敗前所能執行的時間。

300

Element properties:

TargetMicrosoft.SQLServer.2016.DBEngine
EnabledTrue
Frequency14400
RemotableFalse

Object Discovery Details:

Discovered Classes and their attribuets:
Discovered relationships and their attribuets:

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource Microsoft.SQLServer.2016.Mirroring.DatabaseDiscoveryProvider Default

Source Code:

<Discovery ID="Microsoft.SQLServer.2016.Mirroring.DatabaseDiscovery" Enabled="true" Target="SQL2016Core!Microsoft.SQLServer.2016.DBEngine">
<Category>Discovery</Category>
<DiscoveryTypes>
<DiscoveryClass TypeID="Microsoft.SQLServer.2016.Mirroring.Database">
<Property TypeID="Microsoft.SQLServer.2016.Mirroring.Database" PropertyID="MirroringGUID"/>
<Property TypeID="Microsoft.SQLServer.2016.Mirroring.Database" PropertyID="MirroringRole"/>
<Property TypeID="Microsoft.SQLServer.2016.Mirroring.Database" PropertyID="Level"/>
<Property TypeID="Microsoft.SQLServer.2016.Mirroring.Database" PropertyID="Partner"/>
<Property TypeID="Microsoft.SQLServer.2016.Mirroring.Database" PropertyID="Witness"/>
</DiscoveryClass>
<DiscoveryClass TypeID="Microsoft.SQLServer.2016.Mirroring.Group">
<Property TypeID="Microsoft.SQLServer.2016.Mirroring.Group" PropertyID="MirroringGUID"/>
</DiscoveryClass>
<DiscoveryRelationship TypeID="Microsoft.SQLServer.2016.Mirroring.GroupContainsDatabase"/>
</DiscoveryTypes>
<DataSource ID="DS" TypeID="Microsoft.SQLServer.2016.Mirroring.DatabaseDiscoveryProvider">
<IntervalSeconds>14400</IntervalSeconds>
<SyncTime/>
<ComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</ComputerName>
<SQLConnectionString>$Target/Property[Type="SQL2016Core!Microsoft.SQLServer.2016.DBEngine"]/ConnectionString$</SQLConnectionString>
<SQLInstanceName>$Target/Property[Type="SQL2016Core!Microsoft.SQLServer.2016.ServerRole"]/InstanceName$</SQLInstanceName>
<ExcludeList/>
<TimeoutSeconds>300</TimeoutSeconds>
</DataSource>
</Discovery>