Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to configure SQL Server log shipping

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)05/31 Report--

Editor to share with you how to configure SQL Server log delivery, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!

Date:2016-04-15

Author:Netdata

one。 Installation environment: 1. System environment

OS:Windows Server 2012 DataCenter

DB:SQL Server 2012 R2 SP3

Lord:

IP: 172.25.10.186

Hostname: DBCW01-10-186

Database name: test

Standby:

IP:172.25.10.188

Hostname: DBCW02-10-188

Database name: test

two。 Brief introduction to Log Shipping configuration

The following figure shows a log shipping configuration with a primary server instance, three secondary server instances, and a monitoring server instance. This figure illustrates the steps performed by backup jobs, replication jobs, and restore jobs, as follows:

1. The primary server instance performs a backup job to back up the transaction log on the primary database. The server instance then places the log backup in the primary log backup file (which will be sent to the backup folder). In this figure, the backup folder is located under the shared directory (backup share).

two。 All three secondary server instances perform their own replication jobs to copy the primary log backup files to their local destination folder.

3. Each secondary server instance performs its restore job to restore log backups from the local destination folder to the local secondary database.

The primary and secondary server instances send their own history and status to the monitoring server instance.

two。 Install the database

1. Install SQL Server 2012 R2 on two database servers

two。 Patch SP3 on two database servers respectively

three。 Configure log shipping 1. Create an application database on the main library

Create a sample table

-- create table

Create table test_log

(id int identity (1), name varchar (50), dates datetime default getdate ())

-- general data

Declare @ I int

Set @ iTunes 1

While @ I

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report