Unable to load DLL "oramts. dll": the specified module cannot be found.

Source: Internet
Author: User

Unable to load DLL "oramts. dll": the specified module cannot be found. (The exception is from HRESULT: 0x8007007E ). This error,
Solution:
The Oramts. dll file publicly registers the public APIs of Oracle connections involved in transactions started through Microsoft Distributed Transaction Processing Coordinator (MSDTC. When running in the transaction processing environment, the System. Data. OracleClient Assembly calls these Apis.
Earlier versions of System. Data. OracleClient Assembly do not support distributed transactions. Therefore, this dependency does not exist before System. Data. OracleClient assembly version 1.1.
When you execute distributed transaction activities, the System. Data. OracleClient Assembly uses the Oramts. dll file. When you attempt to execute a nontransacted activity, or when you use a local transaction, the System. Data. OracleClient assembly is not loaded. If the Oracle client connection software does not include this component during installation, you try to use distributed transactions and System. data. oracleClient, you may receive the following error message: System. data. oracleClient: Unable to load DLL (oramts. dll) is installed in Oramts. dll file. It is not distributed to any Microsoft software. The Oramts. dll file is not installed by default when you install the Oracle client connection software. To install this component, you must click to select the check box when Oracle Services for Microsoft Transaction Server installs the Oracle client connection software. For information about these components, visit the following Oracle Web site:
Http://www.oracle.com/technology/tech/windows/ora_mts/index.html (http://www.oracle.com/technology/tech/windows/ora_mts/index.html)
First download odac92070.exe to the oracleofficial website because this is a database connection package to support distributed transactions. It is stated on the official website of Oracle and Microsoft that Oracle does not support separate oramts. DLL distribution method, that is, this package cannot be downloaded separately. You can only download this installation,
After the installation is complete, run the code again, and the transaction will still fail. The errors are the same. view the path in the environment variable and find oramts in the oracle92home directory. the DLL already exists. Later I can't remember it on a website (in English. the DLL is compiled in the debug mode, so it cannot be used normally to view dependencies through dependencywalker, and msvcrtd is missing. DLL, which is installed on vs6.0 and VC ++. This is a VC compiler file, and then download a msvcrtd. copy the DLL to c: \ windows \ system32 and try the Distributed Transaction again. I hope this article will help some friends who are just using vs2005 + Oracle database. of course, if you use Oracle10g or oracle11g, you only need to download the corresponding Oracle Data Access Components (odac) data access component to solve the Oracle database client access component:
Http://www.oracle.com/technology/software/tech/windows/odpnet/index.html

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.