MSSQL on Windows 复制: 分发服务器发现

Microsoft.SQLServer.Replication.Windows.Discovery.Distributor (Discovery)

对象发现可发现 Microsoft SQL Server on Windows 实例的所有分发服务器。

Knowledge Base article:

摘要

分发服务器是一个数据库实例,充当与一个或多个发布服务器相关联的复制特定数据的存储区。每个发布服务器与分发服务器上的单个数据库(称为分发数据库)相关联。分发数据库存储复制状态数据以及与发布相关的元数据,且在某些情况下,充当从发布服务器移动到订阅服务器的数据的队列。在很多情况下,单个数据库服务器实例同时充当发布服务器和分发服务器。这称为 本地分发服务器。当发布服务器和分发服务器配置在不同的数据库服务器实例上时,分发服务器称为 远程分发服务器。

外部

复制发布模型概述

可替代参数

名称

说明

默认值

已启用

启用或禁用工作流。

间隔(秒)

运行工作流的重复间隔时间(秒)。

14400

同步时间

同步时间

 

超时(秒)

指定允许工作流在被关闭并标记为失败之前运行的时间。

300

数据库连接超时(秒)

如果在指定期间无法访问数据库,工作流将失败并注册一个事件。

15

Element properties:

TargetMicrosoft.SQLServer.Windows.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.Replication.Windows.DataSource.DistributorDiscovery Microsoft.SQLServer.Core.RunAs.Discovery

Source Code:

<Discovery ID="Microsoft.SQLServer.Replication.Windows.Discovery.Distributor" Target="SqlDiscW!Microsoft.SQLServer.Windows.DBEngine" Enabled="true">
<Category>Discovery</Category>
<DiscoveryTypes>
<DiscoveryClass TypeID="Microsoft.SQLServer.Replication.Windows.Distributor"/>
<DiscoveryRelationship TypeID="Microsoft.SQLServer.Replication.Windows.Discovery.DistributorRefersSystemDatabase"/>
</DiscoveryTypes>
<DataSource ID="DS" TypeID="Microsoft.SQLServer.Replication.Windows.DataSource.DistributorDiscovery" RunAs="SqlCoreLib!Microsoft.SQLServer.Core.RunAs.Discovery">
<MachineName>$Target/Property[Type='SqlCoreLib!Microsoft.SQLServer.Core.DBEngine']/MachineName$</MachineName>
<NetbiosComputerName>$Target/Property[Type='SqlCoreLib!Microsoft.SQLServer.Core.DBEngine']/NetbiosComputerName$</NetbiosComputerName>
<InstanceName>$Target/Property[Type='SqlCoreLib!Microsoft.SQLServer.Core.DBEngine']/InstanceName$</InstanceName>
<ConnectionString>$Target/Property[Type='SqlCoreLib!Microsoft.SQLServer.Core.DBEngine']/ConnectionString$</ConnectionString>
<MonitoringType>$Target/Property[Type="SqlDiscW!Microsoft.SQLServer.Windows.DBEngine"]/MonitoringType$</MonitoringType>
<ServiceName>$Target/Property[Type='SqlCoreLib!Microsoft.SQLServer.Core.DBEngine']/ServiceName$</ServiceName>
<AgentServiceName>$Target/Property[Type='SqlCoreLib!Microsoft.SQLServer.Core.DBEngine']/AgentName$</AgentServiceName>
<PerformanceCounterObject>$Target/Property[Type='SqlCoreLib!Microsoft.SQLServer.Core.DBEngine']/PerformanceCounterObject$</PerformanceCounterObject>
<IntervalSeconds>14400</IntervalSeconds>
<SyncTime/>
<SqlTimeoutSeconds>15</SqlTimeoutSeconds>
<ClassId>$MPElement[Name='Microsoft.SQLServer.Replication.Windows.Distributor']$</ClassId>
<InstanceClassId>$MPElement[Name='SqlDiscW!Microsoft.SQLServer.Windows.DBEngine']$</InstanceClassId>
<DistributorRefersDataBaseRelationId>$MPElement[Name='Microsoft.SQLServer.Replication.Windows.Discovery.DistributorRefersSystemDatabase']$</DistributorRefersDataBaseRelationId>
<DataBaseClassId>$MPElement[Name='SqlDiscW!Microsoft.SQLServer.Windows.Database']$</DataBaseClassId>
<DistributorInstanceGroupClassId>$MPElement[Name='MSRL!Microsoft.SQLServer.Replication.Core.DistributorInstanceGroup']$</DistributorInstanceGroupClassId>
<DistributorInstanceGroupContainsInstanceRelationId>$MPElement[Name='MSRL!Microsoft.SQLServer.Replication.Core.DistributorInstanceGroupContainsInstance']$</DistributorInstanceGroupContainsInstanceRelationId>
<TimeoutSeconds>300</TimeoutSeconds>
</DataSource>
</Discovery>