My Oracle Support Banner

Creation of Mview with connect_by_root fails with ora-30361 (Doc ID 331669.1)

Last updated on FEBRUARY 20, 2019

Applies to:

Oracle Database - Enterprise Edition - Version 10.1.0.2 and later
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
Oracle Cloud Infrastructure - Database Service - 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. 

Small test case describes and reproduces the problem. 

DROP TABLE tt1;
CREATE TABLE tt1 (
  cid number,  -- current ID
  pid number,  -- parent ID
  val number);
INSERT INTO tt1 VALUES (1, 0, .1); 
INSERT INTO tt1 VALUES (2, 1, .2); 
INSERT INTO tt1 VALUES (3, 1, .3); 
INSERT INTO tt1 VALUES (4, 1, .4); 
INSERT INTO tt1 VALUES (5, 2, .5); 
INSERT INTO tt1 VALUES (6, 2, .6); 
INSERT INTO tt1 VALUES (7, 4, .7); 
COMMIT;

create materialized view RR as
select connect_by_root cid cidt, val
   from tt1 connect by cid=prior pid

ORA-30361: unrecognized string type

 

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.