Oracle Message ORA-22876 - this user-defined type is not allowed or it cannot be used in this context

ERRORthis user-defined type is not allowed or it cannot be used in this context
CAUSEAn attempt to create a kind of user-defined type which is not allowed, or an attempt to create table columns or use default constructor with a type on which these are not supported.
ACTIONEnsure that the type is permitted in this context.