修改 BAM 組態結構描述
組態精靈會自動建立這個組態檔案。 完成部署之後,如果您變更伺服器名稱或其他組態資訊,就必須手動修改這個檔案。
注意
若要使系統管理員在 BAM 組態檔案中所做的變更生效,系統管理員必須解除部署目前的 BAM 組態,然後部署已更新的 BAMConfiguration.xml。
如需取消部署 BAM 定義的相關資訊,請參閱 取消部署 BAM 定義。 如需部署 BAM 定義的相關資訊,請參閱 部署 BAM 定義。
下列是 BAMConfiguration.xml 檔案所使用的結構描述:
<?xml version="1.0" encoding="utf-16" ?>
<xs:schema xmlns="urn:schemas-microsoft.com:BAM" targetNamespace="urn:schemas-microsoft.com:BAM" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="BAMConfiguration">
<xs:complexType>
<xs:sequence>
<xs:element name="DeploymentUnit" maxOccurs="unbounded" type="DeploymentUnit" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:complexType name="DeploymentUnit">
<xs:sequence>
<xs:element name="Property" maxOccurs="unbounded" type="Property" />
</xs:sequence>
<xs:attribute name="Name" type="xs:string" />
</xs:complexType>
<xs:complexType name="Property">
<xs:simpleContent>
<xs:extension base='xs:string'>
<xs:attribute name='Name' type='xs:NCName' />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:schema>
下列範例是符合 BAM 組態結構描述的 XML 檔案。
<?xml version="1.0" encoding="utf-8" ?>
<BAM:BAMConfiguration xmlns:BAM='urn:schemas-microsoft.com:BAM' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>
<DeploymentUnit Name="PrimaryImportDatabase">
<Property Name="ServerName">.</Property>
<Property Name="DatabaseName">BAMPrimaryImport</Property>
<Property Name="RTAWindow">60</Property>
<Property Name="RTATimeSlice">5</Property>
</DeploymentUnit>
<DeploymentUnit Name="StarSchemaDatabase">
<Property Name="ServerName">.</Property>
<Property Name="DatabaseName">BAMStarSchema</Property>
</DeploymentUnit>
<DeploymentUnit Name="AnalysisDatabase">
<Property Name="ServerName">localhost</Property>
<Property Name="DatabaseName">BAMAnalysis</Property>
</DeploymentUnit>
<DeploymentUnit Name="ArchivingDatabase">
<Property Name="ServerName">.</Property>
<Property Name="DatabaseName">BAMArchiving</Property>
</DeploymentUnit>
<DeploymentUnit Name="CubeUpdateDTS">
<Property Name="ConnectionTimeOut">15</Property>
<Property Name="UseEncryption">1</Property>
<Property Name="OwnerPassword">myOwnerPassword</Property>
<Property Name="UserPassword">myUserPassword</Property>
</DeploymentUnit>
<DeploymentUnit Name="DataMaintenanceDTS">
<Property Name="ConnectionTimeOut">15</Property>
<Property Name="UseEncryption">1</Property>
<Property Name="OwnerPassword">myOwnerPassword</Property>
<Property Name="UserPassword">myUserPassword</Property>
</DeploymentUnit>
</BAM:BAMConfiguration>