oracle "ORA-22992: 无法使用从远程表选择的 LOB 定位器,database link

"ORA-22992: 无法使用从远程表选择的 LOB 定位器
解决办法:
可以先创建一个临时表,然后把远程有LOB字段的表克隆到临时表中,然后再进行链接操作
1.本地创建临时表
    
create global temporary table photo_temp as select * from photo ;

2.用database link导入远程数据到临时表
insert into photo_temp select * from photo@photo_link;--不要commit;否则临时表中数据消失

3.把临时表数据插入到永久表中:
insert into photo select * from photo_temp;
commit;


黑色头发:http://heisetoufa.iteye.com/

你可能感兴趣的:(oracle)