通過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