昨晚,我们的Alwayson AG集群上的两个节点同时宕机了。重新启动后,只有包含内存表的数据库被标记为可疑。在错误日志中我看到这条消息:(片段)
2022-02-03 02:20:12.480 Resource governor reconfiguration succeeded.
2022-02-03 02:21:11.570 Resource pool 'inMemory' does not exist or resource governor has not been reconfigured.
2022-02-03 02:21:12.720 Database 'XXXXX' cannot be opened. It has been marked SUSPECT by recovery. See the SQL Server errorlog for more information.
我查了一下:
知道为什么只有这个组合(AOAG/XTP/RG)会导致可疑数据库吗?其他数据库没有这个问题(崩溃时有几个进程正在其他数据库上运行) 环境:SQL2019 CU14、2节点AlwaysOn同步、Windows Server 2019
看看这是否有帮助..https://www.brentozar.com/archive/2016/04/run-dbcc-checkdb-memory-oltp-hekaton-tables/
内存中的表可能没有正确写入磁盘,当数据库尝试将它们读入内存时,轮子就会脱落......