2

我从Using the Attunity Oracle Connector with Biml 中读到了一种通过使用 CustomSsisConnection 元素为 Attune Oracle 连接器定义元素的方法。它与我必须使用的项目连接中的实际连接定义不同。当前的 Attunity 连接器定义由 DTS:ConnectionManager 元素定义,出于安全原因,我将其中的值更改为 @@@@@@:

    <DTS:ConnectionManager xmlns:DTS="www.microsoft.com/SqlServer/Dts"
      DTS:ObjectName="Oracle_TVIA"
      DTS:DTSID="{608D9C98-CC33-4EC7-BF35-DDDB7BDBDBC7}"
      DTS:CreationName="MSORA">
      <DTS:PropertyExpression
        DTS:Name="ConnectionString">@[$Project::Oracle_Connector]
    </DTS:PropertyExpression>
      <DTS:ObjectData>
        <OracleXMLPackage>
          <OraConnectionString>SERVER=@@@@@@;USERNAME=
    @@@@@@;ORACLEHOME=;ORACLEHOME64=;WINAUTH=0</OraConnectionString>
          <OraRetain>False</OraRetain>
          <OraInitialCatalog></OraInitialCatalog>
         <OraServerName>@@@@@@</OraServerName      
    <OraUserName>@@@@@@</OraUserName>
          <OraOracleHome></OraOracleHome>
          <OraOracleHome64></OraOracleHome64>
          <OraWinAuthentication>False</OraWinAuthentication>
         <OraEnableDetailedTracing>False</OraEnableDetailedTracing>
         <OraPassword
           Sensitive="1"
           p4:Salt="@@@@@@"
           p4:IV="@@@@@@" 
   xmlns:p4="www.microsoft.com/SqlServer/SSIS">@@@@@@@@@@@@</OraPassword>
       </OracleXMLPackage>
     </DTS:ObjectData>
   </DTS:ConnectionManager>

帖子中提到的Attunity的连接是:

<CustomSsisConnection Name="Oracle Connector 1" CreationName="MSORA" ObjectData="&lt;OracleXMLPackage&gt;&#xD;&#xA;  &lt;OraConnectionString&gt;SERVER=XXXX;USERNAME=username;ORACLEHOME=;ORACLEHOME64=;WINAUTH=0&lt;/OraConnectionString&gt;&#xD;&#xA;  &lt;OraRetain&gt;False&lt;/OraRetain&gt;&#xD;&#xA;  &lt;OraInitialCatalog&gt;&lt;/OraInitialCatalog&gt;&#xD;&#xA;  &lt;OraServerName&gt;ec2-107-20-117-195.compute-1.amazonaws.com&lt;/OraServerName&gt;&#xD;&#xA;  &lt;OraUserName&gt;username&lt;/OraUserName&gt;&#xD;&#xA;  &lt;OraOracleHome&gt;&lt;/OraOracleHome&gt;&#xD;&#xA;  &lt;OraOracleHome64&gt;&lt;/OraOracleHome64&gt;&#xD;&#xA;  &lt;OraWinAuthentication&gt;False&lt;/OraWinAuthentication&gt;&#xD;&#xA;  &lt;OraEnableDetailedTracing&gt;False&lt;/OraEnableDetailedTracing&gt;&#xD;&#xA;  &lt;OraPassword Sensitive=&quot;1&quot; Encrypted=&quot;1&quot;&gt;AQAAANCMnd8BFdERjHoAwE/Cl+sBAAAAm1Wd3JvvU0+cUJlVQyqnaAAAAAAIAAAARABUAFMAAAADZgAAwAAAABAAAAA6xkf97NyWpMZVJk8BfUfOAAAAAASAAACgAAAAEAAAABcdn9bN864uL88pKlNCAlwYAAAAcbtMszBiQhegvc8dBJXJRRNt9xmQRe2pFAAAANMQTe7MVbECC97BJJ8QQO0KMUfc&lt;/OraPassword&gt;&#xD;&#xA;&lt;/OracleXMLPackage&gt;" />

当我尝试在 Biml 架构中添加此代码时,我收到一条编译错误消息,告诉 DTS:ConnectionManager 不是 Biml 的有效子代。请您告知我如何将 DTS:ConnectionManager 的定义转换为 CustomSsisConnection 的。

谢谢

XSLT 生成的代码是:

<?xml version="1.0" encoding="utf-8"?>
<Biml xmlns="http://schemas.varigence.com/biml.xsd">
    <Connections>
        <Connection Name="Oracle_TVIA" ConnectionString="SERVER=@@@@@@;USERNAME=@@@@@@;ORACLEHOME=;ORACLEHOME64=;WINAUTH=0" />
        <Connection Name="Target_SQLBIPRO" ConnectionString="Data Source=SQLBIDES;Initial Catalog=TVIA;Provider=SQLNCLI11.1;Integrated Security=SSPI;" />
    </Connections>
    <Packages>
        <Package ConstraintMode="Linear" Name="staging_AMS_CD_PAYMENT_CATEGORY">
            <Tasks>
                <ExecuteSQL Name="Truncate_AMS_CD_PAYMENT_CATEGORY" ConnectionName="Target_SQLBIPRO">
                    <DirectInput>"exec dbo.delete_AMS_CD_PAYMENT_CATEGORY ?,?"</DirectInput>
                </ExecuteSQL>
                <Dataflow Name="Load_AMS_CD_PAYMENT_CATEGORY">
                    <PrecedenceConstraints>
                        <Inputs>
                            <Input OutputPathName="Truncate_AMS_CD_PAYMENT_CATEGORY.Output" />
                        </Inputs>
                    </PrecedenceConstraints>
                    <Transformations>
                        <OleDbSource Name="Source_AMS_CD_PAYMENT_CATEGORY" ConnectionName="Oracle_TVIA">
                            <ExternalTableInput Table="AMS_CD_PAYMENT_CATEGORY" />
                        </OleDbSource>
                        <OleDbDestination Name="Target_AMS_CD_PAYMENT_CATEGORY" ConnectionName="Target_SQLBIPRO">
                            <InputPath OutputPathName="Source_AMS_CD_PAYMENT_CATEGORY.Output" />
                            <ExternalTableOutput Table="Staging_BOS_VR_OWNER_AMS_CD_PAYMENT_CATEGORY" />
                        </OleDbDestination>
                    </Transformations>
                </Dataflow>
            </Tasks>
        </Package>
        </Package>
    </Packages>
</Biml>
4

0 回答 0