首页 > 其他 > 详细

【Teradata】配置PE和AMP(congfig和reconfig工具、vprocmanager)

时间:2019-03-07 16:34:46      阅读:235      评论:0      收藏:0      [点我收藏+]

The Reconfiguration and Configuration utilities are used to define the AMPs and PEs that operate together as a Teradata Database. (Configuration is described in an earlier chapter of this manual.)

1.config工具

(1)启动工具

cnsterm 6
start config
Started ‘config’ in window 1.
cnsterm 1
ctrl + c

(2)添加1个HOST、1个PE和4个AMP

begin config
add host hn = 1, ht = cop   //hostname和hosttype,后续必须添加对应PE
add pe 16381, hn = 1
add amp 0, cn = 3  //cluster number
add amp 1
add amps 2- 3, cn = 3
default cluster 4
end config
list
stop

【list | list pe | list amp | list cluster | list host 】

2.reconfig工具

Reconfiguration 要求没有用户登录,且系统是静止的。以重启数据库为终止。配置过程中,系统不可用。可以使用online和offline两种方式。

(1)登录工具

cnsterm 6
start reconfig
Started ‘reconfig’ in window 2.
cnsterm 2
ctrl + c

登录工具时,如报如下错误,使用vprocmanager工具将对应AMP状态改为offline

6164 NewReady AMPs which are not in New Configuration need to be DOWN 

//登录vprocmanager后使用如下命令:
set /v 0 to 10 offline

3.vprocmanager工具设定vproc状态

(1)启动工具

cnsterm 6
start vprocmanager
Started ‘vprocmanager’ in window 3.
cnsterm 3
ctrl + c

(2)status命令

【status | status dbs | status online | status notonline | status pde | status restart | status sysstate | status 0,1,2,3 to 10,8192 to 20000

技术分享图片

(3)设置vproc状态

set /v 0 to 10 offline 
set /v 1 online

技术分享图片

(4) 重启

RESTART

 

【Teradata】配置PE和AMP(congfig和reconfig工具、vprocmanager)

原文:https://www.cnblogs.com/badboy200800/p/10490322.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!