In my project we have used a table with CLOB column in Materialized Views by converting it using TO_CHAR so the resulting column is a VARCHAR2 with size of 4000 characters.
MAX(CASE WHEN BONG_NARR_TY = 'ADTX' AND TO_CHAR(BONG_NARR_TX) IS NOT NULL THEN BONG_NARR_TX END ) AS ADTX_OP_NARR,
Is it possible to have more than 4000 character in the view because when I skip
TO_CHAR
MAX(CASE WHEN BONG_NARR_TY = 'ADTX' AND BONG_NARR_TX IS NOT NULL THEN BONG_NARR_TX END ) AS ADTX_OP_NARR,
I get the following error.
SQL Error: ORA-00932: inconsistent datatypes: expected - got CLOB
00932. 00000 - "inconsistent datatypes: expected %s got %s"
The size of CLOB is 8Gb but because of View I'm restricted to 4Kb :)