Oracle Error ORA-30731: scope constraint not allowed on nested table column when the nested table is being created

Oracle Error Message

ORA-30731: scope constraint not allowed on nested table column when the nested table is being created

Reason for the Error

An attempt was made to define a scope constraint on a nested table column when the nested table is being created.

Solution

Do not specify a scope constraint on a nested table column when creating it. Instead, specify it using the ALTER TABLE statement.