zoukankan      html  css  js  c++  java
  • Reinstall msdtc on Windows

    Reinstall MSDTC

    The system reported an unexpected error condition. You can resolve this condition by uninstalling and then reinstalling the Microsoft Distributed Transaction Coordinator service (MSDTC).

    To perform this procedure, you must have membership in Administrators, or you must have been delegated the appropriate authority.

    To uninstall and then reinstall MSDTC:

    Click Start, and then click Command Prompt.
    At the command prompt, type msdtc -uninstall, and then press ENTER.
    At the command prompt, type msdtc -install, and then press ENTER.
    Verify

    To perform this procedure, you must have membership in Administrators, or you must have been delegated the appropriate authority.

    To verify that the Microsoft Distributed Transaction Coordinator service (MSDTC) is running:

    Click Start, and then click Command Prompt.
    At the command prompt, type sc query msdtc, and then press ENTER.
    The system responds with information about the service. Confirm that these two items appear: SERVICE_NAME: msdtc and STATE : 4 RUNNING.
    --------------------------------------------------------------------------------------------------------------
    C:UsersAdministrator>sc query msdtc

    SERVICE_NAME: msdtc
    TYPE : 10 WIN32_OWN_PROCESS
    STATE : 4 RUNNING
    (STOPPABLE, NOT_PAUSABLE, ACCEPTS_SHUTDOWN)
    WIN32_EXIT_CODE : 0 (0x0)
    SERVICE_EXIT_CODE : 0 (0x0)
    CHECKPOINT : 0x0
    WAIT_HINT : 0x0

    C:UsersAdministrator>net stop msdtc
    The Distributed Transaction Coordinator service is stopping.
    The Distributed Transaction Coordinator service was stopped successfully.


    C:UsersAdministrator>sc query msdtc

    SERVICE_NAME: msdtc
    TYPE : 10 WIN32_OWN_PROCESS
    STATE : 1 STOPPED
    WIN32_EXIT_CODE : 0 (0x0)
    SERVICE_EXIT_CODE : 0 (0x0)
    CHECKPOINT : 0x0
    WAIT_HINT : 0x0

    C:UsersAdministrator>msdtc -uninstall

    C:UsersAdministrator>sc query msdtc
    [SC] EnumQueryServicesStatus:OpenService FAILED 1060:

    The specified service does not exist as an installed service.


    C:UsersAdministrator>msdtc -install

    C:UsersAdministrator>net start msdtc
    The Distributed Transaction Coordinator service is starting.
    The Distributed Transaction Coordinator service was started successfully.


    C:UsersAdministrator>sc query msdtc

    SERVICE_NAME: msdtc
    TYPE : 10 WIN32_OWN_PROCESS
    STATE : 4 RUNNING
    (STOPPABLE, NOT_PAUSABLE, ACCEPTS_SHUTDOWN)
    WIN32_EXIT_CODE : 0 (0x0)
    SERVICE_EXIT_CODE : 0 (0x0)
    CHECKPOINT : 0x0
    WAIT_HINT : 0x0

    C:UsersAdministrator>

  • 相关阅读:
    C++11 新特性之 序列for循环
    有一种acm题目叫做,奇葩!
    00103_死锁、Lock接口、等待唤醒机制
    Oracle物化视图梳理
    16 Managing Undo
    [.NET开发] C#编程调用Cards.dll实现图形化发牌功能示例
    [.NET开发] C#连接MySQL的两个简单代码示例
    [.NET开发] C#实现发送手机验证码功能
    [.NET开发] C#实现剪切板功能
    [.NET开发] C#实现的SQL备份与还原功能示例
  • 原文地址:https://www.cnblogs.com/oskb/p/3848600.html
Copyright © 2011-2022 走看看