Oracle Solution for Error ora-22876

Solution for Oracle Error ORA-22876

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

What triggered the Error:

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.

What should we do to fix it:

sure that the type is permitted in this context.