"Unable to load DLL" oramts. dll ": the specified module cannot be found. (The exception is from hresult: 0x8007007e )." -- Solution

Source: Internet
Author: User

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 on an English website, it says oramts. 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 have just started using the vs2005 + Oracle database.
Of course, if you use Oracle10g, oracle11g related versions, as long as you download the corresponding Oracle Data Access Components (odac) Data Access Components can solve the Oracle database client access components: http://www.oracle.com/technology/software/tech/windows/odpnet/index.html
To solve the problem, follow these steps:
1. Check whether Oracle services for Microsoft Transaction Server is installed
2. go to the bin directory (Oracle/product/10.1.0/db_1/bin) and check for oramts. DLL. If not, it indicates that the above service has not been installed. You can re-install the client.
3. If it is 10 Gb, check whether there is oramts10.dll. If yes, copy it and change it to oramts. dll.
4. If the client prompts a connection string error after installation! Go to the Oracle/product/10.1.0/client_1/Network/Admin directory and find the configuration file tnsnames. ora. If yes, open it and check how the connection string is written. If not, manually add the file. The sample code is as follows: orcl = (description = (address_list = (address = (Protocol = TCP) (host = hostname) (Port = 1521) (CONNECT_DATA = (SERVICE_NAME = orcl10 )))
5. You can reconfigure the connection using the client tool net configuration assistant.

 

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.