My Oracle Support Banner

ORA-00600 Argument [psdmsc.c: Spawned Type Invalid] Raised Compiling Pipelined Function (Doc ID 1185303.1)

Last updated on FEBRUARY 08, 2019

Applies to:

PL/SQL - Version 10.2.0.4 to 11.2.0.1 [Release 10.2 to 11.2]
Information in this document applies to any platform.
***Checked for relevance on 02-Sep-2010***


Symptoms

The error
ORA-00600: internal error code, arguments: [psdmsc.c: spawned type invalid], [], [], [], [], [], [], []
is raised when compiling a pipelined function returning a PL/SQL table of table%ROWTYPE, in the following scenario:
- the table referenced in table%ROWTYPE is owned by a different schema than the function,
- there is another function in another schema having the same name as the failing function,
- this 'other function' refers to the same table as the failing function,
- this 'other function' is either in the same schema as the table or in a different one.

An example of test case is

drop user USER1 cascade;
drop user USER2 cascade;
drop user USER3 cascade;

create user USER1 identified by PWD;
grant connect, resource to USER1;

create user USER2 identified by PWD;
grant connect, resource to USER2;

create user USER3 identified by PWD;
grant connect, resource to USER3;

connect USER1/PWD
create table ta_table ( id number , value varchar2(100) );
grant select on ta_table to USER2;
grant select on ta_table to USER3;

connect USER2/PWD
create or replace package tb_pkg as
type ta_tab is table of USER1.ta_table%rowtype;
function f_ta return ta_tab pipelined;
end;
/
show errors

alter package tb_pkg compile;

connect USER3/PWD
create or replace package tb_pkg as
type ta_tab is table of USER1.ta_table%rowtype;
function f_ta return ta_tab pipelined;
end;
/
show errors

alter package tb_pkg compile;

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.