zoukankan      html  css  js  c++  java
  • 在域环境下建立镜像

    有两个服务器db-admin-12(主体)和db-admin-10(镜像),db-admin-12上有数据库mirroring_sample,现在希望建立镜像.

    建立镜像的前提条件:

    1. db-admin-12和db-admin-10服务器的启动账号为域账号
        1. db-admin-10的启动账号为domain1\sqlserver1
        2. db-admin-12的启动账号为domain1\sqlserver2
    2. mirroring_sample的为完全恢复模式
    3. db-admin-12和db-admin-10上SQLSERVER版本相同(version&edition)

    在db-admin-12上执行

    image

    在上面的脚本中创建了endpoint,并授权db-admin-10的启动账号连接这个endpoint的权限. 然后备份要镜像的数据库(备份到一个有写权限的目录)

    在db-admin-10上执行

    image

    在上面的脚本中创建了endpoint,并授权db-admin-12的启动账号连接这个endpoint的权限. 然后还原备份,指定partner(db-admin-12)的FQDN

    返回在db-admin-12上执行

    image

    建立镜像.

    在这一步中,可能遇到以下错误

    The server network address "%.*ls" can not be reached or does not exist. Check the network address name and that the ports for the local and remote endpoints are operational.

    请确认两台机器可以ping通

    双方端点没有被防火墙阻塞,并且可以telnet

    双方启动账号有访问对方端点的权限(已经授权)

    The mirror database, "%.*ls", has insufficient transaction log data to preserve the log backup chain of the principal database.  This may happen if a log backup from the principal database has not been taken or has not been restored on the mirror database.

    请备份db-admin-12的log,还原到db-admin-10

    https://files.cnblogs.com/stswordman/mirror.zip
     

  • 相关阅读:
    .hpp文件
    最小高度的BST
    检查图中的有向路径
    c++ 对象内存布局详解
    链表求差
    offer--链表反转和从尾到头打印链表
    平衡二叉树的判断
    java 抽象类和接口
    原型模式--prototype
    装饰模式decorator
  • 原文地址:https://www.cnblogs.com/stswordman/p/2024701.html
Copyright © 2011-2022 走看看