您好,登錄后才能下訂單哦!
SQLServer 復制和數據庫鏡像 詳細配置部署
https://blog.csdn.net/kk185800961/article/details/46369577
SQL Server掃盲系列——鏡像篇
https://blog.csdn.net/dba_huangzj/article/details/35995083 ALTER DATABASE (Transact-SQL) Database Mirroring
https://docs.microsoft.com/en-us/sql/t-sql/statements/alter-database-transact-sql-database-mirroring?view=sql-server-2017
USE [master]
95.GO
96.--主體執行:設置為高安全模式(同步)
97.ALTER DATABASE [MyDB] SET SAFETY FULL
98.
99.--主體執行:設置為高性能模式(異步)
100.ALTER DATABASE [MyDB] SET SAFETY OFF
101.
102.--主體執行:主體與鏡像切換
103.ALTER DATABASE [MyDB] SET PARTNER FAILOVER;
104.
105.
106.ALTER DATABASE [MyDB] SET PARTNER RESUME; --恢復鏡像
107.ALTER DATABASE [MyDB] SET PARTNER FAILOVER; --切換主備
108.ALTER DATABASE [MyDB] SET PARTNER FORCE_SERVICE_ALLOW_DATA_LOSS; --強制恢復鏡像
109.ALTER DATABASE [MyDB] SET ONLINE; --在線數據庫
110.
111.
112.select * from sys.certificates
113.select * from sys.endpoints
114.select * from sys.database_mirroring_endpoints
115.select * from sys.database_mirroring
116.select * from sys.database_mirroring_witnesses
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。