Data Access Technologies

(Data Access, XML, SSIS, LINQ, System.Data ...)

Configuring Attunity Connector to Bulk Insert Data to Oracle using SSIS

Configuring Attunity Connector to Bulk Insert Data to Oracle using SSIS

  • Comments 1

 

Microsoft Connector for Oracle by Attunity offers high speed connectors for Oracle to bulk insert data from SSIS Packages. The connectors can be downloaded at:

Attunity Connector v1.0:
http://www.microsoft.com/downloads/details.aspx?FamilyId=D9CB21FE-32E9-4D34-A381-6F9231D84F1E&displaylang=en

Attunity Connector v1.1:

http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=6732934c-2eea-4a7f-85a8-8ba102e6b631

Below is the Whitepaper that discusses in detail about the components included with this connector that can be used in SSIS packages:

http://msdn.microsoft.com/en-us/library/ee470675.aspx

Once the connector installs successfully, we should be able to add the required Source and Destination Data Flow items by customizing the toolbox items:


clip_image002

In my SSIS Package I used the Oracle Destination component to insert data in the Oracle Database and I wanted this write up to summarize a few things we need to have under consideration:

If we generate the SSIS Package using the Import Export Wizard, we need to replace the OLE DB Destination with the Oracle Destination component that comes with the Connector: (The Connectors are specific to the component it applies to and won’t be listed in the common data connection wizards like Import/Export Wizard or New Connection Manager Wizard)

clip_image004

 

Since I had columns that have Date/Time and Integer Data types I had to add a Data Conversion task since Oracle Destination does not support those Data Types. I have to cast Date/Time types to DT_STR and Integer types to DT_NUMERIC in the Data Conversion task:

clip_image006

 

If we don’t cast the data types appropriately we will get validation errors similar to the following:

Error      1              Validation error. Data Flow Task: Data Flow Task: Datatype conversion of input column "<Column_Name>" (67) is not supported.    OracleAttunityDemo.dtsx            0              0             

From the Attunity Support Forums < http://www.attunity.com/forums/microsoft-ssis-oracle-connector/what-data-type-ms-ssis-oracle-1382.html>

“The Oracle Destination component doesn't support mapping input column of type different than the destination column type.

If you are using the Convert transformation to convert the problematic column to DT_STR, then change it to convert the column to the destination column data-type. To check what the destination column type is, edit the Destination component and, in the mapping page point on the specific column, a tool-tip will show the type information.” Below is the screenshot of the tool tip that the Oracle Destination shows to identify the proper column type:


clip_image008

 

We can confirm the Destination types and apply proper casting in the Data Conversion task.

Lastly, I had a few columns in the source Sql Server table which exceed 30 characters and since Oracle does not accept column names>30 characters we had to apply additional transformation to rename the columns to less than 30 characters. We will need to manually map the columns in the Oracle Destination as the source and destination columns do not match any more. This will also apply for any columns to which we have applied data type conversions (like Date/Time and Integer) as there also, after the Data conversion, column names get changed resulting in a manual mapping of those columns.

 

Author : Debarchan (MSFT), SQL Developer Engineer , Microsoft

Reviewed by : Jason(MSFT), SQL Escalation Services, Microsoft

Leave a Comment
  • Please add 1 and 1 and type the answer here:
  • Post
  • The DT_NUMERIC conversion for the oracle integer field is not working gives the same error "Error 1 Validation error. Data Flow Task: Data Flow Task: Datatype conversion of Oracle Destination.Inputs[Oracle Destination Input].Columns[<column name>] is not supported."

Page 1 of 1 (1 items)