`
zhangziyangup
  • 浏览: 1186747 次
文章分类
社区版块
存档分类
最新评论

配置Log shipping失败Could not retrieve copy settings for secondary ID

 
阅读更多
配置Log Shipping的时候Copy和Restore的Job一直失败,错误如下:
***Error: Could not retrieve copy settings for secondary ID '[removed]'.(Microsoft.SqlServer.Management.LogShipping)***
***Error: The specified agent_id BECBBCC0-6867-4398-BD96-830D62D88558or agent_type 1 do not form a valid pair forlog shipping monitoring processing.(.Net SqlClientData Provider)***
看了半天不知道什么问题,后来去查sqllogship运行命令才发现系统产生的命令竟然错了,
"C:\Program Files\Microsoft SQL Server\90\Tools\Binn\sqllogship.exe"-Copy BECBBCC0-6867-4398-BD96-830D62D88558-server SERVER01,1433
如果是-Copy 或者是Restore,Server name 应该是Secondery Server,但是发现这里是Primary server,将Server 名改正确以后Job就正常运行了。

本来以为这是个Bug,但是没有从微软的网站上看到KB讲这个事情。后来突然想起来这个机器是P2V过来的,然后改了服务器名,导致实例名和服务器名不一样,导致了这个问题。

用下面的命令更改实例名问题解决:

EXEC sp_dropserver 'Your_OLD_Computer_Name'
GO

EXEC sp_addserver 'Your_NEW_Computer_Name', 'local'
GO

分享到:
评论

相关推荐

    报Could not retrieve mirrorlist http://mirrorlist.centos.org/解决办法

    Centos7 安装Docker时yum报错Could not retrieve mirrorlist http://mirrorlist.centos.org/,网上各种说法,有说修改DNS的,有说清空yum.repo.d的,笔者是这样解决的:因为centos7官方仓库自2024年6月30日后不再更新...

    oracle12c安装报错:PRVF-0002的解决方法

    查看了一下报错信息: [root@test68 OraInstall2013-09-06_04-43-39AM]# cat installActions2013-09-06_04-43-39AM.log 后几行报错: SEVERE: [FATAL] PRVF-0002 : Could not retrieve local nodename. Refer ...

    linux基础之Centos7配置阿里yum源

    Yum简介 yum (全称为 Yellow dogUpdater,modified)是一个在Fedora和RedHat以及CentOS中的Shell前端软件包管理器。基于RPM包管理,能够从指定的服务器自动下载RPM包并且安装,可以自动处理依赖性关系,并且一次安装...

    Knowledge-driven Encode, Retrieve, Paraphrase for MedicalImageReport.pdf

    We propose a novel Knowledge-driven Encode, Retrieve, Paraphrase (KERP) approach which reconciles traditional knowledge- and retrieval-based methods with modern learning-based methods for accurate ...

    oralce10启动报错!

    查阅Oracle数据库的警报日志(通常位于`$ORACLE_HOME/dbs/alert_sid.log`),以及trace文件,这些文件中通常包含详细的错误信息,有助于定位具体问题。 #### 步骤3:验证参数文件 检查`spfile`或`pfile`中的参数...

    Linux下安装Oracle 11g出现prvf-0002错误解决办法

    错误消息指出:“Could not retrieve local nodename”。这通常是因为以下几个原因: 1. **主机名未定义**:系统可能找不到主机名的定义,或者找不到与之相关的IP地址映射。 2. **hostname命令不一致**:`hostname`...

    Retrieve Form for Data Capture (RFD)

    Retrieve Form for Data Capture (RFD)

    报错ORA01804解决方法.txt

    使用PL/SQL登录ORACLE数据 报错,error while trying to retrieve text for error ORA-01804,的解决方法,操作步骤,在windows server 2008R2 64位,oracle 12C,PLSQL Developer 12 64位,以上使用环境正常,

    kafka sbt-0.13.16.tgz

    《深入理解HBase:从kafka到0.98.6-hadoop2版本》 HBase,作为Apache软件基金会的一个开源分布式数据库,是基于Google的Bigtable设计思想构建的,专为大规模数据集(通常在PB级别)设计。它运行在Hadoop之上,提供...

    yum的使用方法

    4. **解决“Could not retrieve mirror list”错误**:该错误通常与网络连接或配置文件中的镜像地址有关。 5. **配置DNS服务器**:正确设置DNS服务器对于YUM正常工作至关重要。 #### YUM基础知识 - **YUM的作用**...

    Query Retrieve SCP Emulator

    Query Retrieve SCP Emulator

    PB并发控制与Row changed between retrieve and update详解

    PB并发控制与Row changed between retrieve and update详解 PB并发控制机制是指在多用户同时访问数据库时,防止数据不一致和丢失的机制。PowerBuilder 提供了多种并发控制策略,包括Key Columns、Key and ...

    drupal 6.12

    // $Id: INSTALL.txt,v 1.61.2.4 2008/07/09 19:15:59 goba Exp $ CONTENTS OF THIS FILE --------------------- * Requirements * Optional requirements * Installation * Drupal administration * ...

    RKISPV1 Camera常见问题及解决方法

    本文档的主要内容详细介绍的是RKISPV1 Camera的常见问题及解决方法,包括:1开机过程模组注册失败,2 调试过程进入APK 黑屏没显示或者卡住,3 驱动写正常并且进入有DISPLAY START 的打印还是黑屏,4 插着CAMERA 开机...

    Linux环境下(Centos7) 下安装jdk (openjdk yum安装) 详细教程

    配置环境变量3.1 JDK默认安装路径: /usr/lib/jvm3.2 配置环境变量 一. 检查是否已安装JDK并卸载 1.1 检查 yum list installed | grep java 出现如图结果: 先检查是否有如图的结果,如果没有搜索结果,则说明无需...

    Explorer for MySQL Data Base.You can retrieve and execute yo

    标题中的"Explorer for MySQL Data Base"表明这是一个针对MySQL数据库的管理工具,可能具有类似于数据库浏览器的功能,让用户能够方便地查看、检索和操作MySQL数据库中的数据。"You can retrieve and execute your ...

    an introduction to information retrieve

    标题为“an introduction to information retrieve”的文档,实际上是指《信息检索导论》这本书的介绍。该书由斯坦福大学出版,作者包括 Christopher D. Manning、Prabhakar Raghavan 和 Hinrich Schütze。根据描述...

    mysql-for-visualstudio-1.2.6.msi 官方下载原版

    MySQL for Visual Studio 1.2.6 是一个官方提供的集成开发环境插件,它使得Visual Studio 2015用户能够方便地与MySQL数据库进行交互和开发。这个插件是MySQL与微软Visual Studio深度整合的一个体现,为C#开发者提供...

    3D Pose Estimation and 3D Model Retrieval for Objects in the Wild

    to retrieve 3D models for objects in the wild. Our contri- bution is twofold. We first present a 3D pose estimation approach for object categories which significantly outper- forms the state-of-the-...

Global site tag (gtag.js) - Google Analytics