Home Backend Development PHP Tutorial Solution to solve the problem that OLEDB distributed transaction cannot be started in Windows 2003 Sql2000_PHP tutorial

Solution to solve the problem that OLEDB distributed transaction cannot be started in Windows 2003 Sql2000_PHP tutorial

Jul 13, 2016 pm 05:00 PM
windows affairs distributed start up exist develop of solve solution

When developing distributed database software, I often encounter the following error:
Server: Msg 7391, Level 16, State 1, Line 6
The operation could not be performed because the OLE DB provider 'SQLOLEDB' could not be started. Divide
distributed transactions.
[OLE/DB provider returned message: Unable to
obtain a new transaction in the specified transaction processor. ]
----------------------------------------
Server: Msg 8520, Level 20, State 1, Line 8
Commit of internal MSDTC transaction failed: Result Code = 0x8004d019.
Connection interrupted
----------------------------------------
After searching for solutions to similar problems on the Internet, the following method is recommended (Method 1):
1. Run regedt32 and browse to HKEY_LOCAL_MACHINE oftwareMicrosoftMSDTC.
Add a DWORD value TurnOffRpcSecurity with value data 1.
2. Restart the MS DTC service.
3. Open "Component Services" of "Management Tools".
a. Browse to "Startup Manager".
b. Select "Component Services".
c. Expand the "Component Services" tree, and then expand "My Computer".
d. Right-click "My Computer" and select "Properties".
In the MSDTC tab, make sure the following options are selected:
Network DTC Access Network Management Network Transaction XA Transaction
In addition, the "DTC Login Account" must be set to "NT Authority Network Service". 4. Restart the MS DTC service.
5. Run regedt32 again, browse to HKEY_LOCAL_MACHINE oftwareMicrosoftMSDTC, and then delete the TurnOffRpcSecurity item.
But in fact, this method basically cannot solve the problem. After a long period of repeated practice, I finally solved it according to the following method:
(Method 2)
1. Follow the method of Method 1. If it doesn’t work, continue with the following method
2. Install windows 2003 sp1. After installation, the setting dialog box in step 4 of method 1 is different from the original one. Select "Do not require authentication" in "Transaction Management Communication" ”
3. It is best to install MDAC2.8
3. Through search, find the file named “hosts” (without extension) in C:, usually the path is C:WINDOWSsystem32driversetc, and change the IP address of the other party’s server. Corresponding to the computer, the reference is as follows:
========================================== =
# Copyright (c) 1993-1999 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
# www.knowsky.com
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/631241.htmlTechArticleWhen developing distributed database software, we often encounter the following error: Server: Message 7391, Level 16, Status 1, line 6 The operation failed because OLE DB provider 'SQLOL...
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
WWE 2K25: How To Unlock Everything In MyRise
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

What should I do if Beyond Compare fails to case sensitivity when synchronizing Windows and Linux files? What should I do if Beyond Compare fails to case sensitivity when synchronizing Windows and Linux files? Apr 01, 2025 am 08:06 AM

The problem of comparing and synchronizing BeyondCompare files: Case sensitivity failure when using Beyond...

Four ways to implement multithreading in C language Four ways to implement multithreading in C language Apr 03, 2025 pm 03:00 PM

Multithreading in the language can greatly improve program efficiency. There are four main ways to implement multithreading in C language: Create independent processes: Create multiple independently running processes, each process has its own memory space. Pseudo-multithreading: Create multiple execution streams in a process that share the same memory space and execute alternately. Multi-threaded library: Use multi-threaded libraries such as pthreads to create and manage threads, providing rich thread operation functions. Coroutine: A lightweight multi-threaded implementation that divides tasks into small subtasks and executes them in turn.

How to avoid third-party interfaces returning 403 errors in Node environment? How to avoid third-party interfaces returning 403 errors in Node environment? Apr 01, 2025 pm 02:03 PM

How to avoid the third-party interface returning 403 error in the Node environment. When calling the third-party website interface using Node.js, you sometimes encounter the problem of returning 403 error. �...

Where to download Python .whl files under Windows? Where to download Python .whl files under Windows? Apr 01, 2025 pm 08:18 PM

Python binary library (.whl) download method explores the difficulties many Python developers encounter when installing certain libraries on Windows systems. A common solution...

Why can't my code get the data returned by the API? How to solve this problem? Why can't my code get the data returned by the API? How to solve this problem? Apr 01, 2025 pm 08:09 PM

Why can't my code get the data returned by the API? In programming, we often encounter the problem of returning null values ​​when API calls, which is not only confusing...

How to efficiently read Windows system logs and get only information from the last few days? How to efficiently read Windows system logs and get only information from the last few days? Apr 01, 2025 pm 11:21 PM

Efficient reading of Windows system logs: Reversely traverse Evtx files When using Python to process Windows system log files (.evtx), direct reading will be from the earliest...

How to speed up the loading speed of PS? How to speed up the loading speed of PS? Apr 06, 2025 pm 06:27 PM

Solving the problem of slow Photoshop startup requires a multi-pronged approach, including: upgrading hardware (memory, solid-state drive, CPU); uninstalling outdated or incompatible plug-ins; cleaning up system garbage and excessive background programs regularly; closing irrelevant programs with caution; avoiding opening a large number of files during startup.

See all articles