Oracle Error ORA-23431: wrong state: string

Oracle Error Message

ORA-23431: wrong state: string

Reason for the Error

The routine was executed against a replicated object group that was in the wrong state.

Solution

Make sure that the replicated object group is in the state given in the error message.