본 게시물은 개인적인 의견으로 작성되었으니 절대적인 정보가 아닐 수 있습니다. 참고만 하시고 궁금한 사항이 있으시면 연락주세요.

티스토리 뷰

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/


키워드 : 미러링복제


댓글
최근에 올라온 글
최근에 달린 댓글
글 보관함
Total
Today
Yesterday