The SSIS and Oracle Story Continued…

Published Jan 15 2019 12:35 PM 95 Views
First published on MSDN on Dec 28, 2009

In one of my previous blogs I tried to summarize the roadblocks and the ways to address them when a SSIS Package talks with Oracle Database. Apart from the Oracle Network Bug (Fixed in Oracle Client Tools version 10.0.0.3 and above), I faced another roadblock while trying to use a configuration file for the Oracle Connection Manager. I built a simple SSIS Package with an OLEDB Connection Manager pointing to Oracle and I exported all the connection manager properties to a configuration file from the designer. When I tried to execute the package in BIDS, I got:

An OLE DB record is available. Source: "Microsoft OLE DB Service Components" Hresult: 0x80040E21 Description: "Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done.”


When I dig deeper into that I found that this happens when the Oracle OLE DB provider does not recognize a property stored in the configuration file, the property in question here is “Initial Catalog”. Note that this is blank for the Oracle Connection manager in the configuration file.


I re-exported my configuration file and this time I made sure that I uncheck the “Initial Catalog” property before doing this so that it does not get added to the configuration file. Once done that, my package works like a charm!


So to summarize everything, here is the scenario:


1. Developing SSIS Package in Sql 2005 / Sql 2008 Business Intelligence Development Studio.
2. Using Microsoft OLEDB Provider to Connect to Oracle.
3. Using Oracle Client tools version 10G/11G.
4. Using Package Configuration File to set Connection Properties at Runtime (All the properties selected).
When executing Package from BIDS, following error is thrown:


"Error: 0xC0202009 at Package, Connection manager "OLEDB Provider": SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80040E21.


An OLE DB record is available. Source: "Microsoft OLE DB Service Components" Hresult: 0x80040E21 Description: "Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done."


Error: 0xC020801C at Data Flow Task, Oracle OLEDB Source [1]: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER. The AcquireConnection method call to the connection manager "OLEDB Provider" failed with error code 0xC0202009. There may be error messages posted before this with more information on why the AcquireConnection method call failed.


Error: 0xC0047017 at Data Flow Task, DTS.Pipeline: component "Oracle OLEDB Source" (1) failed validation and returned error code 0xC020801C."


5. Re-exported my configuration file with the “Initial Catalog” property unchecked, and it worked.




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


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

