I'm looking into the best way of masking data for testing of a migration from legacy on premise Oracle EBS apps to Oracle HCM in the cloud. One option is to mask the HDL format files which are produced by the Extract and Transform process, prior to loading into Oracle HCM. The files can contain multiple record types, prefaced by a metadata row. Obviously, I don't want to unintentionally end up masking the metadata row.
I know how to use multiple FDM layout files, to define multiple record types within one file. But only to identify one field as the RECTYPE and in this case, it would have to be a composite of eg MERGE and WORKER, to avoid masking the metadata. I've also seen on separate thread on Conditional File Masking, using a WHEREASSUBSET, which could perhaps be used in combination with a RECTYPE of MERGE. Not sure if it's the most elegant and efficient way though:
Example HDL file:
METADATA|Worker|SourceSystemOwner|SourceSystemId|PersonNumber|EffectiveStartDate|EffectiveEndDate|BloodType|CorrespondenceLanguage|StartDate|DateOfBirth|DateOfDeath|CountryOfBirth|RegionOfBirth|TownOfBirth|ActionCode|PersonDuplicateCheck
MERGE|Worker|EBS_UK|PER_PERSON_100|100|1993/07/03|4712/12/31|||1993/07/03|1959/05/03|||||HIRE|ORA_LN_FI_DOB_NID
MERGE|Worker|EBS_UK|PER_PERSON_105|105|1996/01/08|4712/12/31|||1996/01/08|1943/10/29|||||HIRE|ORA_LN_FI_DOB_NID
MERGE|Worker|EBS_UK|PER_PERSON_106|106|1995/03/06|4712/12/31|||1995/03/06|1960/07/13|||||HIRE|ORA_LN_FI_DOB_NID
MERGE|Worker|EBS_UK|PER_PERSON_648|648|2001/01/16|4712/12/31|AB-||2001/01/16|1962/02/24|||||HIRE|ORA_LN_FI_DOB_NID
METADATA|PersonLegislativeData|SourceSystemOwner|SourceSystemId|PersonId(SourceSystemId)|EffectiveStartDate|EffectiveEndDate|LegislationCode|MaritalStatus|MaritalStatusDate|Sex
MERGE|PersonLegislativeData|EBS_UK|PER_LDG_100|PER_PERSON_100|1993/07/03|4712/12/31|GB|M||M
MERGE|PersonLegislativeData|EBS_UK|PER_LDG_105|PER_PERSON_105|1996/01/08|4712/12/31|GB|S||F
METADATA|PersonName|SourceSystemOwner|SourceSystemId|PersonId(SourceSystemId)|EffectiveStartDate|EffectiveEndDate|LegislationCode|NameType|FirstName|MiddleNames|LastName|Honors|KnownAs|PreNameAdjunct|PreviousLastName|Suffix|Title
MERGE|PersonName|EBS_UK|PER_NAME_100|PER_PERSON_100|1983/07/03|4712/12/31|GB|GLOBAL|Fred|Jeremy|Bloggs||||||MR.
MERGE|PersonName|EBS_UK|PER_NAME_105|PER_PERSON_105|1976/01/08|4712/12/31|GB|GLOBAL|Linda|May|Roberts||||||MISS
MERGE|PersonName|EBS_UK|PER_NAME_106|PER_PERSON_106|1985/03/06|4712/12/31|GB|GLOBAL|David|Reece|Gray||||||MR.
MERGE|PersonName|EBS_UK|PER_NAME_111|PER_PERSON_111|1967/06/02|4712/12/31|GB|GLOBAL|Jenny|Marie|Brown||||||MISS
------------------------------
Gary Johnson
------------------------------