Connectivity Issue with Oracle in x64 Environment “ORA-12154: TNS:could not resolve the connect identifier specified”

Published Jan 15 2019 12:37 PM 1,913 Views
First published on MSDN on Jan 26, 2010

When you try to develop an SSIS package in x64 Environment in BIDS that connects to a Oracle Database, you will invariably run into connectivity issues if the installed Oracle Client tools version is 10.2.0.1 (x86). You will obviously need to install the 32-BIT version of Oracle Client to communicate with BIDS which is a 32-BIT application!




Subject :




ORA-12154 or ORA-6413 Running 32-bit Oracle Software on 64-bit Windows OS.







Applies to:




Oracle Net Services - Version: 8.1.7.0 to 10.2.0.1




Oracle Data Provider for .NET - Version: 8.1.7.0 to 10.2.0.1




Oracle Objects for OLE - Version: 8.1.7.0 to 10.2.0.1




Oracle Provider for OLE DB - Version: 8.1.7.0 to 10.2.0.1




Oracle ODBC Driver - Version: 8.1.7.0 to 10.2.0.1




Microsoft Windows XP (64-bit Itanium)




Microsoft Windows Server 2003 (64-bit Itanium)




Microsoft Windows XP (64-bit AMD64 and Intel EM64T)




Microsoft Windows Server 2003 (64-bit AMD64 and Intel EM64T)







Symptoms:






You are attempting to connect to the Oracle database from a Windows platform using one of the following programmatic interfaces




· ODBC




· OLEDB




· OO4O




· ODP.NET







After installing 32-bit Oracle client software on a 64-bit Windows operating system (OS) you receive one of the following errors:




ORA-12154: TNS:could not resolve the connect identifier specified




or




ORA-6413: Connection not open.







Cause:




64-bit Microsoft OS's install 32-bit applications into the following location




"C:\Program Files (x86)\..."




rather than the typical location of




"C:\Program Files\..."




This causes an existing networking bug to occur where the networking layer is unable to parse program locations that contain parenthesis in the path to the executable which is attempting to connect to Oracle.




The following bug has been filed to correct this behavior:




Bug 3807408 < https://metalink.oracle.com/metalink/plsql/showdoc?db=Bug&id=3807408 >







NOTE: You will be able to view this bug details in the Metalinks site only if you have a Metalink login ID which comes with a support agreement with Oracle







Additional Information:




The reason you receive an ORA-12154 vs. an ORA-6413 is generally due to which programmatic interface you have chosen to use to connect to Oracle.




The ORA-12154 is the typical error seen when connecting with up-to-date interfaces using the latest version of the Oracle Call Interface (OCI):




· Oracle ODBC Driver




· Oracle Provider for OLE DB




· Oracle Objects for OLE




· Oracle Data Provider for .NET (ODP.NET)




· Microsoft's .NET Managed Provider for Oracle




The ORA-6413 is typical of using older interfaces which make legacy API calls such as Oracle's OCI Version 7 API:




· Microsoft ODBC Driver for Oracle




· Microsoft OLE DB Provider for Oracle







Solution:




To resolve this problem try one of the following solutions:







