简体   繁体   English

oracle插入查询在dblink上运行缓慢

[英]oracle Insert into query is running slow over dblink

I have aa simple insert into query running 我在查询运行中有一个简单的插入

INSERT INTO SchemaA.tableA@server2 (col1,col2,col3,col4,col5
 ) 
SELECT col1,col2,col3,col4,col5 FROM SchemaA.tableA; 

Here i cannot ftp/sftp the file to target server, only option is to somehow optimize query over dblink. 在这里,我无法将文件ftp / sftp到目标服务器,唯一的选择是以某种方式通过dblink优化查询。 Any pointers on how this can be done. 关于如何做到这一点的任何指示。 Both are oracle servers. 两者都是oracle服务器。

Note: I tried adding append hint to the insert but dint make much difference. 注意:我尝试将insert提示添加到插入内容中,但dint却有很大的不同。

Worked with addition on hints on the query. 处理了有关查询提示的其他内容。

Will be helpful if you have gather stats on the target side. 如果您在目标端收集了统计信息,将会很有帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM