이어지는 Push New Subscription부분 입니다.

해당하는 Publication에서 Push New Subscription을 선택합니다.

 

새로운 위저드 화면이 나옵니다.

 

Subscribers를 선택 합니다.

저는 NOTE-KONAN 이었지요.. ^_^

설정을 잡아 볼가요?

 

목적 데이터베이스를 선택합니다.

코난이는 심플하게... Browse Database를 선택하고 새로운 DB인

rep_pubs라는 데이터베이스를 생성하였답니다.

다른 서버의 DB라도 문제 없겠지요? ^_^

 

Immediate-Updating Subscription을 할건지를 묻습니다.

코난이는 전략대로 한다고 했습니다.

 

Distributor Agent의 스케쥴을 잡아주는 부분 입니다.

Continuously로 지속적인 수정이 가능하게 하였습니다.

 

최초 Initializing이 필요 한가? 이며...

Initializing시 Snapshot Agent로 최초 DB스키마를 넘길것인지를 묻습니다.

코난이는 한다고 했습니다.

 

필요한 서비스를 시작할건지를 묻습니다.

스탑이 되어있을 경우는 복제시 자동으로 시작을 시킵니다.

 

설정을 완료 했습니다.

 

자알~~ 끝났습니다.

 

이제 마지막이 자알 보이는 중이지요?

 

select title_id, title from pubs..titles

go


title_id title 
-------- -------------------------------------------------------------------------------- 
PC1035 But Is It User Friendly?
PS1372 Computer Phobic AND Non-Phobic Individuals: Behavior Variations
BU1111 Cooking with Computers: Surreptitious Balance Sheets
PS7777 Emotional Security: A New Algorithm
TC4203 Fifty Years in Buckingham Palace Kitchens
PS2091 Is Anger the Enemy?
PS2106 Life Without Fear
PC9999 Net Etiquette
TC3218 Onions, Leeks, and Garlic: Cooking Secrets of the Mediterranean
PS3333 Prolonged Data Deprivation: Four Case Studies
PC8888 Secrets of Silicon Valley
MC2222 Silicon Valley Gastronomic Treats
BU7832 Straight Talk About Computers
TC7777 Sushi, Anyone?
BU1032 The Busy Executive's Database Guide
MC3021 The Gourmet Microwave
MC3026 The Psychology of Computer Cooking
BU2075 You Can Combat Computer Stress!

(18 row(s) affected)

이렇게 보이실 겁니다.

 

그럼 여기에 추가를 해 볼까요?

 

insert pubs..titles (title_id, title, type, pub_id, price, advance, royalty, ytd_sales, notes, pubdate) 
values ('코0000', '코나니는 바부인가?', 'popular_comp', '1389',
$20.00, $8000.00, 10, 4095, '선데이 코난', '03/14/00')

그런후..

select title_id, title from pubs..titles

를 다시하면

title_id title 
-------- -------------------------------------------------------------------------------- 
코0000 코나니는 바부인가?
PC1035 But Is It User Friendly?
PS1372 Computer Phobic AND Non-Phobic Individuals: Behavior Variations
BU1111 Cooking with Computers: Surreptitious Balance Sheets
PS7777 Emotional Security: A New Algorithm
TC4203 Fifty Years in Buckingham Palace Kitchens
PS2091 Is Anger the Enemy?
PS2106 Life Without Fear
PC9999 Net Etiquette
TC3218 Onions, Leeks, and Garlic: Cooking Secrets of the Mediterranean
PS3333 Prolonged Data Deprivation: Four Case Studies
PC8888 Secrets of Silicon Valley
MC2222 Silicon Valley Gastronomic Treats
BU7832 Straight Talk About Computers
TC7777 Sushi, Anyone?
BU1032 The Busy Executive's Database Guide
MC3021 The Gourmet Microwave
MC3026 The Psychology of Computer Cooking
BU2075 You Can Combat Computer Stress!

(19 row(s) affected)

오홍~~ 당연히 자알 들어 가지요...

그럼 여기서!!!!!!!!!!!!!!

우리의 rep_pubs는 어케 되었을가요?

 

select title_id, title from rep_pubs..titles

go

 

