Oracle Error ORA-02204: ALTER, INDEX and EXECUTE not allowed for views

Oracle Error Message

ORA-02204: ALTER, INDEX and EXECUTE not allowed for views

Reason for the Error

An attempt was made to grant or revoke an invalid privilege on a view.

Solution

Do not attempt to grant or revoke any of ALTER, INDEX, or EXECUTE privileges on views.