How to delete passivated operator records from pr_data_op_session table.
There are multiple records for same operator id. For some records “IsPassivated” column as ‘false’, and some records with “IsPassivated” column as ‘true’. So Records are getting huge in production environment. Now question is
What is the requirement to store the passivated operator records?
How to remove the passivated operator records from table?
You did not specify your version of Pega. Note that if you are seeing ORA-01795 error while pzClusterAndDBCleaner job is running then this is a known problem (o BUG-695023). This error occurs when there are more than 1000 requestors in IN clause of delete query which deletes records from presence table.
The pzClusterAndDBCleaner job scheduler was not able to cleanup data in pr_op_data session table due to the delete query formed to clean up this table throwing “ora-01795 maximum number of expressions in a list is 1000 oracle 19c” exception. This has been resolved by splitting requestor IDs into batches of 1000.
Fixed in:
8.5.6, 8.6.4, 8.7.2 and 8.8. You can read about it in the ‘Resolved Issues’ documentation.