使用DB链接从一个DB插入到另一个DB

时间:2014-10-13 06:40:16

标签: sql database oracle

我正在尝试将记录从一个数据库复制到另一个数据库。以下是我的查询和我得到的错误:

INSERT INTO RDW.rdw_sdm_trader_sls_brn_cst_v
SELECT * from RDW.rdw_sdm_trader_sls_brn_cst_v@DB_DWHPRD_RDW
WHERE DIVISION_CODE = 'EH' and rownum <= 100

-

*Error at Command Line:4 Column:0*        
*Error report:*  
*SQL Error: ORA-01779: cannot modify a column which maps to a non key-preserved table*
01779. 00000 -  "cannot modify a column which maps to a non key-preserved table"*  
*Cause:    An attempt was made to insert or update columns of a join view which*
           *map to a non-key-preserved table.*  
*Action:   Modify the underlying base tables directly.*

0 个答案:

没有答案