当前位置:网站首页>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内核浏览器。
边栏推荐
- Idea global search for Chinese characters [easy to understand]
- SDN系统方法 | 9. 接入网
- Swagger implements background interface automation document
- 华为云GaussDB(for Redis)揭秘第19期:GaussDB(for Redis)全面对比Codis
- The performance of the server's four channel memory is improved. How about the performance of the four channel memory
- What is public chain development? What are the public chain development projects?
- How about qiniu's Zhangle TenPay? Is it safe
- Computing architecture of microblog comments
- Recursion and divide and conquer
- Wechat applet reports an error: request:fail URL not in domain list
猜你喜欢

Langage d'assemblage (5) Registre (accès à la mémoire)

How to judge whether you are suitable for software testing

lock
![[tips] how to quickly start a new position for a new software testing engineer](/img/88/5c002f492db56c646cbfd1ee98cd5b.png)
[tips] how to quickly start a new position for a new software testing engineer
![[matlab] data interpolation](/img/b8/d7e1a5f7c6f56c8312a1fb5d517ac6.png)
[matlab] data interpolation

有关均衡----简易版瓶颈模型

SDN系统方法 | 9. 接入网
![[compilation principle] lexical analysis](/img/b2/8f7dea3944839e27199b28d903d9f0.png)
[compilation principle] lexical analysis
![[daily record] - bug encountered during BigDecimal Division](/img/76/efb117986ac319987d4453bf00bec9.png)
[daily record] - bug encountered during BigDecimal Division
![[UVM practice== > episode_1] ~ MCDF design update, AMBA standard interface, UVM verification environment update](/img/22/0c13e98e634a99d1680dd4bb12eaef.png)
[UVM practice== > episode_1] ~ MCDF design update, AMBA standard interface, UVM verification environment update
随机推荐
golang sort slice int
golang list to string
Solve nvprof error err_ NVGPUCTRPERM - The user does not have permission to profile on the target device.
Can I open an account? Is it safe to open an account
Sentinel哨兵机制
移动端异构运算技术 - GPU OpenCL 编程(基础篇)
IDEA全局搜索汉字[通俗易懂]
The performance of the server's four channel memory is improved. How about the performance of the four channel memory
Interrupt operation: abortcontroller learning notes
New characteristics of cultural consumption in the era of digital economy
conda 修改镜像源
Swagger implements background interface automation document
Using QT to make a beautiful login interface box
启牛的涨乐财付通如何?安全靠谱吗
CentOS7 安装 Redis 7.0.2
Three traversal methods of binary tree (recursive + non recursive) complete code
The icon is missing. What does the URL come from with the jesssionid?
Under the same WiFi, the notebook is connected to the virtual machine on the desktop
启牛涨乐财付通下载是可以开户吗?开户安全吗
About queryinterface functions