Oracle Database Error Code ORA-30731 Description :
scope constraint not allowed on nested table column when the nested table is being created
Error Cause:
An attempt was made to define a scope constraint on a nested table column when the nested table is being created.

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