GBase 8a
适配迁移
文章

数据推送dblink配置

发表于2024-07-31 21:22:2246次浏览0个评论

1.dblink服务器增加1个数据源配置文件:
    A集群_to_B集群.properties(数据源为A集群)

2.B集群创建1个dblink使用上述配置文件:
    create database link link_from_A集群 connect to '' identified by '' using 'A集群_to_B集群';
    
3.dblink服务器增加1个数据源配置文件:
 push_A集群_to_B集群.properties(数据源为B集群)

4.A集群创建1个dblink使用上述配置文件:
    create databaase link push_A集群_to_B集群 connect to '' identified by '' using 'push_A集群_to_B集群'

5使用方法
 a、建表
     passthrough link  using push_A集群_to_B集群 'create table xxxxx';
 b、推数
     从A集群推送数据至B集群中
     passthrough link push_A集群_to_B集群 using  'insert into xxxxx select * from xxxxx@link_from_A集群';

评论

登录后才可以发表评论