My Oracle Support Banner

ORA-1400 On Materialized View Fast Refresh With Not Null Clob (Doc ID 733027.1)

Last updated on OCTOBER 10, 2019

Applies to:

Oracle Database - Enterprise Edition - Version 9.2.0.1 to 11.1.0.6 [Release 9.2 to 11.1]
Oracle Database - Enterprise Edition - Version 11.2.0.3 to 11.2.0.3 [Release 11.2]
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Express Cloud Service - Version N/A and later
Oracle Database Exadata Cloud Machine - Version N/A and later
Information in this document applies to any platform.

Symptoms

NOTE: In the images and/or the document content below, the user information and data used represents fictitious data from the Oracle sample schema(s) or Public Documentation delivered with an Oracle database product.  Any similarity to actual persons, living or dead, is purely coincidental and not intended in any manner.

-- Problem Statement:
Master Table does have a NOT NULL CLOB Column and there is a Materialized View Log defined on the Master Table

SQL> desc TABLE_NAME
Name Null? Type
----------------------------------------- -------- ---------------------------
ID NOT NULL NUMBER(15)
COL1 NOT NULL NUMBER(15)
COL2 NOT NULL VARCHAR2(100)
COL3 VARCHAR2(100)
COL4 VARCHAR2(500)
COL5 VARCHAR2(500)
COL6 NOT NULL NUMBER(15)
COL7 NUMBER(15)
COL8 VARCHAR2(10)
COL9 NUMBER(15)
TEST_COL1 NOT NULL CLOB
COL10 CLOB
COL11 VARCHAR2(1000)
COL12 VARCHAR2(1000)
COL13 NUMBER(15)
COL15 NUMBER(15)
COL16 NUMBER(15)
COL17 NULL VARCHAR2(1)
COL18 NOT NULL DATE
COL19 NOT NULL NUMBER(15)
COL20 NOT NULL DATE
COL21 NOT NULL NUMBER(15)

A Distributed Materialized View is created as select * from Master Table and FAST Refreshable.

Fast Refresh fails with:

ORA-12008: error in materialized view refresh path
ORA-01400: cannot insert NULL into ("<USER_NAME>"."TABLE_NAME"."TEST_COL1")

Changes

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution
References

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.