国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 開發 > 綜合 > 正文

事物復制遇到的幾個錯誤

2024-07-21 02:47:59
字體:
來源:轉載
供稿:網友
事物復制遇到的幾個錯誤

1.分發服務器到訂閱服務器的歷史記錄中看到的錯誤消息:

嘗試的命令: if @@trancount > 0 rollback tran (事務序列號: 0x00014F30000020D9010700000000,命令 ID: 667)

錯誤消息: The distribution agent failed to create temporary files in 'C:/PRogram Files/Microsoft SQL Server/100/COM' directory. System returned errorcode 5. (源: MSSQL_REPL,錯誤號: MSSQL_REPL21100) 獲取幫助: http://help/MSSQL_REPL21100

錯誤日志中讀到的消息:

Error: 14151, Severity: 18, State: 1.

Replication-Replication Distribution Subsystem: agent "%s" failed. The distribution agent failed to create temporary files in 'C:/Program Files/Microsoft SQL Server/100/COM' directory. System returned errorcode 5.

-----------------

解決方案:

授予對運行 SQL Server 代理服務帳戶的 C:/Program Files/Microsoft SQL Server/100/COM 文件夾的寫權限。

參考http://support.microsoft.com/kb/956032

-------------------------------------------------------------------------------------------------------------------

2.分發服務器到訂閱服務器的歷史記錄中看到的錯誤消息:

錯誤消息:The process could not execute 'sp_replcmds' on ‘Server Name’. (源: MSSQL_REPL,錯誤號: MSSQL_REPL20011)獲取幫助: http://help/MSSQL_REPL20011Could not obtain information about Windows NT group/user "%s", error code 0x534. (源: MSSQLServer,錯誤號: 15404)獲取幫助: http://help/15404The process could not execute 'sp_replcmds' on ‘Server Name’. (源: MSSQL_REPL,錯誤號: MSSQL_REPL22037)獲取幫助: http://help/MSSQL_REPL22037

-----------------

解決方案:

執行腳本:

--將mydb的owner改為sa或本地域下擁有sysadmin角色的賬號mySysadmin。USE [mydb]GOEXEC dbo.sp_changedbowner @loginame = N'mySysadmin', @map = falseGO

或者直接通過UI修改,如下圖:

可能原因:服務器曾經改過名字(從A改成了B),而Login[A/Administrator]沒有相應的變為[B/Administrator],而我的mydb的owner恰好是

[A/Administrator],導致安全憑據出了問題。


發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 德清县| 萨嘎县| 黄大仙区| 永德县| 辰溪县| 宜良县| 溧阳市| 连城县| 厦门市| 四平市| 昭通市| 天津市| 太仓市| 连江县| 彭山县| 星座| 融水| 微山县| 三江| 沁阳市| 察哈| 门源| 石景山区| 卢氏县| 腾冲县| 东莞市| 江油市| 三台县| 巨野县| 休宁县| 穆棱市| 镶黄旗| 定陶县| 民勤县| 时尚| 绥江县| 北票市| 新晃| 禹州市| 江安县| 墨脱县|