ORA-22992 无法使用从远程数据表选择的LOB定位符

标签:
ora-22992错误处理ora-22992ora-22992错误详解 |
分类: Oracle数据库 |
一、错误信息
ora-22992
无法使用从远程数据表选择的LOB定位符。
二、原因分析
由于所查询的远程表 table 中包含大字段(BLOB)类型的字段,导致该错误发生。
三、解决方法
1、指定具体的字段名称
select col1,col2,col3 from tmp.table@dblink;
2、创建本地临时表,将数据插入到本地库表中,直接操作本地库表即可
drop table table;
create table table
as
select * from tmp.table@dblink;
3、在本地创建一张和dblink远程端相同的全局临时表,然后在查询临时表
--创建临时表:
create global temporary table tem_table(
col1 varchar2(20),
text clob
)on commit delete rows;
insert into tem_table select * from tmp.table@dblink;
本文参考资料:http://www.2cto.com/database/201207/140418.html