Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> problem using user-defined table types and cursors
I am trying to compile the following stored procedure code:
but I get the error
Line # = 19 Column # = 66 Error Text = PL/SQL: ORA-00902: invalid datatype
for the line:
OPEN v_ref_cursor FOR SELECT user_id from TABLE (CAST (t_id AS
id_type));
the problem (column #=66) is id_type
i am trying to do a bulk-read of the user_id column from a table returned by the function (get_acl_accounts(userId) into a table of type id_type and then open a cursor on it.
(SELECT DISTINCT user_id FROM TABLE ( account.get_acl_accounts(userId)));
/* LINE 19 */ OPEN v_ref_cursor FOR SELECT user_id from TABLE (CAST (t_id AS id_type));
END update_acl_addresses_proc; Received on Thu Feb 23 2006 - 16:29:52 CST