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
     

  • 相关阅读:
    smarty中ifelse、foreach以及获取数组中键值名的一个实例
    smarty逻辑运算符
    python strip()函数 介绍
    (转)论python工厂函数与内建函数
    数据结构哈希表(转)
    哈希表算法的编写
    哈希表(转)
    平衡二叉树的旋转操作
    并查集详解(转)
    Java数组技巧攻略
  • 原文地址:https://www.cnblogs.com/stswordman/p/2024701.html
Copyright © 2011-2022 走看看