oracle通过dblink跨库迁移数据
作者:互联网
创建连接:
create database link PMSUATTMP
connect to spmsadmin identified by "spmsadmin"
using '(DESCRIPTION=
(ADDRESS=(PROTOCOL=tcp)(HOST=10.63.29.36)(PORT=1531))
(CONNECT_DATA=(SERVICE_NAME=pms))
)';
复制数据:
insert into sms_solution_lex_2020
(id, loginname, article)
select * from spmsadmin.sms_solution_lex_2020@PMSUATTMP;
insert into sms_solution_tuofu_2020
(id, projectnumber, create_by, projectname, representativeoffice, representativeofficetype, industry, solutiontype, product, sumtime, status)
select * from spmsadmin.sms_solution_tuofu_2020@PMSUATTMP;
commit;
删除链接:
DROP DATABASE LINK PMSUATTMP;
标签:PMSUATTMP,跨库,into,sms,solution,spmsadmin,dblink,2020,oracle 来源: https://blog.csdn.net/qq_40841733/article/details/114385674