You are on page 1of 2

select serv_id from i_serv where acc_nbr in('1410446660736') and STATE !

='2HB';
,'1410333900475','1410333900466','1410333875362' 1410330994195
select * from rc_route where member_id=995900913534780147 ;
66

select SERV_PRODUCT_ID from i_serv_prod where SERV_ID in (


993600912575401217
) ;

select * from i_serv_prod_attr whereSERV_PRODUCT_ID IN (993400913146699154,


993400913554446653, 993400913146699151, 993400913383203718, 993400913146699153,
993400913146699155, 993400913697271929, 993400913554446654, 993400913146699150,
993400913625021504, 993400913146699152);
同步计费内存

1:根据号码比较三张表(i_serv、billing_base_info、serv_state_attr)中的状态与前台 CRM 的状态


比较,

2:修改数据库状态

update i_serv set state = '2HA' where serv_id = 997100912345316402 and acc_nbr =
'???????' and id = xxxxxxxxxxx;
update billing_base_info set acc_state_id = '2HA' where serv_id =
997100912345316402 and acc_nbr = '???????' and id = xxxxxxxxxxx;
update serv_state_attr set state = '2HA' where serv_id = 997100912345316402 and id
= xxxxxxxxxxx;

3:修改内存状态:
从 10.142.233.199 主机 ssh zhuchao@10.142.233.203

融合 4A 登录 10.142.233.203 主机,跳转到 ssh iot@10.142.233.7 password:Iot123456!


ssh -p 22 -oHostKeyAlgorithms=+ssh-dss iotDev@10.142.90.1 password:
N0wK4JVRIB1hXu80#

进入目录

cd huanghu/datasync/package/bin

vim 一个当前日志的文件,该文件内容为 billing_base_info 表中的 ID,

sh syncbyid.sh 0829i_prod_offr_obj_inst.txt i_prod_offr_obj_inst


sh syncbyid.sh 0829i_prod_offr_inst.txt i_prod_offr_inst
sh syncbyid.sh 0829i_prod_offr_inst_attr.txt i_prod_offr_inst_attr

datafixnew.sh

回到数据库查找片区

select * from rc_route where member_id = '997100912345316402';

(该号码就是 serv_id)
208 跳转

根据片区查看属性 5,

计费 real 实时环境扩容后新的计费主机和片区的分布关系如下:
host_ip billing_node_id 片区 ID
=====================================================
real@10.142.233.208 1 1-3
real@10.142.233.209 2 4-6
real@10.142.233.210 3 7-9
real@10.142.233.211 4 10-12
real@10.142.233.212 5 13-15
real@10.142.233.215 6 16-18
real@10.142.233.216 7 19-21
real@10.142.233.217 8 22-24
real@10.142.233.218 9 25-27
real@10.142.233.219 10 28-30
real@10.142.233.162 11 31-33
real@10.142.233.163 12 34-36
real@10.142.232.39 13 37-39
real@10.142.235.104 14 40-42
real@10.142.232.55 15 43-45
real@10.142.235.105 16 46-48
real@10.142.235.106 17 49-51
real@10.142.235.107 18 52-54
real@10.142.235.108 19 55-57
real@10.142.235.109 20 58-60
real@10.142.235.110 21 61-63
real@10.142.254.47 22 64-66 新主机
real@10.142.254.48 23 67-69 新主机
real@10.142.254.49 24 70-72 新主机
real@10.142.254.50 25 73-75 新主机
real@10.142.254.51 26 76-78 新主机
real@10.142.254.52 27 79-81 新主机
real@10.142.254.53 28 82-83 新主机

You might also like