Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

ORA-22992, Can select through db link, but can't put result set into a table.

3903459Sep 15 2020 — edited Sep 15 2020

I have a SQL statement like:

Select a.m, a.n, a.o, a.p, b.q, b.r, b.s, c.t, c.u,c.v

From a@remote a left join b@remote b on b.m=a.m and b.n=a.n

            Left join c@remote c on c.m=a.m and c.m=a.n

Where a.yr=2019

            a.class=1

order by a.m

table “a” and “c” don’t have LOB fields, table “b” has a field “Ldesc” which is CLOB, But it is NOT in the select list.

When I ran select statement by itself, the result returns. But if I want to put result set into a table either using “create table….as..” or “insert into …” before the same select statement, I will get ORA-22992 error. What caused this?

Local version :

Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production

Remote version:

Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production

Comments
Post Details
Added on Sep 15 2020
6 comments
1,406 views