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!

Creating a collection in schema level using %ROWTYPE

715920Jun 2 2011 — edited Jun 2 2011
Dear all,
is it possible to create a record of collection in schema level using %ROWTYPE? I try to do this:
SQL> create or replace type some_type is table of hr.employees%rowtype;
  2  /

Warning: Type created with compilation errors.

SQL> sho err
Errors for TYPE SOME_TYPE:

LINE/COL ERROR
-------- -----------------------------------------------------------------
0/0	 PL/SQL: Compilation unit analysis terminated
1/31	 PLS-00329: schema-level type has illegal reference to
	 HR.EMPLOYEES
I was complaining about "illegal reference to the table hr.employees (I used sample hr schema). Any ideas?

best regards,
Val
This post has been answered by Billy Verreynne on Jun 2 2011
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 30 2011
Added on Jun 2 2011
5 comments
7,155 views