当我们配置日志传送时,我们是否也必须打开从目标服务器到源服务器的防火墙?
当我们配置日志传送时,我们是否也必须打开从目标服务器到源服务器的防火墙?
When we configure log shipping do we have to open a firewall from the destination server to the source server too?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这取决于参与日志传送配置的两个 SQL Server 实例是否:
It depends on whether or not the two instances of SQL Server taking part in the log shipped configuration are:
日志传送包含 Sql 服务器代理的四个单独作业。
1.在主服务器中备份
2.将日志发送到辅助服务器
3.在辅助服务器中恢复日志
4.监控步骤2和3中的日志传送过程(可选)
,如果您的主服务器和辅助服务器是分开的,则您需要在网络中有一个共享文件夹,为此您应该授予辅助服务器访问权限以从主服务器复制所有文件。重要的是“日志传送配置中的数据库必须使用完整恢复模型或批量日志恢复模型”。
您必须是每个服务器实例上的系统管理员才能启用日志传送。 日志传送配置中的备份和恢复目录必须遵循这些要求。
对于备份作业,需要对以下各项具有备份目录的读/写权限:
主服务器实例上的 SQL Server 服务帐户。
备份作业的代理帐户。 默认情况下,这是主服务器实例上的 SQL Server 代理帐户。
对于复制作业,复制作业的代理帐户需要具有备份目录的读取权限和复制目录的写入权限。 默认情况下,这是辅助服务器实例上的 SQL Server 代理帐户。
对于还原作业,以下各项需要对复制目录的读/写权限:
辅助服务器实例上的 SQL Server 服务帐户。
恢复作业的代理帐户。 默认情况下,这是辅助服务器实例上的 SQL Server 代理帐户。
Log shipping contains four separate job by Sql server Agent.
1.Getting back up in primary server
2.Shipping logs to secondary server
3.Restoring logs in secondary server
4.Monitoring the log shipping process (Optional)
in steps 2 and 3, you need have a shared folder in network if your primary and secondary servers are separate and for this you should give access to secondary server to copy all files from primary server.and The important thing is "databases in a log shipping configuration must use the full recovery model or bulk-logged recovery model".
You must be a sysadmin on each server instance to enable log shipping. The backup and restore directories in your log shipping configuration must follow these requirements.
For the backup job, read/write permissions to the backup directory are required on the following:
The SQL Server service account on the primary server instance.
The proxy account of the backup job. By default, this is the SQL Server Agent account on the primary server instance.
For the copy job, read permissions to the backup directory and write permissions to the copy directory are required by the proxy account of the copy job. By default, this is the SQL Server Agent account on the secondary server instance.
For the restore job, read/write permission to the copy directory are required by the following:
The SQL Server service account on the secondary server instance.
The proxy account of the restore job. By default, this is the SQL Server Agent account on the secondary server instance.