SQL Server

SQL 미러링 SET 와 복제기능 추가하는 방법

AWS-in 2016. 3. 21. 16:45

SQL 미러링을 하고 있는 데이터베이스의 일부 테이블을 타 서버로 복제를 걸수 있을까?

이슈는 미러링의 Principal 서버의 데이터베이스를 복제는 가능하나, 미러링이 장애조치될 경우에 Mirror 서버에서도 복제가 정상적으로 수행되어야 한다.

그러기 위해서는 복제에서도 게시자의 파트너서버를 등록해야 정상적으로 복제기능도 장애조치가 된다. 

키포인트 : Mirror서버 배포구성, 복제에이전트에 –PublisherFailoverPartner 옵션의 파트너서버 등록하기


[참고문서]

Database Mirroring and Replication (SQL Server)

https://msdn.microsoft.com/en-us/library/ms151799.aspx

exec sp_help_agent_profile;

-- Setting the -PublisherFailoverPartner parameter in the default Snapshot Agent profile (profile 1).

-- Execute sp_add_agent_parameter in the context of the distribution database.

exec sp_add_agent_parameter @profile_id = 1, @parameter_name = N'-PublisherFailoverPartner', @parameter_value = N'<Failover Partner Name>';


-- Setting the -PublisherFailoverPartner parameter in the default Merge Agent profile (profile 6).

-- Execute sp_add_agent_parameter in the context of the distribution database.

exec sp_add_agent_parameter @profile_id = 6, @parameter_name = N'-PublisherFailoverPartner', @parameter_value = N'<Failover Partner Name>';


잘 된다.


https://www.pythian.com/blog/how-to-configure-transactional-replication-mirroring-failover/


키워드 : 미러링복제