热门关键字:  ubuntu  分区  函数  Fedora  linux系统进程

教你快速掌握Sybase整库复制的具体步骤

来源: 作者: 时间:2008-06-03 Tag: 点击:

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一致,锁的数量最好要大于主库。


上一篇:没有了
下一篇:Sybase ASE for Linux安装过程及安全配置
最新评论共有 0 位网友发表了评论
发表评论
评论内容:不能超过250字,需审核,请自觉遵守互联网相关政策法规。
用户名: 密码:
匿名?
注册