Simple function/procedure in the data mask

Hello
Y at - it a simple method to hide the data.

I have data stored in the tables of my base. I need to create a flatfile and send these data to the other Dept. But there are some important data like credit card, first name and last name must be masked when sending outbound flat file.

What I use dbms_crypto for this or other simple methods are there for a time hiding?
If I use dbms_crypto and if I have a column x varchar2 (100), will I get similarly data length varchar2 (100) after masking?

Thank you
Manoi.

Well, you could do something like this:

SQL> select t.first_name
  2  ,      t.last_name
  3  ,      lpad('*', length(t.first_name), '*') masked_first_name
  4  ,      lpad('*', length(t.last_name), '*') masked_last_name
  5  from   hr.employees t
  6   where  rownum <=5;

FIRST_NAME           LAST_NAME                 MASKED_FIRST_NAME         MASKED_LAST_NAME
-------------------- ------------------------- ------------------------- -------------------------
Ellen                Abel                      *****                     ****
Sundar               Ande                      ******                    ****
Mozhe                Atkinson                  *****                     ********
David                Austin                    *****                     ******
Hermann              Baer                      *******                   ****

Tags: Database

Similar Questions

  • Simple JavaScript to set the date

    Hello

    My simple JavaScript to fix the date runs in Acrobat Pro, but when I open the same document the reader he sets the date, but it fails with a pop off getField error dialog box... Here's the error tracking script...

    function populate_date()

    {

    var f = this.getField ("ToDay_Date");

    If (! f.value) f.value = util.printd ("d/m/yyyy", new Date());

    }

    populate_date(); call my function

    Above scripts executed when the document is opened. As a Pro, it is stored under Tools/JavaScripts/Document JavaScript...

    When I open it in the drive then I get the following while he dates the date presented too!

    The built-in functions of EScript Acrobat Version 11.0
    Acrobat SOAP 11.0

    TypeError: this.getField is not a function
    2:folder - level: App:Search Script.js

    I have not put right that I get this error...

    Kind regards

    Jeff P.

    I don't understand what you're talking about... The error message made clear reference to a script of level of the folder called 'search Script.js'.

    You must look for the source of the problem here.

  • A simple example of filling the data from Json to a ListView.

    I want a simple example to inflate a listview with Json data.

    Examples of the sample do not work

    as we have a code example

    App.cpp

    App::App()
    {
        Page *root = new Page;
        ListView *listView = new ListView;
    
        // Create the data model, specifying sorting keys of "firstName" and "lastName"
        GroupDataModel *model = new GroupDataModel(QStringList() << "firstName"
                                                   << "lastName");
    
        // Create a JsonDataAccess object and load the .json file. The QDir::currentPath()
        // function returns the current working directory for the app.
        JsonDataAccess jda;
        QVariant list = jda.load(QDir::currentPath() +
                                 "/app/native/assets/employees.json");
    
        // Insert the data into the data model. Because the root of the .json file is an
        // array, a QVariant(QVariantList) is returned from load(). You can provide a
        // QVariantList to a data model directly by using insertList().
        model->insertList(list.value());
    
        qDebug()<<"the size of model is "<size()<<"\n";
    
        // Set the data model for the list view
        listView->setDataModel(model);
    
        // Set the content of the page and display it
        root->setContent(listView);    Application::setScene(root);
    }
    

    with the file employees.json of assets

    [
        {
            "firstName" : "Mike",
            "lastName" : "Chepesky"
            "employeeNumber" : 01840192
        },
        {
            "firstName" : "Westlee",
            "lastName" : "Barichak"
            "employeeNumber" : 47901927
        },
        {
            "firstName" : "Jamie",
            "lastName" : "Lambier"
            "employeeNumber" : 51239657
        },
        {
            "firstName" : "Denise",
            "lastName" : "Marshall"
            "employeeNumber" : 41239520
        },
        {
            "firstName" : "Matthew",
            "lastName" : "Taylor"
            "employeeNumber" : 01963597
        },
        {
            "firstName" : "Mark",
            "lastName" : "Tiegs"
            "employeeNumber" : 65321951
        },
        {
            "firstName" : "Karla",
            "lastName" : "Tetzel"
            "employeeNumber" : 03266987
        },
        {
            "firstName" : "Ian",
            "lastName" : "Dundas"
            "employeeNumber" : 29472012
        },
        {
            "firstName" : "Marco",
            "lastName" : "Cacciacarro"
            "employeeNumber" : 56446691
        }
    ]
    

    On the run, it shows a white screen with no list control.

    Thank you all for your answers, actually problem was not in the code. The problem is in the employees.json file I downloaded from developer site.

     

    [
        {
            "firstName" : "Mike",
            "lastName" : "Chepesky"      // after this ',' is missing
            "employeeNumber" : 01840192
        },
        {
            "firstName" : "Westlee",
            "lastName" : "Barichak"      // after this ',' is missing
            "employeeNumber" : 47901927
        },
        {
            "firstName" : "Jamie",
            "lastName" : "Lambier"    // after this ',' is missing
            "employeeNumber" : 51239657
        },
    
    ....................so on]
    

    means the error occurred when parsing json. Error very stupid . I have checked it sooner.

    So who uses this example json file in their applications. Please correct first, and then use.

     

  • Function to convert the Date?

    Hai Experts,

    I need to write a function,

    Input to the function will be a date format.

    If I give the date in DD/MM/RR format the return value must be DD/MM/RR HH24

    If I give the date format as MM/DD/RR the return value shall be MM/DD/RR HH24

    The function may return multiple lines.

    Kind regards

    Millar

    No need for a function. This will do:

    Select decode (, ' DD/MM/RR", to_char (sysdate, ' HH24 JJ/MM/RR ')," DD/MM/RR", to_char (sysdate," DD/MM/RR ' "),"invalid format") of ;

  • Approach on the data masking

    Hello

    My database is Oracle 10.2.0.4 on Solaris 8. I have a very sensitive area in my database which should be hidden. I mean - field - credit card number - should be stored hidden as same s/n can not see directly from the database by select < nom_de_colonne > in the table. The real value are replaced with hard to understand the type of value. The field is defined as VARCHAR2 (11) right now - as of now, it is stored in plain text, I need to change.

    Can help on what would be the right approach. I am for this task, not to worry about data etc. - Transparent encryption encryption at the level os - the scope of my task ETC is to ensure that no one can see the actual data from sqlplus. -do not even DBA. and application can show to everyone - I'm not you worry too much about it. But the data stored in db must be little hidden.

    What would be a good approach to this topic? I've read about dbms_crypto but the column that stores the encrypted data is the RAW data type. It seems that involving a lot of overhead in maintenance. Can one come up with own masking system and that would be good or is there a best practice on what can help?

    Thank you

    Published by: orausern on June 14, 2011 11:52

    Published by: orausern on June 14, 2011 11:53

    Published by: orausern on June 14, 2011 11:55

    Yes, it restricts access to the data. But as I said earlier, this is what it looks like you really want to do. You want to allow only one type of session to view data (sessions created by your application). You want to prevent other types of sessions to see the data (sessions created by developers using SQL * more). You can encode any restriction you would like in your policy VPD.

    Justin

  • Date function to push the dates of the year?

    is there a built in function to return all dates (regardless of format) between dates?

    Example:

    Select nomfonction (' 2009/06/01 ', ' yyyy/mm/dd), (' 2009/06/05 ', ' yyyy/mm/dd')
    of the double

    Results sought
    02/06/2009
    03/06/2009
    04/06/2009
    select  to_char(to_date('2009/06/01', 'yyyy/mm/dd') + level - 1,'yyyy/mm/dd')
      from dual connect by level <= to_date('2009/06/05', 'yyyy/mm/dd') - to_date('2009/06/01','yyyy/mm/dd') + 1
    /
    
    TO_CHAR(TO
    ----------
    2009/06/01
    2009/06/02
    2009/06/03
    2009/06/04
    2009/06/05
    
    SQL> 
    

    SY.

  • How 2 call a procedure with the data type for the parameter Ftree.NODE

    Hello

    in this link
    http://Andreas.Weiden.ORCL.over-blog.de/article-29307730.html


    Down in the page after you run the package, I created the procedure and it compiled successfully but when call PR_WTNS in trigger WHEN-TREE-NŒUD-SELECTED

    PROCEDURE PR_WTNE (i_ndNode IN Ftree.NODE);

    as

    PR_WTNE (i_ndNode Ftree.NODE);


    I got the error message; A wrong number or types of argument in the call

    pls I'm stuck can help any one?


    Kind regards

    Abdetu...

    Published by: Abdetu on October 24, 2010 02:36

    Published by: Abdetu on October 24, 2010 02:36

    YKou have to give a variable of type Ftree.NODE when calling this function. If called fromm a WHEN-TREE-NODE-SELECTED-trigger, use: SYSTEM. TRIGGER_NODE

  • Read file, reformat the data, write new file

    Oracle 11g PL/SQL.

    I have a need to read an existing file, reformat the drive and write to a new file format.

    My solution has been to read the file using utl_file and store it in an array of procedure1.  There is a column of data to hold 1000 bytes of data for each line of the file.

    Then in procedure2, read the data through a cursor column, with a certain logic and fill in the fields of a record type object by using the function substr on the data column.  The type of record object has about 80 columns, all TANK types.  The OUT of procedure2 parameter would be the type of record object.

    Then in procedure3, record object would be the parameter, and this recording would be used to write the new line of the file.  The problem I see now is that I can't convert the object record type a TANK in order to write the file.  So that would mean that I have to reference each of the 80 columns once again in procedure 3 and concatenate each for the parameter buffer utl_file.put_file.

    I don't want to assign values for columns of 80 exit more than once because that makes the code very long and detailed, so I thought that I assign values to the time in the record object, then pass the record object to the write file procedure.

    I'm looking for suggestions on a better design, or have I missed some very basic code design?

    Thank you.

    Thanks for all the great suggestions.

    The original file is from a COBOL program.  What I ended up doing was reference and readability, I have defined/filled all fields of provision of COBOL in my program and then concatenated fields during the construction of the output string.  It's a bit verbose, since the 80s fields appear twice, but the code is clear and easy to understand for support purposes.

    Thanks again for all the thoughtful suggestions.

  • Oracle Data Masking Pack with Oracle Standard Edition

    Hello
    I found on the Oracle data masking Pack in the oracle web site:

    https://shop.Oracle.com/pls/ostore/f?p=dstore:product:3439101311204935:no:RP, 6:P6_LPI, P6_PROD_HIER_ID:4509221213031805719914, 114180807059101824910944 & tz = - 5:00

    I would like to know if the data masking Pack Oracle can work with Oracle Standard Edition, which is the license we have in my office. We don't plan to upgrade to Oracle Enterprise Edition.

    I know that Oracle Enterprise Edition with the functionality of datamasking. Standard Edition does not.

    I asked this question here because I chat with an agent of sale to Oracle's web site, but has not answered my question.

    Published by: user521219 on November 17, 2011 11:20

    Yes, it's an add-on but only in Enterprise Edition.

    Read this book to see what functions are standard and optional:

    http://www.Oracle.com/us/products/database/039449.PDF

  • Hide the Data - Format library

    Experts,

    When you use the option "Column of the Table" in library Format, what it means and what is its role?

    Please let me know.

    Thank you

    General response: the 'formal library' is related to the 'data masking Pack' and it is the repository of the masks of format that have been defined. These masks can then be applied when you use the masking of data, sensitive, mask data.

    To the original poster: as I understand it, "Column of the Table" option indicates that the source of the data mask will be rather than, say, a function that generates a column of table data.

    You can find a walkthrough OTN where a table column is used here:

    http://www.Oracle.com/WebFolder/technetwork/tutorials/OBE/em/emgc10205/data_masking/datamask.htm

    Maybe this helps a little,

    Mark

  • The call PLSQL stored procedure from the HTML form Submit button

    Hello

    I'm having a little difficulty with the appellant a stored procedure using a html form button. Here is the code I have right now...
    HTP.PRINT('<form action=ZWGKERCF.P_confdelete>');
    HTP.PRINT('<input type=''submit'' value='' Yes '' onClick=''document.getElementById("mypopup").style.display="none"''>');
    HTP.PRINT('</form></div>');
    Here's the question - I need to find a way to pass variables to this stored procedure, so he knows what data to operate on. This stored procedure removes the data in a specific database record and I have to pass three variables to this procedure to run.

    Allows to call class_number, term, conf will impact these three variables and the data will be deleted and the person will see a confirmation screen once the deletion request completed.

    So ideally I would want: ZWGKERCF. P_confdelete (class_number, term, conf), then the stored procedure would deal with the rest!

    Seems simple enough, but I don't know how to make this happen... My thoughts were:

    Transmit data to this (the three areas that I need) html form in hidden variables. Then somehow pass them using the POST method to the procedure and read using GET?

    Can someone clarify what the best way to do it? I feel that its little something miss me you - but I would really like an idea expertise :-)

    Thank you very much in advance!

    -Jeff

    >
    ...

    I would like to assign a variable, the duration, the conf crn all variables in this procedure and then act on them accordingly.

    But you already have it in a variable. If you want you can assign the value again to another variable.

    example of

    PROCEDURE P_confdelete(CRN NUMBER,TERM NUMBER, CONF VARCHAR2)
       IS
          v_crn number(38);
          v_term number(38);
          v_conf varchar2(1000);
    
      BEGIN
           HTP.PRINT('test1 '||crn||'/'||term||'/'||conf); 
    
          v_crn := crn;
          v_term := term;
          v_conf := conf;
    
          HTP.PRINT('test2 '||v_crn||'/'||v_term||'/'||v_conf); 
    
    END P_confdelete;
    
  • Write the data from multiple devices in columns

    Hi, I have a problem in writing the data of 2 devices I have currently (for pressure and temperature). I wanted to be written in 2 coloums, one for temperature and pressure for each produced data. What I have now is that the data written in the rows. Please help me on this.

    Also, I put the timestamp, but only time as hh/mm/ss data. would it be possible to produce both as in the graph, which is written as hh/mm/Scott (in microseconds)

    I have attached my labview program, and also the current save file I receive, and format also required that I really want.

    Thank you

    Hello

    1 use a function table 2D transposes, before you write the table of function "spreadsheet table.

    2. use the format of the exact time in the string of Format date/time function. Use the assistance provided for this function to get the date and time format you need

    3. the wiring is not good. Your 'open file' function is placed somewhere after writing in the file structure. follow the flow of data.

    Tips: you can consize your block diagram and place your functions and blocks in order, wire the neater.

  • How to print the date on every page on d110 printer

    Unable to set the print date.

    The function to print the date on a print would be left to the application you are printing from.  For example, in the Firefox browser this would be defined in Page layout.

  • How always display the date with taskbar buttons activated in widows 8?

    It's got to be average, just to be there. Even using the buttons small taskbar, it is actually enough space to have always the date and stacked. I would be well with them, next to each other also. I don't really understand why the date masks even as it would fit really well. I'm fine with the help of a third party program if necessary. I already have the classic interface installed because microsoft somehow forgot to add the menu start Windows 8.

    There are several strange suggestions and wonderful here for you to play with.  Make sure that you first create a system restore point.

    Windows 7 - display date using small icons
    http://superuser.com/questions/89628/Windows-7-display-date-using-small-icons

    http://www.Google.com.au/search?q=use+small+taskbar+but+have+date+and+time&SourceID=IE7&RLS=com.Microsoft:-to THE: IE-address & ie = & oe = & gws_rd = cr & redir_esc = & ei = 4L7sUaPiKKWSiQe2_IFQ

  • Fill in the Date field to CurrentDate if not entered by the user

    I have this simple condition to enter the Date to current date if it is not entered by the user. In the same way with the time of day. I tried writing below the lines in the document of the rule, but it does not work: -.

    DATE = current date if

    DATE is not known

    Can someone help me with this? I have a screen where the field belongs to several questions. If not entered by the user, the system fills when the user presses the submit button.

    3 things to consider:

    • If the user does not provide an answer to a question of date attribute, this attribute date will be uncertain, not unknown;
    • You cannot define an attribute based on itself - which is a loop of logic and modules does not compile
    • You cannot set a conditionally non Boolean attribute without a rules table.

    My solution would be to ask the user for the value of another attribute (DATE of the USER) and then use it to determine the value of DATE inside a table of rules, as follows:

    DATE

    the date of the day

    The USER DATE is uncertain

    THE USER DATE

    in the opposite case

    See you soon,.

    Brad.

Maybe you are looking for

  • remote control HP w / dv7-4285dx

    I have a laptop dv7-4285dx, and I recently went out and bought the HP Remote.  It was cheap, is not a big problem if she is simply not compatible. I am running Windows 7 64 bit.  I placed the battery in the remote control yesterday, closed up and ass

  • Photosmart 6510: PS 6510 won't print black

    Printer cannot print black ink. I ran the cycle of cleaning several times. The cartridge is new. Gets moderate use with periods where it is not used. The printer is out of warranty. Mention was made in another series of posts on this problem that the

  • Update failure code error 0x800B0 100

    This nVidia GeForce update keeps not everyday on automatic update of Windows.  How can I do work or, Alternatively, just stop keep presenting themselves again.

  • mode not supported

    How can I re, start my computer with the message mode not supported - XP, thanks

  • New to computers/Questions

    Hello. I don't know much about the stuff advanced on computers, but I've done the research and -Is a free upgrade? Some games sites say update your ios, bios, the video card, sound card ect. Did I download website for free? If it's free, nobody knows