Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

PLS-00329: schema-level type has illegal reference to

457764Oct 2 2005 — edited Oct 2 2005
I am trying to create a PL/SQL Package which needs a table type which needs to be defined at schema level. The type refers to a table across another schema.

I am getting an error as below when I try to create the Type. What is wrong?
My DBA provided me reference access which I see in the dba_tab_privs table as below. Is there some other privilege which is still missing please help.

READ SCOTT ORDERLINES SCOTT REFERENCES YES NO


CREATE TYPE type_tab is TABLE of scott.orderlines%ROWTYPE;

Warning: Type created with compilation errors.

show errors;
Errors for TYPE TEST_TAB:
LINE/COL ERROR
-------- -----------------------------------------------------------------
0/0 PL/SQL: Compilation unit analysis terminated
1/32 PLS-00329: schema-level type has illegal reference to
BAAN.TTDSLS401100
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 30 2005
Added on Oct 2 2005
5 comments
14,513 views