Delphix Products

 View Only
  • 1.  Masking Oracle External Tables

    Posted 11-18-2019 12:08:00 PM
    Has anyone tried to mask an Oracle external table ?

    ------------------------------
    Suzanne Lusardi
    IT Sr. Database Governance and Compliance Analyst
    Paychex
    ------------------------------


  • 2.  RE: Masking Oracle External Tables

    Posted 11-19-2019 05:04:00 AM
    Edited by Mouhssine Saidi 11-21-2019 07:14:44 AM

    Hi Suzanne ,

    Per definition oracle allows read-only access to data in external tables (they don' reside in the database), so to achieve your need you will have two options :

    - If the file format is supported by delphix masking :
      Mask the original file on wish the external table is based

    - If the file format isn't supported by delphix masking :
    Create a copy of external table on database using (create as select...), mask the table with delphix masking once done export the data out to the file on which the external table is base on
    Regards,

    Mouhssine  



    ------------------------------
    Mouhssine SAIDI
    Community Member
    Delphix Community Members
    ------------------------------



  • 3.  RE: Masking Oracle External Tables
    Best Answer

    Posted 11-19-2019 05:22:00 AM
    Edited by Michael Torok 11-19-2019 11:39:47 AM

    I think Mouhssine and I replied at the same time:)  Mouhssines advice is correct apart from one small step.

    "rerun the "create or replace command for the external table"" - this isn't necessary.  The external table is defined once and any changes to data in the external file will be seen when you query the table.  In actual fact there is no "create or replace" command.

    You only need to drop and recreate (or alter) the external table if the 
    structure of the external file changes.



    ------------------------------
    Matt Griffith
    Principal Consultant
    https://thedatalobby.kuzodata.com
    Kuzo Data
    ------------------------------



  • 4.  RE: Masking Oracle External Tables

    Posted 11-19-2019 07:07:00 AM
    Edited by Mouhssine Saidi 11-19-2019 09:21:34 AM

    Hi,

    Good remark Matt you're definitely right, omit the fact that the DDL is stored in the database.

    Could be true only in case of any definition change on the filed structure.

    Regards,

    Mouhssine



    ------------------------------
    Mouhssine SAIDI
    Community Member
    Delphix Community Members
    ------------------------------



  • 5.  RE: Masking Oracle External Tables

    Posted 11-20-2019 07:10:00 AM
    Thank you both.   We are in the planning stages at the moment.  I need to investigate the file type and will attempt your suggestions depending on whether the file type is supported or not.

    I will certainly update the thread based on our results to assist others.

    Best regards, Suzanne

    The information contained in this message may be privileged, confidential and protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify your representative immediately and delete this message from your computer. Thank you.





  • 6.  RE: Masking Oracle External Tables

    Posted 11-19-2019 05:15:00 AM
    Hi Suzanne,

    DML operations are not supported on Oracle external tables, therefore as you can guess, Delphix masking can not perform data changes to the external file using an external table definition.  You will see an error like:

    ORA-30657: operation not supported on external organized table​


    I suggest a workaround is to perform file masking directly on the external file.


    ------------------------------
    Matt Griffith
    Principal Consultant
    https://thedatalobby.kuzodata.com
    Kuzo Data
    ------------------------------