当前位置:网站首页>SQL Server实时备份库要求
SQL Server实时备份库要求
2022-06-25 17:50:00 【游戏编程】

SQL Server 2008 以后开始提供了内建的方法“变更数据捕获”(Change Data Capture 即 CDC)以实现异步跟踪用户表的数据修改。
一、 环境要求
1、SQL Server 2008 及以上版本(备库)。
2、SQL Server 主备环境要求:其中备库与主库实时同步且可读取。目前可支持的备库 方案有两种:复制模式(发布订阅)、AlwaysOn。
3、SQL Server 备库开启 CDC、且指定表开启 CDC。
4、确保备库处于持续可连接状态(我们要直接访问备库),如果该条件不能满足,必 须提供一个新的备库服务器。
二、 备份库开启 CDC 操作步骤
1、确保 sql server 内置的 CDC 功能处于打开状态 可以通过以下命令查询 CDC 状态 SELECT name,is_cdc_enabled FROM sys.databases WHERE name = ‘dbname’ 开启方法
EXECUTE sys.sp_cdc_enable_db; 复制模式(发布订阅)应在备库上执行该操作,AlwaysOn 模式下,因为备库为 只读,所以需要在主库执行操作。
2、需启动 SQL SERVER Agent(SQL Server 代理服务)
3、账户创建 需要创建一个账户供 cdc 抽取服务用,该账户有以下条件: SQL Server 的 sysadmin 固定服务器角色的成员。 数据库的 db_owner。
4、开启表 CDC --参数@
作者:程序猿*攻城狮
游戏编程,一个游戏开发收藏夹~
如果图片长时间未显示,请使用Chrome内核浏览器。
边栏推荐
- Deeply understand and grasp the basic characteristics of digital economy
- 华为云GaussDB(for Redis)揭秘第19期:GaussDB(for Redis)全面对比Codis
- Mobile heterogeneous computing technology - GPU OpenCL programming (basic)
- [UVM practice== > episode_2] ~ VIP, VIP development, VIP release
- Three traversal methods of binary tree (recursive + non recursive) complete code
- Distributed remote management of distribution room environment
- golang sort slice int
- Deep understanding of ELF files
- jupyter的使用
- Wechat applet reports an error: request:fail URL not in domain list
猜你喜欢
![Jerry's system clock setting is reset or invalid [chapter]](/img/c6/ee6b287af7d309f98abda8e11d674c.png)
Jerry's system clock setting is reset or invalid [chapter]
沁恒CH583 USB 自定义HID调试记录

Uncover ges super large scale graph computing engine hyg: Graph Segmentation

【 NLP 】 in this year's English college entrance examination, CMU delivered 134 high scores with reconstruction pre training, significantly surpassing gpt3

20 provinces and cities announce the road map of the meta universe

SDN系统方法 | 9. 接入网

lock

使用DiskGenius拓展系统盘C盘的容量

Deep understanding of ELF files

ACY100油烟浓度在线监控仪针对饮食业厨房油烟排放
随机推荐
mysql mysql-8.0.19-winx64 安装与navicat连接
Deep understanding of ELF files
股票开户找人办比较方便么?在线开户安全么?
ASP.NET超市便利店在线购物商城源码,针对周边配送系统
解决nvprof 报错ERR_NVGPUCTRPERM - The user does not have permission to profile on the target device.
win10安装cuda的操作步骤(不断完美中)
golang list to string
微信小程序报错:request:fail url not in domain list
SDN系统方法 | 10. SDN的未来
Solve nvprof error err_ NVGPUCTRPERM - The user does not have permission to profile on the target device.
Distributed remote management of distribution room environment
智能对话01-redis的安装
golang list to string
Precautions for use of Jerry's SPI slave [chapter]
Jerry's ADC_ get_ Incorrect voltage value obtained by voltage function [chapter]
Is Guotai Junan Securities reliable? Is it legal? Is it safe to open a stock account?
Precautions for using Jerry's timer [chapter]
用连续自然数之和来表达整数
股票开户怎么办理 办理开户安全吗
Computing architecture of microblog comments