Oracle Error ORA-30386: invalid SQL statement for DECLARE_REWRITE_EQUIVALENCE

Oracle Error Message

ORA-30386: invalid SQL statement for DECLARE_REWRITE_EQUIVALENCE

Reason for the Error

Either the source or destination statement is NULL

Solution

Verify both source and destination statement are valid