%3CLINGO-SUB%20id%3D%22lingo-sub-315922%22%20slang%3D%22en-US%22%3EThe%20SSIS%20and%20Oracle%20Story%20Continued%E2%80%A6%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-315922%22%20slang%3D%22en-US%22%3E%0A%20%26lt%3Bmeta%20http-equiv%3D%22Content-Type%22%20content%3D%22text%2Fhtml%3B%20charset%3DUTF-8%22%20%2F%26gt%3B%3CSTRONG%3E%20First%20published%20on%20MSDN%20on%20Dec%2028%2C%202009%20%3C%2FSTRONG%3E%20%3CBR%20%2F%3E%3CP%3EIn%20one%20of%20my%20previous%20blogs%20I%20tried%20to%20summarize%20the%20roadblocks%20and%20the%20ways%20to%20address%20them%20when%20a%20SSIS%20Package%20talks%20with%20Oracle%20Database.%20Apart%20from%20the%20Oracle%20Network%20Bug%20(Fixed%20in%20Oracle%20Client%20Tools%20version%2010.0.0.3%20and%20above)%2C%20I%20faced%20another%20roadblock%20while%20trying%20to%20use%20a%20configuration%20file%20for%20the%20Oracle%20Connection%20Manager.%20I%20built%20a%20simple%20SSIS%20Package%20with%20an%20OLEDB%20Connection%20Manager%20pointing%20to%20Oracle%20and%20I%20exported%20all%20the%20connection%20manager%20properties%20to%20a%20configuration%20file%20from%20the%20designer.%20When%20I%20tried%20to%20execute%20the%20package%20in%20BIDS%2C%20I%20got%3A%20%3CB%3E%20%3CBR%20%2F%3E%20%3C%2FB%3E%20%3CBR%20%2F%3E%20%3CEM%3E%20An%20OLE%20DB%20record%20is%20available.%20Source%3A%20%22Microsoft%20OLE%20DB%20Service%20Components%22%20Hresult%3A%200x80040E21%20Description%3A%20%22Multiple-step%20OLE%20DB%20operation%20generated%20errors.%20Check%20each%20OLE%20DB%20status%20value%2C%20if%20available.%20No%20work%20was%20done.%E2%80%9D%20%3C%2FEM%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EWhen%20I%20dig%20deeper%20into%20that%20I%20found%20that%20this%20happens%20when%20the%20Oracle%20OLE%20DB%20provider%20does%20not%20recognize%20a%20property%20stored%20in%20the%20configuration%20file%2C%20the%20property%20in%20question%20here%20is%20%E2%80%9CInitial%20Catalog%E2%80%9D.%20Note%20that%20this%20is%20blank%20for%20the%20Oracle%20Connection%20manager%20in%20the%20configuration%20file.%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EI%20re-exported%20my%20configuration%20file%20and%20this%20time%20I%20made%20sure%20that%20I%20uncheck%20the%20%E2%80%9CInitial%20Catalog%E2%80%9D%20property%20before%20doing%20this%20so%20that%20it%20does%20not%20get%20added%20to%20the%20configuration%20file.%20Once%20done%20that%2C%20my%20package%20works%20like%20a%20charm!%3C%2FP%3E%3CBR%20%2F%3E%3CP%3ESo%20to%20summarize%20everything%2C%20here%20is%20the%20scenario%3A%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E1.%20Developing%20SSIS%20Package%20in%20Sql%202005%20%2F%20Sql%202008%20Business%20Intelligence%20Development%20Studio.%20%3CBR%20%2F%3E%202.%20Using%20Microsoft%20OLEDB%20Provider%20to%20Connect%20to%20Oracle.%20%3CBR%20%2F%3E%203.%20Using%20Oracle%20Client%20tools%20version%2010G%2F11G.%20%3CBR%20%2F%3E%204.%20Using%20Package%20Configuration%20File%20to%20set%20Connection%20Properties%20at%20Runtime%20(All%20the%20properties%20selected).%20%3CBR%20%2F%3E%20When%20executing%20Package%20from%20BIDS%2C%20following%20error%20is%20thrown%3A%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CEM%3E%20%22Error%3A%200xC0202009%20at%20Package%2C%20Connection%20manager%20%22OLEDB%20Provider%22%3A%20SSIS%20Error%20Code%20DTS_E_OLEDBERROR.%20An%20OLE%20DB%20error%20has%20occurred.%20Error%20code%3A%200x80040E21.%20%3C%2FEM%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CEM%3E%20An%20OLE%20DB%20record%20is%20available.%20Source%3A%20%22Microsoft%20OLE%20DB%20Service%20Components%22%20Hresult%3A%200x80040E21%20Description%3A%20%22Multiple-step%20OLE%20DB%20operation%20generated%20errors.%20Check%20each%20OLE%20DB%20status%20value%2C%20if%20available.%20No%20work%20was%20done.%22%20%3C%2FEM%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CEM%3E%20Error%3A%200xC020801C%20at%20Data%20Flow%20Task%2C%20Oracle%20OLEDB%20Source%20%5B1%5D%3A%20SSIS%20Error%20Code%20DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER.%20The%20AcquireConnection%20method%20call%20to%20the%20connection%20manager%20%22OLEDB%20Provider%22%20failed%20with%20error%20code%200xC0202009.%20There%20may%20be%20error%20messages%20posted%20before%20this%20with%20more%20information%20on%20why%20the%20AcquireConnection%20method%20call%20failed.%20%3C%2FEM%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CEM%3E%20Error%3A%200xC0047017%20at%20Data%20Flow%20Task%2C%20DTS.Pipeline%3A%20component%20%22Oracle%20OLEDB%20Source%22%20(1)%20failed%20validation%20and%20returned%20error%20code%200xC020801C.%22%20%3C%2FEM%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E5.%20Re-exported%20my%20configuration%20file%20with%20the%20%E2%80%9CInitial%20Catalog%E2%80%9D%20property%20unchecked%2C%20and%20it%20worked.%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EAuthor%20%3A%20Debarchan%20(MSFT)%20%2C%20SQL%20Developer%20Engineer%20%2C%20Microsoft%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EReviewed%20by%20%3A%20Malcom%20(MSFT)%20%2C%20SQL%20Escalation%20Services%2C%20Microsoft%3C%2FP%3E%0A%20%0A%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-315922%22%20slang%3D%22en-US%22%3EFirst%20published%20on%20MSDN%20on%20Dec%2028%2C%202009%20In%20one%20of%20my%20previous%20blogs%20I%20tried%20to%20summarize%20the%20roadblocks%20and%20the%20ways%20to%20address%20them%20when%20a%20SSIS%20Package%20talks%20with%20Oracle%20Database.%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-315922%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EIntegration%20Services(SSIS)%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Version history
Last update:
‎Jan 15 2019 12:35 PM
Updated by: