Oracle学习笔记:ORA-22992 cannot use LOB locators selected from remote tables

  通过DB_LINK访问远程表的时候出现 ORA-22992: cannot use LOB locators selected from remote tables 错误。

  原因:因为表中含有clob字段,在统计库中用到这个表。

  如果我们用不到这个clob字段,不访问这个clob字段就可以。

  具体方法有两种:

  1.直接登录远程服务器,在服务器上进行 select 查找;

  2.在本地建立中间临时表,抽取部分数据;

-- table_xxx@space
select * from table_xxx@space;  -- 无法直接查询

create table tmp_test as
select * from table_xxx@space where rownum <= 10;

select * from tmp_test; -- 可以查询

END 2018-09-11 09:50:44

posted @ 2018-09-11 09:51  Hider1214  阅读(5083)  评论(0编辑  收藏  举报