国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 開發 > 綜合 > 正文

教你快速掌握Sybase整庫復制的具體步驟

2024-07-21 02:43:21
字體:
來源:轉載
供稿:網友
本文基于整庫復制的(warm standby):

復制服務器名字 : HRB_REP

主數據庫服務器和主庫HRB_HB.maindb to 備份數據庫服務器和備份庫HRB_HB_REP.maindb

◆1. 復制服務器和ASE數據庫的interfaces中都要包括上面三個server的接口信息

◆2. 用復制服務器安裝的用戶登錄。

◆3. 使用/repsrv/REP-12_5/install/rs_init 安裝復制服務器

(ctrl-a 接受 ctrl-b 向后 ctrl-x 退出)

1>; Configure a Server PRoduct

2>; Replication Server

3>; Install a new Replication Server

3.1>; Replication Server Information

3.1.1 輸入復制服務器的名字 HRB_REP

3.1.2 Is this Replication Server the ID Server 選擇Yes

3.2>; Replication Server System Database

3.2.1 rssD SQL Server Name: 輸入安裝復制服務器系統庫的數據庫服務器名字HRB_HB_REP

3.2.2 Create RSSD : 如果沒有建過這個庫,選Yes

3.2.3 SA passWord : 輸入sa口令

3.3>; RSSD Device Information

3.3.1 Size of the RSSD Database: 輸入HRB_REP_RSSD數據庫的大小(30-50M)

3.3.2 RSSD device name : 輸入數據庫設備的名字

3.3.3 如果數據庫中沒有建立設備,選擇 Create the RSSD device 并輸入設備文件名和大小

3.3.4 Size of the RSSD Database: 輸入HRB_REP_RSSD日志的大小(30-50M)

3.4>; Disk Partition

3.4.1 Partition文件必須存在,可以使用 >;filename(或touch filename) 創建

3.4.2 Disk Partition Path: 輸入partition文件的文件名

3.4.3 Logical Identifier for Disk Partition: 輸入partition在復制服務器中的邏輯名

3.4.4 Size of Disk Partition: 輸入Partiton的大小(一定要分配足夠大的空間,否則在大的事務復制時會因為partition滿而出錯)

3.5>; 如果所有選項全部為complete狀態,按ctrl-a創建復制服務器

創建完后不要退出rs_init,后面還要用

◆4. 在主點數據庫和備份點數據庫服務器中分別執行

設置數據庫服務器可以復制

isql -Usa -P; -S;

1>; use master

2>; go

1>; sp_configure 'enable rep agent threads',1

2>; go

如果maindb沒有設置select into 選項,需要如下設置

1>; use master

2>; go

1>; sp_dboption maindb,'select into',true

2>; go

1>; use maindb

2>; go

1>; checkpoint

2>; go

◆5. 在復制服務器中執行

isql -Usa -P -S;

1>; create logical connection to HRB_HB.maindb

2>; go

◆6. 在rs_init中增加主庫到復制中,選擇 add a database to the replication system

6.1>; Replication Server Information

6.1.1>; 輸入復制服務器名字HRB_REP

6.2>; Database Information

6.2.1>; SQL Server Name: 輸入主數據庫服務器名HRB_HB

6.2.2>; SA password : 輸入sa口令

6.2.3>; Database name: 輸入主庫名maindb

6.2.4>; Will database be replicated : 選擇Yes

6.2.5>; Is this a Physical Connection for Existing Logical Connection: 選擇Yes

6.2.6>; Logical DB Setup

6.2.6.1>; Is this an Active Connection or Standby Connection: 選擇active

6.2.6.2>; Logical DS Name : 輸入主服務器名HRB_HB

6.2.6.3>; Logical DB Name : 輸入主數據庫名maindb

6.3>; 如果所有選項全部為complete狀態,添加數據庫

◆7. 在主數據庫服務器中執行

isql -Usa -P; -SHRB_HB

1>; use maindb

2>; go

1>; sp_reptostandby maindb,"ALL"

2>; go

1>; grant role sa_role to maindb_maint

2>; go

在備份數據庫服務器中執行

isql -Usa -P; -SHRB_HB_REP

1>; use master

2>; go

1>; sp_addlogin maindb_maint,maindb_maint_ps,@defdb="maindb"

2>; go

1>; use maindb

2>; go

1>; sp_adduser maindb_maint

2>; go

1>; grant role sa_role to maindb_maint

2>; go

◆8. 同步主庫HRB_HB和備份庫HRB_HB_REP的login和role、權限等,要保證兩臺機器的login id一致

◆9. 在rs_init中增加備份庫到復制中,選擇 add a database to the replication system

9.1>; Replication Server Information

9.1.1>; 輸入復制服務器名字HRB_REP

9.2>; Database Information

9.2.1>; SQL Server Name: 輸入備份數據庫服務器名HRB_HB_REP

9.2.2>; SA password : 輸入sa口令

9.2.3>; Database name: 輸入主庫名maindb

9.2.4>; Will database be replicated : 選擇Yes

9.2.5>; Is this a Physical Connection for Existing Logical Connection: 選擇Yes

9.2.6>; Logical DB Setup

9.2.6.1>; Is this an Active Connection or Standby Connection: 輸入standby

9.2.6.2>; Logical DS Name : 輸入主服務器名HRB_HB

9.2.6.3>; Logical DB Name : 輸入主數據庫名maindb

9.2.6.4>; Active DS Name : 輸入主服務器名HRB_HB

9.2.6.5>; Active DB Name : 輸入主數據庫名maindb

9.2.6.6>; Active Db sa password : 輸入主數據庫sa口令

9.3>; 如果所有選項全部為complete狀態,添加數據庫

◆10. 從主庫dump到備份庫load&online

◆11. 在復制服務器中恢復連接

isql -Usa -P -SHRB_REP

1>; resume connection to HRB_HB.maindb

2>; go

1>; resume connection to HRB_HB_REP.maindb

2>; go

◆12. 修改備份庫HRB_HB_REP的參數與主庫HRB_HB一致,鎖的數量最好要大于主庫。


發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 乌拉特中旗| 大邑县| 思南县| 枣强县| 濮阳市| 沅江市| 商城县| 米泉市| 清水河县| 昆明市| 综艺| 白河县| 隆子县| 凭祥市| 安康市| 全州县| 会昌县| 兴隆县| 抚宁县| 石首市| 偏关县| 黄大仙区| 会同县| 玛曲县| 体育| 正定县| 呼玛县| 西平县| 遂川县| 报价| 水富县| 隆昌县| 咸宁市| 牡丹江市| 锡林浩特市| 平陆县| 潜山县| 新邵县| 璧山县| 娱乐| 阿克苏市|