ORA-03171: Recovery was terminated during query execution
Cause:
Recovery was terminated. A query can ocassionally deadlock when recovery is terminated because it needs a block with changes that are made after the point at which recovery was terminated.
Action:
Retry the query. Avoid cancelling recovery on standby.