title_id title 
-------- -------------------------------------------------------------------------------- 
코0000 코나니는 바부인가?
PC1035 But Is It User Friendly?
PS1372 Computer Phobic AND Non-Phobic Individuals: Behavior Variations
BU1111 Cooking with Computers: Surreptitious Balance Sheets
PS7777 Emotional Security: A New Algorithm
TC4203 Fifty Years in Buckingham Palace Kitchens
PS2091 Is Anger the Enemy?
PS2106 Life Without Fear
PC9999 Net Etiquette
TC3218 Onions, Leeks, and Garlic: Cooking Secrets of the Mediterranean
PS3333 Prolonged Data Deprivation: Four Case Studies
PC8888 Secrets of Silicon Valley
MC2222 Silicon Valley Gastronomic Treats
BU7832 Straight Talk About Computers
TC7777 Sushi, Anyone?
BU1032 The Busy Executive's Database Guide
MC3021 The Gourmet Microwave
MC3026 The Psychology of Computer Cooking
BU2075 You Can Combat Computer Stress!

(19 row(s) affected)

오홍~~~ 자알 되듯 하지요?

그렇다면?

select title_id, title from pubs..titles

insert pubs..titles (title_id, title, type, pub_id, price, advance, royalty, ytd_sales, notes, pubdate) 
values ('코0001', '코나니는 바부인가?', 'popular_comp', '1389',
$20.00, $8000.00, 10, 4095, '선데이 코난', '03/14/00')
go

select title_id, title from rep_pubs..titles
go

삽입시 id를 코0001로만 바꾸고... 다쉬 동시에 해 볼가요?

그럼?

이상하게도 값이 없습니다.

분명히 삽입한 다음 인데요...

한 3초~5초후 다시 SELECT를 해 보면?

와 있습니다...

약간의 딜레이가 있다.. 라는 의미 이지요..

그럼...

 

살짝더 바까 볼가요?

Subscriber에서 삽입을 해 보지요...


insert rep_pubs..titles (title_id, title, type, pub_id, price, advance, royalty, ytd_sales, notes, pubdate) 
values ('랄0000', '코나니는 바부인가?', 'popular_comp', '1389',
$20.00, $8000.00, 10, 4095, '선데이 코난', '03/14/00')
go

select title_id, title from rep_pubs..titles
go

select title_id, title from pubs..titles
go

를 한후... 돌리면 어케 될가요?

약간 틀리게 즉시 실행이 됩니다. 그 이유는 무엇일가요?

설치중의 글을 자알~~ 읽어 보셨다면 그 이유를 아실 겁니다.

 

마지막 저의 숙제 입니다.

Replcation Agent와 스케쥴을 자알~~ 보시면서...

어떻게 돌아가는지를 찬찬히 봐 보세요 ^_^

 

 

복제는 아주 섬세한 기술 입니다.

저역시 이것만 한 일주일을 가지고 헤메는군요... 저는 어렵더라구요...

복제의 구축 순서와...

그 성격을 정확히 알고...

에러메세지들을 보신다면... 정확히 구축이 가능해 지실 겁니다.

 

복제는 그 구축보다...

설계가 문제 입니다....

어느경우에 어느 방식으로 복제를 구축할 것인가...

과연 의미가 있는가...

가장 효율적인 복제 전략은 무엇인가 입니다...

 

서울에 1개, 전국에 5개의 항공권 예약 카운터가 있습니다.

동시에 전국의 예약 단말기가 같은 수치를 봐야 합니다.

50명이 정원인 비행기에 49명이 등록했으며... 50번째 부산에서 항권권을 예약하면

나머지에서는 예약이 불가해야 합니다.

등등등...

이럴때 어케 해야 할가요?

 

등등.. 많은 경우가 있답니다.

 

여하간... 개인적으로 많은 도움이 되었던 케이스였습니다.

 


6. Replication(복제)란? _ 6. 복제의 구축(3) 문서의 끝입니다.





profile

부족하지만, SQLER의 누군가와 함께한 나눔을 통해 제가 더 많이 즐거웠습니다.
SQLER와 함께 즐거워 할수록, 그 나눔을 통해 더 많은 기회와 가치를 발견하게 되었습니다.
나눔의 생각이 앞으로도 계속, SQLER를 움직일 것입니다.

코난, 김대우 / SQLER 운영자 / 골라먹는 SQLER RSS 정보 구독 / 실시간 SQLER 소식 uxkorea 트위터