Delphix Products

 View Only
  • 1.  Conditional data masking

    Posted 08-28-2019 08:56:00 AM
    ​With data masking, can we mask data with a condition, for example   in a table  IF col1='A'  Col2='XXXXX' else COL2='YYYYYY'
    It's possible to do that with a algorithm? or I have to do that with a postscript.

    Regards

    ------------------------------
    Kamel Bouzenad
    Community Member
    Higher Logic Community Members
    ------------------------------


  • 2.  RE: Conditional data masking

    Posted 08-28-2019 09:05:00 AM
      |   view attached
    Hi Kamel,

    Of course you can do that.
    Simply go to your Ruleset - klick pencil (EDIT) then go to Custom SQL.
    In CustomSQL Editor you can add almost every condition you want.
    See attachment

    Regards
    Marcin

    ------------------------------
    Marcin Kwasninski
    Technical Principal
    Spica Solutions
    ------------------------------



  • 3.  RE: Conditional data masking

    Posted 08-28-2019 10:11:00 AM
    ​Thanks Marcin for your answer, but can I put in this frame  an  "update <table>  set  <Column1>=<Value1> where <Column2>=<Value2>"  ?

    Regards

    ------------------------------
    Kamel Bouzenad
    Community Member
    Higher Logic Community Members
    ------------------------------



  • 4.  RE: Conditional data masking

    Posted 08-29-2019 01:49:00 AM
    Updates have to be done in pre/post scripts.
    Places above are for select and forming data from that select only.

    ------------------------------
    Karol Kobus
    Consultant
    Spica Solutions
    ------------------------------



  • 5.  RE: Conditional data masking
    Best Answer

    Posted 08-28-2019 09:25:00 AM
    Yes, you can.

    1. Create ruleset.
    2. Edit ruleset.
    3. Edit table.
    In there you have all options to filtering data of that table, which will be taken to masking in that ruleset.
    In there You can:
    a/ "Add Column" that will limit Delphix ME select to that columns. It will improve performance, as it wont collect whole table, and reduce amount of RAM needed for masking job.
    b/ "Edit Filter" there you can build condition for Delphix ME select. Like exclude nulls, etc.
    c/ "Join Table" if you need some condition depending on data from different table.
    d/ "Custom SQL" is a final state where you will see form of Delphix ME select that will be performed in 1st stage of masking job. It can be additionally modified for regexp/upper/etc. to shape data that will be used in masking as source.

    Before running any masking job, test that custom sql in SQL Developer, and you will see what data and in what form will be delivered for Delphix ME for masking.

    ------------------------------
    Karol Kobus
    Consultant
    Spica Solutions
    ------------------------------



  • 6.  RE: Conditional data masking

    Posted 08-28-2019 10:13:00 AM
    ​Thank you Karol for the Answer, I just test  a algorithm with a condition(filter) and it works fine

    ------------------------------
    Kamel Bouzenad
    Community Member
    Higher Logic Community Members
    ------------------------------