Oracle Error ORA-32730: Command cannot be executed on remote instance

Oracle Error Message

ORA-32730: Command cannot be executed on remote instance

Reason for the Error

DIAG is not registered with DIAG Group Service

Solution

Issue the command without the cluster database syntax