DELETE END DATED RECORDS IN HZ_PERSON_PROFILES TABLE

(Doc ID 2424390.1)

Last updated on JULY 19, 2018

Applies to:

Oracle Trading Community - Version 12.1.3 and later
Oracle Receivables - Version 12.1.3 and later
Information in this document applies to any platform.

Goal

Qn1:On : 12.1.3 version, Others

It is observed there are many records end dated in HZ_PERSON_PROFILES for multiple parties and it would be desired to delete these records.
The following query has identified the records which are having this issue and there are xxxxx party_ids records having multiple end dated record in HZ_PERSON_PROFILES.

select party_id, count(*)
from HZ_PERSON_PROFILES
where EFFECTIVE_END_DATE is not NULL
group by party_id
having count(*) > 1;

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms