About Me Terry Brothers. About IT Take Away An understanding of SQL Server Log Shipping

Preview:

Citation preview

About Me

Terry Brothers

About IT

Take Away

An understanding of SQL Server Log Shipping

Database Log Shipping

• Easy to configure• Reliable• Easy to Recover

Log Shipping Process

Log Shipping Process

Log Shipping Process

Create Secondary Server

• Build a SQL Server from scratch• Clone the eAutomate VM• Restore from Backup Exec to a VM• Restore from AppAssure to a VM• Some other method

Configure Log Shipping

Production: ESI-EAM

Secondary: ESI-EAM-BAK

Configure Log Shipping

Configure Log Shipping

Configure Log Shipping

Configure Log Shipping

Configure Log Shipping

Configure Log Shipping

Configure Log Shipping

Configure Log Shipping

Configure Log Shipping

Configure Log Shipping

Configure Log Shipping

Configure Log Shipping

Configure Log Shipping

Configure Log Shipping

Configure Log Shipping

Configure Log Shipping

Configure Log Shipping

Configure Log Shipping

Recover Secondary Server

USE masterGOEXEC msdb.dbo.sp_change_secondary_role@db_name = ‘CoESI_Test',@do_load = 1,@force_load = 1,@final_state = 1,@access_level = 1,@terminate = 1,@stopat = null

Rename Windows Server

ESI-EAM-BAK

ESI-EAM

Rename SQL Server

sp_helpserverexec sp_dropserver 'ESI-EAM-BAK'sp_addserver 'ESI-EAM', LOCAL

Rename SQL Server

Additional DR Preparation

• Backup SQL Logins• Backup SQL Agent Jobs

SQL Logins

SQL Agent Jobs

eAdmin for eAutomate

SQL Administration

• Database Integrity• Reorganize Indexes• Rebuild Indexes• Database Mail

Recap from Last Year

Database Maintenance

Check Database Integrity

The Check Database Integrity task checks the allocation and structural integrity of all

the objects in the specified database.

Database Maintenance

Reorganize Index Task

The Reorganize Index task defragments and compacts indexes on tables and views.

This improves index-scanning performance.

Database Maintenance

Rebuild Index Task

The Rebuild task reorganizes data on the data and index pages by rebuilding indexes.

This improves performance of index scans and seeks.

This task also optimizes the distribution of data and free space allowing faster future growth.

Maintenance Plan Wizard

SQL Server Management Studio

Database Mail

Be the Hero – Not the Villain

Recommended