I have created a type in Oracle using
create or replace type array_type
as varray(6) of varchar2(20);
Now I want to use this as a variable in my stored procedure. I tried using it as below,
create or replace PROCEDURE test_proc()
IS
my_type array_type;
BEGIN
....
This gives me error
Error(124,24): PL/SQL: ORA-00932: inconsistent datatypes: expected CHAR got ARRAY_TYPE
How do I use this custom type as a variable in my stored procedure?