Oracle Solution for Error ora-48244

Solution for Oracle Error ORA-48244

ORA-48244: Purge for Retention can't be called while in an Query

What triggered the Error:

A query is already running - purge for retention can't be invoked

What should we do to fix it:

Fix call sequence