티스토리 뷰
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/
키워드 : 미러링복제
'SQL Server' 카테고리의 다른 글
SQL Server Buffer Pool에 저장된 데이터베이스, 인덱스 사용량 (0) | 2016.04.01 |
---|---|
Drop & Create vs. Create With Drop_Existing vs. Rebuild 성능비교 (0) | 2016.03.24 |
SQL Server 백업 및 복원 시나리오 스크립트 (0) | 2016.03.17 |
SQL DBCC SHRINKFILE 후 시점 로그복원이 가능할까? (0) | 2016.02.22 |
SQL SSMS를 다른 윈도우계정으로 접속하는 방법 (0) | 2016.02.17 |
- Total
- Today
- Yesterday