Chinaunix首页 | 论坛 | 博客
  • 博客访问: 345531
  • 博文数量: 135
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 1106
  • 用 户 组: 普通用户
  • 注册时间: 2013-03-20 09:56
文章分类

全部博文(135)

文章存档

2017年(3)

2016年(18)

2015年(69)

2014年(39)

2013年(6)

我的朋友

分类: Sybase

2014-12-05 12:33:25

1.从spx转mpx
create multiplex server w1_zdc database '/sybase/test/example.db' host 'w1' port 5555 role writer status included;
(info)此时执行命令的节点变为coordinator节点。

(info)w1_zdc为添加的辅助节点的数据库实例名

(info)/sybase/test/example.db为辅助节点catalog存放路径。

(info)w1为辅助节点hostname

(info)5555为辅助节点数据库监听端口
2.更新当前数据库实例的hostname
alter multiplex server coordinator_test host 'coordinator' port 5555;
(info)将数据库实例coordinator_test的hostname更新为coordinator
3.将数据库实例踢出集群
alter multiplex server w1_test status excluded;
4.当辅助节点数据库长时间停止会处于exclude状态,此时需要拉进集群
alter multiplex server w1_test status included;
5.为辅助节点增加sytem-temp文件
alter dbspace IQ_SYSTEM_TEMP add file temp2 '/sybase/temp2';
6.删除system-temp文件
alter dbspace IQ_SYSTEM_TEMP drop file temp2;
7.查询表空间在各个节点状态
sp_iqmpxfilestatus
8.查询集群状态
sp_iqmpxinfo;
9.查询集群中system-temp状态
sp_iqfile;

阅读(1586) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~