Chinaunix首页 | 论坛 | 博客
  • 博客访问: 91726048
  • 博文数量: 19283
  • 博客积分: 9968
  • 博客等级: 上将
  • 技术积分: 196062
  • 用 户 组: 普通用户
  • 注册时间: 2007-02-07 14:28
文章分类

全部博文(19283)

文章存档

2011年(1)

2009年(125)

2008年(19094)

2007年(63)

分类: Sybase

2008-04-11 20:26:03

来源:赛迪网    作者:Alizze

前言:

◆基于整库复制(warm standby)

◆复制服务器名字 : HRB_REP

◆主数据库服务器和主库HRB_HB.maindb to备份数据库服务器和备份库HRB_HB_REP.maindb

Sybase的复制步骤:

◆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
阅读(646) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~