Sybiq Mpx数据库操作相关

1720阅读 0评论2014-12-05 taohorse
分类:Sybase

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;

上一篇:使用dbisql工具连接IQ Server注意事项
下一篇:Sybiq Mpx启动报system lisence invalid