複製sybase伺服器安裝配置

來源:互聯網
上載者:User

我一直看sybase這個版,的確不錯,雖然僅僅我問的兩個問題都沒人回答。發現複製的問題不少,寫一篇算做貢獻了:
sybase版有沒有專有ftp,我上傳replication server 12.0 for win,好象有人要
具體複製步驟:
1. 安裝PRS,是ID server,RSSD需要複製(Rep Agent)PDB要複製(Rep Agent)
2. 安裝RRS,不是ID server,RSSD不要複製。
3. 建PRS—>RRS的單項路由,在PRS上建;
isql –Usa –Ppass –SPRS
>create route to RRS
>set username RRS_rsi
>set password RRS_rsi_ps
>go
4 在PDS(主點資料服務器)建一個複製使用者:
isql –Usa –Ppass –SPDS
>sp_adsdlogin repsys,repsys_ps
>go (repsys 密碼repsys_ps)
>use pdb
>go
>sp_adduser repsys
>go
>grant all on rep_table to repsys
>go (對要複製的表rep_table授權)
5 將複製使用者repsys加到PRS(主點複製伺服器)RRS(複製點複製伺服器)上,並將create object 許可權授予該使用者。(注意,此”repsys”使用者在PRS和RRS及PDS上必須用相同的登入名稱和口令)
isql –Usa –Ppass –SPRS
>create user repsys
>set password repsys_ps
>go
>grant create object to repsys
>go isql –Usa –Ppass –SRRS
>create user repsys
>set password repsys_ps
>go
>grant create object to repsys
>go
6 在PRS上建立複製定義(注意使用者)
isql –Urepsys –Prepsys_ps –UPRS
>create replication definition pdb_repdef
>with primary at PDS.pdb
>with all table named ‘rep_table’
>(num1 datatype,num2 datatype,…….)
>primary key(num)
>searchtable columns(num1,num2,……)
>go
7 將PDB中pdb要複製的表設為可複製
isql –Usa –Ppass –SPDS
>use pdb
>go
>sp_setreptable rep_table,true
>go
8 給RDS中rdb中要複製的表授權
isql –Usa –Ppass –SRDS
>use rdb
>go
>grant all on rep_table to rdb_maint
>go
9 在RRS上建預定
isql –Urepsys –Prepsys_ps –SRRS
>create subscription pdb_sub
>for pdb_repdef
>with replicate at RDS.rdb
>subscribe to truncate table
>with materialization (初始化)
10 驗證在PRS和RRS上
isql –Usa –Ppass –SPRS
>admin_health
>go
>admin_who
>go
>admin_who_is_down
>go

isql –Usa –Ppass –SRRS
>admin health
>go
>admin who
>go
>admin who_is_down
>go
寫的很簡單,如有問題請指正。其實複製真的很容易。有什麼問題可以探討。

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.