SQL Server Log shipping EE para SE

Esta semana surgiu a dúvida em um grupo do DBA Brasil, se seria possível utilizar o Log shipping com origem em uma edição enteprise para standard edition, a princípio respondi que poderia funcionar, basicamente o funcionamento do Log shipping é backup de log e restore, mas para confirmar o meu pensamento, configurei um Log shipping e efetuei os testes para comprovar a minha teoria que sim, é possivel utilizar o Log shipping.

Arquitetura:

Pré-requisitos para utilizar o Log shipping entre EE e SE:

1 – A versão do SQL Server de ambos os servidores envolvidos no Log shipping devem ser iguais, se você precisa fazer leitura no database em standby.

2 – É importante verificar se alguma feature edição enterprise esta habilitada para desativar, dessa forma garante a compatibilidade de features entre as edições.

SELECT feature_name
FROM sys.dm_db_persisted_sku_features;
GO

Agora irei realizar os testes e demonstrar que é possivel utilizar o Log shipping com edição de origem EE com destino na SE.

Versão e edição do SQL Server de origem com Log shipping:

select serverproperty('machinename') as [machinename], 
serverproperty('servername') as [servername], 
@@version version,
serverproperty('edition') as [edition],
serverproperty('productlevel') as [productlevel],
serverproperty('productupdatelevel') as [productupdatelevel],
serverproperty('productversion') as [productversion],
serverproperty('productupdatereference') as [productupdatereference],
convert (varchar(256), serverproperty('collation'))  collation

Versão e edição do SQL Server de destino com Log shipping:

select serverproperty('machinename') as [machinename], 
serverproperty('servername') as [servername], 
@@version version,
serverproperty('edition') as [edition],
serverproperty('productlevel') as [productlevel],
serverproperty('productupdatelevel') as [productupdatelevel],
serverproperty('productversion') as [productversion],
serverproperty('productupdatereference') as [productupdatereference],
convert (varchar(256), serverproperty('collation'))  collation

Irei criar um database com uma tabela na edição enterprise, adicionei este database no Log shipping e realizei algumas cargas de dados para testes:

create database db_teste
go
use db_teste
go
create table tb_dados([id] [int] identity(1,1) not null, descricao varchar(max));

declare @i int = 0
while @i < 500
begin
    set @i = @i + 1
	insert into tb_dados (descricao) values ('please note: refer to your license terms for microsoft sql server 2014 software (the software)
	 to identify the entity licensing this supplement to you and for support information. you may use a copy of this supplement with each validly licensed copy of the software. you may not use the supplement if you do not have a license for the software. the license terms for the software apply to your use of this supplement.
	 canada.  you may stop receiving updates by turning off the automatic update feature or by turning off internet access. refer to the product documentation to learn how to turn off updates for your specific device or software.')
end

Lendo as informações no servidor de destino do Log shipping SE:

select serverproperty('edition') as [edition],getdate() dt,count(*) qtd_dados from tb_dados;

Status do Log shipping:

Status dos databases de origem EE e destino SE:

Criei esse post devido a dúvida levantada e ao pouco material que encontrei sobre as edições diferentes envolvidas em um ambiente com Log shipping.

search previous next tag category expand menu location phone mail time cart zoom edit close