"ORA-22992: cannot use LOB locators selected from remote tables" error message
while selecting from table over database link having blob data type column.
Cause:
LOB columns referenced over dblink together with other columns.
From Oracle documentation:
"In statements structured like the preceding examples, only standalone LOB columns are allowed in the select list".
Solution:
In order to select into or CTAS from remote table containing LOB field (CLOB in my case), you must insert without selecting LOB column and then making an update only selecting LOB column.
update myschema.mytable t1
set lob_column=(select lob_column from myschema.mytable@REMOTE_LIVE t2
where t1.id=t2.id);
It is also strange that; below statement is not working:
select lob_column from myschema.mytable@REMOTE_LIVE
Thanks to
| user628981 |
http://forums.oracle.com/forums/thread.jspa?messageID=1252302
No comments:
Post a Comment