建立 Windows 帳號
文章內會建立 4 個 Windows 帳號對應各 Agent,如下圖
但該教學沒有用到 Merge Agent,所以不建也沒差就是
建立快照集並設定權限
在 Node1 的 C:\Program Files\Microsoft SQL Server\MSSQL15.SQL2019\MSSQL\DATA 資料夾內,建立 repldata 資料夾並設定分享、權限和安全性,權限和安全性都要授予 repl_distribution 和 repl_snapshot 下列權限
- repl_distribution:讀取
- repl_snapshot :完整控制
資料夾權限,repl_distribution 和 repl_snapshot 都要加入,下圖以 repl_snapshot 來示意
安全性,repl_distribution 和 repl_snapshot 都要加入,下圖以 repl_distribution 來示意
- Add a local Windows account (not a domain account) for each agent at the appropriate nodes (use the same name and password at each node). For example, the Distribution Agent for a push subscription runs at the Distributor and makes connections to the Distributor and Subscriber. The Windows account for the Distribution Agent should be added to the Distributor and Subscriber.
- Ensure that a given agent (for example the Distribution Agent for a subscription) runs under the same account at each computer.
沒有留言:
張貼留言