My Oracle Support Banner

Error Ora-32331 Type Is Incompatible With The Master Site (Doc ID 1268374.1)

Last updated on AUGUST 04, 2018

Applies to:

Oracle Server - Personal Edition - Version: 10.2.0.1 to 11.2.0.2 - Release: 10.2 to 11.2
Information in this document applies to any platform.

Symptoms


While trying to creating a Materialized View where an XML type or SDO_GEOMETRY datatype are involved and the master site version is different then the materialized view siteversion, then the error ORA-32331 occurs.

For example:
Master Site: 11.1.0.6
MView Site: 11.2.0.2

-- ===============
-- Simple testcase
-- ===============
-- Problem:
-- ORA-32331: type "MDSYS"."SDO_GEOMETRY" is incompatible with the master site
-- Unable to create a materialized view containing a SDO_GEOMETRY datatype column on a
-- 11.1/10g database referencing a master on a 11.2 database
--
-- Database 11g (11.2.0.2)


Create table TBL_WITH_SDO
(col_num number(10) NOT NULL,
col_sdo MDSYS.SDO_GEOMETRY
)
/

Alter table TBL_WITH_SDO add constraint TBL_WITH_SDO_PK primary key(col_num);

--
-- Database 10g (11.1.0.6)
--
DROP MATERIALIZED VIEW MV_WITH_SDO;

CREATE MATERIALIZED VIEW MV_WITH_SDO
REFRESH COMPLETE AS
SELECT * FROM TBL_WITH_SDO@MIG11202.WORLD
/


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
  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.