Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

Oracle Provider for OLEDB SSIS Datatype conversion

$
0
0

I am experiencing data type issues when using Oracle Provider for OLEDB.  The error that I get is Error: 0xC002F210 at Execute SQL Task: Executing the query "SELECT CODE_DOC_TYPE.NAME, CODE_DOC_TYPE.VALUE, D..." failed with the following error: "ORA-00923: FROM keyword not found where expected". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.   Task failed:  The query runs fine from TOAD and connection is established. 

I am updating an SSIS package to use the Oracle database instead of extracting data from oracle, saving as an excel file, then loading the excel file to a temp table on sql server 2012 table.  I changed my datasource initially to Microsoft Provider for Oracle, experienced some issues but then was advised to use Oracle Provider for OLEDB.  As far as best practice should I load my results in a temp table then use the execute sql task to query the temp table to form the resultset?

My data fields are of type number and char on oracle.  on the Advanced editor of the Data Flow tasks they were the number fields were defaulting to DT_WSTR.  Since then using info I found in forum, I changed my number fields to CAST(MY_FIELD AS NUMERIC(5,0)) so that the number is precise and when i look at the Advanced Editor Input/Ouput properties for output columns the SSIS Datatype is DT_NUMERIC....but I have a question on what datatype to use in my variable.  Prior to updating the connection manager to oracle, I was using variable as double datatype.  The variable helps in ending a loop that's setup up later in the process flow.


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>