The Best possible solution is to upgrade to Oracle 11G Release 1 version of Client tools (Build: 11.1.0.6.0) rather than applying the series of patches over the 10G client which may not produce desired results. The 11G version of the Client tools are tested and confirmed to include a FIX for the above error. If it is absolutely necessary to stick to the 10G version of the client (it shouldn't be), refer to the following:







For 32-BIT Oracle Client:




1. Install 10.2.0.2 upgrade - You need to select the correct Oracle Home path of previous 10.2.0.1 install.






2. After that you need to install a patch (5383042) for 10.2.0.2 client tools.







For 64-BIT Oracle Client:






1. Install 64bit 10.2.02 upgrade - Select the correct Oracle Home.






2. Install 64bit 10.2.03 upgrade - Select the correct Oracle Home.






However, It is strongly recommended to upgrade to Oracle 11G Release 1 version of Client tools (Build: 11.1.0.6.0) rather than applying the series of patches over the 10G client which may not produce desired results. The 11G version of the Client tools are tested and confirmed to include a FIX for the above error.




Moreover, if you need to patch the Oracle 10G drivers as above, it is recommended to engage Oracle support to get the correct upgrade packages and have them applied successfully.






Important: Oracle InstantClient will not work. I have seen people across trying to make this work after installing InstantClient. Only “Administrator” or a “Custom” installation with all the required modules selected would work.






NOTE : This will allow you to create and run the package successfully from BIDS, but not as a Sql Job (in an x64 version of Sql Server). The reason being x64 version of Sql Server will always invoke x64 version of the DTEXEC.exe to run a job which will cause it to fail. We can confirm that by running the job successfully from command line using the 32-BIT DTEXEC.exe. (Running it from the C:\Program Files (x86) directory). So, to workaround this problem, we can choose one of the following solutions:






Solution 1:




Run the Job under the cmdExec subsystem and modify the command line so that the 32-BIT DTEXEC.exe is invoked to execute the job.






Solution 2:




Install the 64-BIT Oracle Client tools side by side with the 32-BIT one (Make sure you either apply the patch if you install 10G version or STRONGLY recommended to use the 11G Release 1 version)






Solution 3:




Modify the following Registry key to run the job under the Integration Services subsystem but to invoke the 32-BIT DTEXEC.exe to execute the package:




HKLM ->SOFTWARE->MICROSOFT->MSDTS->SETUP->DTSPATH . Change the value of the DEFAULT key to point to the 32-BIT DTEXEC.exe. Typically, under Default installation, that path will be C:\Program Files (x86)\Microsoft SQL Server\90\DTS\




NOTE: You will need to restart the Sql Server Agent Service for the registry change to take effect.






Important: As a side note, Microsoft OLE DB provider for Oracle acts only as a wrapper over Oracle’s native data access modules. Under the hoods, it uses the ODAC (Oracle Data Access components) API calls to connect to Oracle. So make sure that while installing Oracle Client tools you choose the appropriate ODAC components to install for Microsoft Oracle OLE DB provider to work correctly. If required, you should do a custom installation of Oracle Client tools and select the appropriate Windows Interface as in the figure below:











IF the required ODAC components are not installed you would get the following error when connecting to Oracle:







Remember, this error is not specific to SSIS, if ODAC components are not installed, any client app making connection to Oracle using Microsoft OLE DB provider would encounter this error.



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


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

%3CLINGO-SUB%20id%3D%22lingo-sub-315936%22%20slang%3D%22en-US%22%3EConnectivity%20Issue%20with%20Oracle%20in%20x64%20Environment%20%E2%80%9CORA-12154%3A%20TNS%3Acould%20not%20resolve%20the%20connect%20identifier%20specified%E2%80%9D%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-315936%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%20Jan%2026%2C%202010%20%3C%2FSTRONG%3E%20%3CBR%20%2F%3E%3CP%3EWhen%20you%20try%20to%20develop%20an%20SSIS%20package%20in%20x64%20Environment%20in%20BIDS%20that%20connects%20to%20a%20Oracle%20Database%2C%20you%20will%20invariably%20run%20into%20connectivity%20issues%20if%20the%20installed%20Oracle%20Client%20tools%20version%20is%20%3CB%3E%3CI%3E10.2.0.1%20(x86).%20%3C%2FI%3E%20%3C%2FB%3E%20You%20will%20obviously%20need%20to%20install%20the%2032-BIT%20version%20of%20Oracle%20Client%20to%20communicate%20with%20BIDS%20which%20is%20a%2032-BIT%20application!%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%3E%3CB%3E%3CI%3ESubject%20%3C%2FI%3E%3C%2FB%3E%3CI%3E%3A%3C%2FI%3E%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%3EORA-12154%20or%20ORA-6413%20Running%2032-bit%20Oracle%20Software%20on%2064-bit%20Windows%20OS.%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%3E%3CI%3E%20%3C%2FI%3E%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%3E%3CB%3E%20%3CI%3E%20Applies%20to%3A%20%3C%2FI%3E%20%3C%2FB%3E%20%3CI%3E%20%3C%2FI%3E%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%3EOracle%20Net%20Services%20-%20Version%3A%208.1.7.0%20to%2010.2.0.1%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%3EOracle%20Data%20Provider%20for%20.NET%20-%20Version%3A%208.1.7.0%20to%2010.2.0.1%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%3EOracle%20Objects%20for%20OLE%20-%20Version%3A%208.1.7.0%20to%2010.2.0.1%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%3EOracle%20Provider%20for%20OLE%20DB%20-%20Version%3A%208.1.7.0%20to%2010.2.0.1%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%3EOracle%20ODBC%20Driver%20-%20Version%3A%208.1.7.0%20to%2010.2.0.1%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%3EMicrosoft%20Windows%20XP%20(64-bit%20Itanium)%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%3EMicrosoft%20Windows%20Server%202003%20(64-bit%20Itanium)%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%3EMicrosoft%20Windows%20XP%20(64-bit%20AMD64%20and%20Intel%20EM64T)%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%3EMicrosoft%20Windows%20Server%202003%20(64-bit%20AMD64%20and%20Intel%20EM64T)%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%3E%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%3E%3CB%3E%20%3CI%3E%20Symptoms%3A%20%3C%2FI%3E%20%3C%2FB%3E%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%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EYou%20are%20attempting%20to%20connect%20to%20the%20Oracle%20database%20from%20a%20Windows%20platform%20using%20one%20of%20the%20following%20programmatic%20interfaces%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%3E%3CI%3E%20%C2%B7%20ODBC%20%3C%2FI%3E%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%3E%3CI%3E%20%C2%B7%20OLEDB%20%3C%2FI%3E%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%3E%3CI%3E%20%C2%B7%20OO4O%20%3C%2FI%3E%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%3E%3CI%3E%20%C2%B7%20ODP.NET%20%3C%2FI%3E%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%3E%3CI%3E%20%3C%2FI%3E%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%3EAfter%20installing%2032-bit%20Oracle%20client%20software%20on%20a%2064-bit%20Windows%20operating%20system%20(OS)%20you%20receive%20one%20of%20the%20following%20errors%3A%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%3E%3CB%3E%20%3CI%3E%20ORA-12154%3A%20TNS%3Acould%20not%20resolve%20the%20connect%20identifier%20specified%20%3C%2FI%3E%20%3C%2FB%3E%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%3E%3CB%3E%20%3CI%3E%20or%20%3C%2FI%3E%20%3C%2FB%3E%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%3E%3CB%3E%20%3CI%3E%20ORA-6413%3A%20Connection%20not%20open.%20%3C%2FI%3E%20%3C%2FB%3E%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%3E%3CI%3E%20%3C%2FI%3E%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%3E%3CB%3E%20%3CI%3E%20Cause%3A%20%3C%2FI%3E%20%3C%2FB%3E%20%3CB%3E%20%3C%2FB%3E%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%3E64-bit%20Microsoft%20OS's%20install%2032-bit%20applications%20into%20the%20following%20location%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%3E%3CI%3E%20%22C%3A%5CProgram%20Files%20(x86)%5C...%22%20%3C%2FI%3E%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%3Erather%20than%20the%20typical%20location%20of%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%3E%3CI%3E%20%22C%3A%5CProgram%20Files%5C...%22%20%3C%2FI%3E%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%3EThis%20causes%20an%20existing%20networking%20bug%20to%20occur%20where%20the%20networking%20layer%20is%20unable%20to%20parse%20program%20locations%20that%20contain%20parenthesis%20in%20the%20path%20to%20the%20executable%20which%20is%20attempting%20to%20connect%20to%20Oracle.%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%3EThe%20following%20bug%20has%20been%20filed%20to%20correct%20this%20behavior%3A%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%3E%3CB%3EBug%203807408%20%3C%2FB%3E%3CI%3E%26lt%3B%20%3C%2FI%3E%3CA%20href%3D%22https%3A%2F%2Fmetalink.oracle.com%2Fmetalink%2Fplsql%2Fshowdoc%3Fdb%3DBug%26amp%3Bid%3D3807408%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3E%3CI%3Ehttps%3A%2F%2Fmetalink.oracle.com%2Fmetalink%2Fplsql%2Fshowdoc%3Fdb%3DBug%26amp%3Bid%3D3807408%20%3C%2FI%3E%3C%2FA%3E%3CI%3E%26gt%3B%3C%2FI%3E%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%3E%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%3E%3CI%3E%20NOTE%3A%20You%20will%20be%20able%20to%20view%20this%20bug%20details%20in%20the%20Metalinks%20site%20only%20if%20you%20have%20a%20Metalink%20login%20ID%20which%20comes%20with%20a%20support%20agreement%20with%20Oracle%20%3C%2FI%3E%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%3E%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%3E%3CB%3E%20Additional%20Information%3A%20%3C%2FB%3E%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%3EThe%20reason%20you%20receive%20an%20ORA-12154%20vs.%20an%20ORA-6413%20is%20generally%20due%20to%20which%20programmatic%20interface%20you%20have%20chosen%20to%20use%20to%20connect%20to%20Oracle.%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%3EThe%20ORA-12154%20is%20the%20typical%20error%20seen%20when%20connecting%20with%20up-to-date%20interfaces%20using%20the%20latest%20version%20of%20the%20Oracle%20Call%20Interface%20(OCI)%3A%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%3E%C2%B7%20Oracle%20ODBC%20Driver%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%3E%C2%B7%20Oracle%20Provider%20for%20OLE%20DB%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%3E%C2%B7%20Oracle%20Objects%20for%20OLE%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%3E%C2%B7%20Oracle%20Data%20Provider%20for%20.NET%20(ODP.NET)%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%3E%C2%B7%20Microsoft's%20.NET%20Managed%20Provider%20for%20Oracle%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%3EThe%20ORA-6413%20is%20typical%20of%20using%20older%20interfaces%20which%20make%20legacy%20API%20calls%20such%20as%20Oracle's%20OCI%20Version%207%20API%3A%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%3E%C2%B7%20Microsoft%20ODBC%20Driver%20for%20Oracle%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%3E%C2%B7%20Microsoft%20OLE%20DB%20Provider%20for%20Oracle%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%3E%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%3E%3CB%3E%20Solution%3A%20%3C%2FB%3E%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%3ETo%20resolve%20this%20problem%20try%20one%20of%20the%20following%20solutions%3A%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%3E%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%3E%3CB%3E%20The%20Best%20possible%20solution%20is%20to%20upgrade%20to%20Oracle%2011G%20Release%201%20version%20of%20Client%20tools%20(Build%3A%2011.1.0.6.0)%20rather%20than%20applying%20the%20series%20of%20patches%20over%20the%2010G%20client%20which%20may%20not%20produce%20desired%20results.%20The%2011G%20version%20of%20the%20Client%20tools%20are%20tested%20and%20confirmed%20to%20include%20a%20FIX%20for%20the%20above%20error.%20If%20it%20is%20absolutely%20necessary%20to%20stick%20to%20the%2010G%20version%20of%20the%20client%20(it%20shouldn't%20be)%2C%20refer%20to%20the%20following%3A%20%3C%2FB%3E%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%3E%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%3E%3CB%3E%20For%2032-BIT%20Oracle%20Client%3A%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3C%2FB%3E%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%3E1.%20Install%2010.2.0.2%20upgrade%20-%20You%20need%20to%20select%20the%20correct%20Oracle%20Home%20path%20of%20previous%2010.2.0.1%20install.%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%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E2.%20After%20that%20you%20need%20to%20install%20a%20patch%20(5383042)%20for%2010.2.0.2%20client%20tools.%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%3E%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%3E%3CB%3E%20For%2064-BIT%20Oracle%20Client%3A%20%3C%2FB%3E%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%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E1.%20Install%2064bit%2010.2.02%20upgrade%20-%20Select%20the%20correct%20Oracle%20Home.%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%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E2.%20Install%2064bit%2010.2.03%20upgrade%20-%20Select%20the%20correct%20Oracle%20Home.%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%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CB%3E%20However%2C%20It%20is%20strongly%20recommended%20to%20upgrade%20to%20Oracle%2011G%20Release%201%20version%20of%20Client%20tools%20(Build%3A%2011.1.0.6.0)%20rather%20than%20applying%20the%20series%20of%20patches%20over%20the%2010G%20client%20which%20may%20not%20produce%20desired%20results.%20The%2011G%20version%20of%20the%20Client%20tools%20are%20tested%20and%20confirmed%20to%20include%20a%20FIX%20for%20the%20above%20error.%20%3C%2FB%3E%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%3E%3CB%3E%20Moreover%2C%20if%20you%20need%20to%20patch%20the%20Oracle%2010G%20drivers%20as%20above%2C%20it%20is%20recommended%20to%20engage%20Oracle%20support%20to%20get%20the%20correct%20upgrade%20packages%20and%20have%20them%20applied%20successfully.%20%3C%2FB%3E%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%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CB%3EImportant%3A%20%3C%2FB%3EOracle%20InstantClient%20will%20not%20work.%20I%20have%20seen%20people%20across%20trying%20to%20make%20this%20work%20after%20installing%20InstantClient.%20Only%20%E2%80%9CAdministrator%E2%80%9D%20or%20a%20%E2%80%9CCustom%E2%80%9D%20installation%20with%20all%20the%20required%20modules%20selected%20would%20work.%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%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CB%3ENOTE%20%3C%2FB%3E%3A%20This%20will%20allow%20you%20to%20create%20and%20run%20the%20package%20successfully%20from%20BIDS%2C%20but%20not%20as%20a%20Sql%20Job%20(in%20an%20x64%20version%20of%20Sql%20Server).%20The%20reason%20being%20x64%20version%20of%20Sql%20Server%20will%20always%20invoke%20x64%20version%20of%20the%20DTEXEC.exe%20to%20run%20a%20job%20which%20will%20cause%20it%20to%20fail.%20We%20can%20confirm%20that%20by%20running%20the%20job%20successfully%20from%20command%20line%20using%20the%2032-BIT%20DTEXEC.exe.%20(Running%20it%20from%20the%20C%3A%5CProgram%20Files%20(x86)%20directory).%20So%2C%20to%20workaround%20this%20problem%2C%20we%20can%20choose%20one%20of%20the%20following%20solutions%3A%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%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CB%3E%20Solution%201%3A%20%3C%2FB%3E%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%3ERun%20the%20Job%20under%20the%20cmdExec%20subsystem%20and%20modify%20the%20command%20line%20so%20that%20the%2032-BIT%20DTEXEC.exe%20is%20invoked%20to%20execute%20the%20job.%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%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CB%3E%20Solution%202%3A%20%3C%2FB%3E%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%3EInstall%20the%2064-BIT%20Oracle%20Client%20tools%20side%20by%20side%20with%20the%2032-BIT%20one%20(Make%20sure%20you%20either%20apply%20the%20patch%20if%20you%20install%2010G%20version%20or%20STRONGLY%20recommended%20to%20use%20the%2011G%20Release%201%20version)%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%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CB%3E%20Solution%203%3A%20%3C%2FB%3E%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%3EModify%20the%20following%20Registry%20key%20to%20run%20the%20job%20under%20the%20Integration%20Services%20subsystem%20but%20to%20invoke%20the%2032-BIT%20DTEXEC.exe%20to%20execute%20the%20package%3A%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%3E%3CI%3EHKLM%20%3C%2FI%3E%3CI%3E%3C%2FI%3E%3CI%3E-%26gt%3BSOFTWARE-%26gt%3BMICROSOFT-%26gt%3BMSDTS-%26gt%3BSETUP-%26gt%3BDTSPATH%20%3C%2FI%3E.%20Change%20the%20value%20of%20the%20%3CI%3EDEFAULT%20%3C%2FI%3Ekey%20to%20point%20to%20the%2032-BIT%20DTEXEC.exe.%20Typically%2C%20under%20Default%20installation%2C%20that%20path%20will%20be%20%3CB%3EC%3A%5CProgram%20Files%20(x86)%5CMicrosoft%20SQL%20Server%5C90%5CDTS%5C%3C%2FB%3E%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%3E%3CB%3E%20NOTE%3A%20You%20will%20need%20to%20restart%20the%20Sql%20Server%20Agent%20Service%20for%20the%20registry%20change%20to%20take%20effect.%20%3C%2FB%3E%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%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CB%3EImportant%3A%20%3C%2FB%3EAs%20a%20side%20note%2C%20Microsoft%20OLE%20DB%20provider%20for%20Oracle%20acts%20only%20as%20a%20wrapper%20over%20Oracle%E2%80%99s%20native%20data%20access%20modules.%20Under%20the%20hoods%2C%20it%20uses%20the%20ODAC%20(Oracle%20Data%20Access%20components)%20API%20calls%20to%20connect%20to%20Oracle.%20So%20make%20sure%20that%20while%20installing%20Oracle%20Client%20tools%20you%20choose%20the%20appropriate%20ODAC%20components%20to%20install%20for%20Microsoft%20Oracle%20OLE%20DB%20provider%20to%20work%20correctly.%20If%20required%2C%20you%20should%20do%20a%20custom%20installation%20of%20Oracle%20Client%20tools%20and%20select%20the%20appropriate%20Windows%20Interface%20as%20in%20the%20figure%20below%3A%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%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CB%3E%20%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F66335iE36B85C6C1142FEC%22%20%2F%3E%20%3C%2FB%3E%20%3CB%3E%20%3C%2FB%3E%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%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EIF%20the%20required%20ODAC%20components%20are%20not%20installed%20you%20would%20get%20the%20following%20error%20when%20connecting%20to%20Oracle%3A%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%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F66336i32ED612EE1617AFB%22%20%2F%3E%20%3CB%3E%20%3C%2FB%3E%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%3E%3CB%3E%20Remember%2C%20this%20error%20is%20not%20specific%20to%20SSIS%2C%20if%20ODAC%20components%20are%20not%20installed%2C%20any%20client%20app%20making%20connection%20to%20Oracle%20using%20Microsoft%20OLE%20DB%20provider%20would%20encounter%20this%20error.%20%3C%2FB%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EAuthor%20%3A%20Debarchan(MSFT)%20%2C%20SQL%20Developer%20Engineer%20%2C%20Microsoft%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EReviewed%20by%20%3A%20Smat%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-315936%22%20slang%3D%22en-US%22%3EFirst%20published%20on%20MSDN%20on%20Jan%2026%2C%202010%20When%20you%20try%20to%20develop%20an%20SSIS%20package%20in%20x64%20Environment%20in%20BIDS%20that%20connects%20to%20a%20Oracle%20Database%2C%20you%20will%20invariably%20run%20into%20connectivity%20issues%20if%20the%20installed%20Oracle%20Client%20tools%20version%20is%2010.%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-315936%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3Econnectivity%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Version history
Last update:
‎Jan 15 2019 12:37 PM
Updated by: