Unique identifier min 12 characters

I have a table with a numeric natural key and we need to send some information to an outside vendor, but don't want to send that natural key because of security/privacy concerns. We have pretty much decided to use a surrogate key. It could be numeric I suppose, but the requirements of the vendor is that it must be 12+ characters containing digits and A-F (hexadecimal essentially). I could use a GUID but there is a lot of data and the smaller the type the better. I have thought about converting the natural key to hex but A. the natural keys aren't always long enough to be at least 12 digits and B. that doesn't really mask the natural key very well - anyone with any hex knowledge can find the true ID easily.
So, if I were to generate a surrogate key it needs to be 12+ characters, hexadecimal characters only, and as small as possible with respect to storage space.
Any ideas?
Thanks!

if I were to generate a surrogate key it needs to be 12+ characters, hexadecimal characters only, and as small as possible with respect to storage space.
SQL> set numwidth 15
SQL> col s new_value s
SQL> select to_number ('100000000000', 'fmxxxxxxxxxxxx') s from dual
              S
17592186044416
1 row selected.
old: create sequence s_seq start with &s nocache
new: create sequence s_seq start with 17592186044416 nocache
SQL> create sequence s_seq start with 17592186044416 nocache
Sequence created.
SQL> select upper (to_char (s_seq.nextval, 'fmxxxxxxxxxxxx')) n
      from dual
connect by level <= 20
N                 
100000000000      
100000000001      
100000000002      
100000000003      
100000000004      
100000000005      
100000000006      
100000000007      
100000000008      
100000000009      
10000000000A      
10000000000B      
10000000000C      
10000000000D      
10000000000E      
10000000000F      
100000000010      
100000000011      
100000000012      
100000000013      
20 rows selected.

Similar Messages

  • The Group Policy Client service failed the sign-in The universal unique identifier (UUID) type is not supported

    Hi guys,
    we created a custom WIM Image (Windows 8 Enterprise) with MDT 2012.
    Sysprept the Image, Deployed via SCCM 2012 SP1.
    Computers are Domainjoined. Error with standard Domain User.
    On some computers (not every computer) and not with every user on the first logon following error message arises:
    The Group Policy Client service failed the sign-in The universal unique identifier (UUID) type is not supported
    It works, when you log in a second time but this error isn't very nice. 
    Is there a solution for that?
    Kind Regards
    Martin

    Hi,
    The service is responsible for applying settings configured by administrators for the computer and users through the Group Policy component. This issue can be caused by various reasons based on the computer environment.
    Can you find any information in event log about this issue?
    Here is the related blog in which the steps can solve most of such issues if the issue continuously happen.
    http://blogs.msdn.com/b/moiqubal/archive/2012/03/04/how-to-fix-quot-the-group-policy-client-service-failed-the-logon-access-denied-quot-error.aspx
    Also, you can refer to the similar thread about this issue:
    http://social.technet.microsoft.com/Forums/en-US/4a644219-50ee-494d-b965-e64a8555109e/the-group-policy-client-service-failed-the-signin-the-universal-unique-identifier-uuid-type-is
    Since this issue can be related to SCCM, to better help you, please submit a new thread for further help:
    https://social.technet.microsoft.com/Forums/en-US/home?category=systemcenter2012configurationmanager
    Hope these could be helpful.
    Kate Li
    TechNet Community Support

  • Can I use MachineID.getBytes() or MachineID.getUniqueID() as a unique identifier?

    The bytes from MachineID.getBytes() are not to be treated as a unique identifier for a device.  It is unique, but is volatile and not suitable to be used as an identifier.  There are various system/hardware events which can cause the MachineID bytes to change over time.  The same rule applies to MachineID.getUniqueID().  If you do .getBytes() and then compare that to AnotherMachineID.getBytes(), even though they can be the same device (but different runtime or browser), you will get a "false" if you're doing a direct byte-by-byte comparison.  This is because during the device individualization process, the device's hardware attributes are interrogated to get a hardware "fingerprint" of the device.  This is stored as a data structure in the MachineID data structure.
    The only resilient way (with limtiations, as stated in the next section) to compare to different devices to determine if they are the same device is to use MachineID.matches().  That comparison is resilient against machine hardware upgrades (changing hard drives, upgrading your video card, upgrading your CPU, reformatting your machine, changing user accounts, using different browsers, etc…). 
    (NOTE): There are 2 known limitations to using MachineID.matches():
    1. MachineID in the Chrome browser (on any platform) a randomly-generated ID string that is not tied to the hardware.  The reason for this is that with the release of Chrome Version 28 browser introduced a sandbox, where code in the browser is not allowed to communicate directly with the hardware layer. This will cause .matches() to fail if comparing a MachineID from Chrome against a MachineID from Firefox, even from the same machine.  This also means that if a user "resets Adobe Access DRM/Licenses", they will lose their ID, and it will be re-generated (as a new ID) the next time DRM content is consumed and their machine has to create a new MachineID.
    2. A similar limitation applies to iOS devices running iOS7 and higher, as a sandbox was also introduced to that platform, preventing applications from directly accessing the hardware.  If you are using iOS7 with a the Primetime Player SDK (PSDK) 1.0 or 1.1, the MachineID for all devices will be the same value, as Apple blocked the device-access APIs (which Adobe Access uses) and caused them to return a static string.  Since all iOS7 devices will return the same string when the device hardware interrogation happens, all iOS7 devices using the the PSDK 1.1 or earlier will return true when MachineID.matches() is called.  Adobe is working on a high-priority fix to this issue, which will be released in a PSDK 1.1 patch/hotfix, where another persistent API is used to bind the MachineID to the device, instead of the blocked device-access APIs.  This new binding mechanism will be persistent across application uninstall/re-installs.
    What is consistent between iOS7 and Chrome 28 (and higher), is that the MachineID will no longer be tied to the hardware attributes of the device.
    cheers,
    /Eric.

    In case you would like to find some way to do something that requires concurrency monitoring (e.g. You run a service and wish to limit the # of devices that can access a your service), the best way to do this would be to move towards a "# of concurrent streams" model, similar to Netflix.
    To do this, you can use Adobe Pass technology called Mai Tai, or implement your own technology (via cookies or authentication tokens) to limit user accounts to no more than XX concurrent streams.
    cheers,
    /Eric.

  • How can I uniquely identify computers on the same network/account specifically for airdrop use?  When I change name on one computer under contacts if changes on all computers.

    How can I uniquely identify computers on the same network/account specifically for airdrop use?  When I change name on one computer under contacts it changes on all computers.  I would like to change icon and name for each computer.

    you would need to setup a VPN and tunnel into your office.
    FYI..the default ports are 3283 and 5900.

  • Unique identifier in FBL3N

    Hello,
    Please could you tell me if it is possible to get a unique identifier in an FBL3N report? (I would want the unique identifier to remain unchanged for each line item if new line items are entered into SAP.)
    (i.e. if staff write commentaries for each line item in an FBL3N report and then new line items are present in later FBL3N reports I want to be able to identify which line items in the new report each of our commentaries relate to).
    Thanks,
    Stu

    Hi,
    Please could you tell me whether accounting entry date is different to document date and posting date? My understanding is that the document date and posting dates can be manually set by the data entry clerk and therefore I can not guarantee that posting dates will always increase for each new line item (even then would I need to sort by time of day within each date to be sure the order of line items are in chronological order?) Is accounting entry date the date that the data is entered into SAP and not changeable by the user?
    Unfortnately in this case it will be impractical to ask people to use unique text or header text fields.
    If it is possible to sort by the date (and time) that data is 'physically' entered into SAP then we can be sure that any new line items will occur at the bottom of the report, irrespective of document date or posting date?
    I assume an unique identifier just doesn't exist (without entering one manually)?
    Many thanks,
    Stewart

  • EDI 810 transaction error: Cannot uniquely identify a trading partner

    Hi,
    I am facing following error on B2B 11g version 11.1.1.6.0. Please provide the solution if you are aware of the issue.
    Error Description: Cannot uniquely identify a trading partner. The trading partners PARTNER-A, PARTNER-B have the same set of identifications.
    Partner Identification parameter for PARTNER-A and PARTNER-B
    EDI Interchange ID: xxxx
    EDI Interchange ID Qualifier: yyyy
    EDI Group ID: 111
    Name: PARTNER-A
    EDI Interchange ID: xxxx
    EDI Interchange ID Qualifier: yyyy
    EDI Group ID: 111
    Name: PARTNER-B
    Thank you
    Ram

    Two TPs can not have same identification.
    There are two ways to come out of this problem.
    1. Change the identification criteria for the TP.
    2. Use exchange level Identification for one TP.

  • [CS3][JS] Uniquely identifying documents with common names - possible?

    Hi!
    Is there no way to refer directly to a document in app.documents when there are several documents with the same name open at the same time (located in different folders)?
    I have tried to assign unique labels to the documents when opening them, but have not succeeded in referring to documents by their labels, only by name - and the name not being unique, I get just one document reference (the first).
    I also tried using the documents.itemByRange function, supposedly returning an array of all documents in the range defined by the parameters sent to the function. However, sending in the same name in the "from" and "to" parameters, returned only one document:
    app.documents.itemByRange('test.indd', 'test.indd').getElements().length
    Result: 1
    //(I would have expected to get both of them)
    // Referring directly by the name:
    app.documents.item('test.indd').getElements().length
    Result: 1
    // Checking the name of the documents by their indexes:
    app.documents.item(0).name
    Result: test.indd
    app.documents.item(1).name
    Result: test.indd
    Do you really have to loop through all open documents and check their fullName to be able to uniquely identify a document if the names are not unique?
    Kind regards,
    Andreas Jansson

    Hi Dave,
    Make that three or four... ;)
    Kris at Rorohiko created a method to get unique references to two
    different documents with the same name. It's usable if you have the free
    APID ToolAssistant version 1.0.44 or higher. (it doesn't need to be
    licensed...)
    Here's an excerpt from the reference manual:
    The get doc GUID function is used as follows:
    guid =
    app.callExtension(0x90B6C,10008,document);
    This function returns a GUID (Globally Unique Identifier) for a
    document. This is a string of the form
    {nnnnnnnn-nnnn-nnnnnnnnnnnnnnnnnnnn}
    where all 'n' stand for a hexadecimal digit.
    These GUID allow you to work with same-name documents that
    are concurrently open without getting tangled in the confusion
    that occurs when using resolve calls.
    As long as a document is not moved from its original location on
    disk, it will keep the same GUID. Two documents with the same
    name but different paths will have different GUID.
    Opening, closing, (re)saving to the same location will NOT
    change the GUID.
    Moving a document to another location will change the GUID.
    The find open doc by GUID function is used as follows:
    doc = app.callExtension(0x90B6C,10009,guid);
    This function retrieves a reference to an already open document
    based on its GUID string.
    These GUID strings are unique and persistent and allow
    persistent references to same-name documents without resolvelike
    issues (but the documents are meant to be 'unmovable' i.e.
    they cannot be renamed or moved to another folder). Once the
    document is open, it can be retrieved via its GUID.
    HTH,
    Harbs

  • Sample code to identify special characters in a string

    Hi,
    I need to identify special characters in a string.... could anybody send me some code please.......
    Thanks,
    Best regards,
    Karen

    data: str(100) type c.
    data: str_n type string.
    data: str_c type string.
    data: len type i.
    data: ofst type i.
    str = '#ABCD%'.
    len = strlen( str ).
    do.
      if ofst = len.
        exit.
      endif.
      if str+ofst(1) co sy-abcde.
        concatenate str_c str+ofst(1) into str_c.
      else.
        concatenate str_n str+ofst(1) into str_n.
      endif.
      ofst = ofst + 1.
    enddo.
    write:/ str.
    write:/ str_c.
    write:/ 'spacial chracter',20 str_n.
    Function module  <b>SF_SPECIALCHAR_DELETE</b> <b>DX_SEARCH_STRING</b>
    l_address1 = i_adrc-street.
    CHECK NOT L_ADDRESS1 IS INITIAL.
    len = STRLEN( l_address1 ).
    do len times.
    if not l_address1+l(1) ca
    'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 '.
    if i_adrc-street+l(1) CO sy-abcde.
    elseif i_adrc-street+l(1) CO L_NUMCHAR.
    exit.
    endif.
    l = l + 1.
    enddo.
    data : spchar(40) type c value '~!@#$$%^&()?...'etc.
    data :gv_char .
    data:inp(20) type c.
    take the string length .
    len = strlen (i/p).
    do len times
    MOVE FNAME+T(1) TO GV_CHAR.
    IF gv_char CA spchar.
    MOVE fnameT(1) TO inp2T(1).
    ENDIF.
    T = T + 1.
    enddo.
    REPORT ZEX4 .
    PARAMETERS: fname LIKE rlgrap-filename .
    DATA: len TYPE i,
    T TYPE I VALUE 0,
    inp(20) TYPE C,
    inp1(20) type c,
    inp2(20) type c,
    inp3(20) type c.
    DATA :gv_char.
    data : spchar(20) type c value '#$%^&*()_+`~'.
    START-OF-SELECTION.
    CONDENSE fname.
    len = strlen( fname ).
    WRITE:/ len.
    DO len TIMES.
    MOVE FNAME+T(1) TO GV_CHAR.
    IF gv_char ca spchar.
    MOVE fnameT(1) TO inpT(1).
    ENDIF.
    T = T + 1.
    ENDDO.
    CONDENSE INP.
    write:/ 'Special Characters :', inp.
    Rewards if useful..........
    Minal

  • No unique identifier in FCC

    Hi Experts,
    We have a requirement in SAP PI (7.31) where the flat file is picked from source and sent to Target.
    FCC is used for conversion in the sender channel.
    Incoming files has two header, with each header multiple line items under that.
    The line item has dynamic value after "D".
    Example :
    H1
    D12
    D25
    T1
    H2
    D45
    D87
    T2
    Need inputs on how to proceed in case of no unique identifiers in FCC.
    Thanks,
    Pavi

    Hi Pavi,
    is H, D and T are present in the file?? If not you can use below FCC parameters in sender channel and handle it in the mapping.
    <?xml version="1.0" encoding="utf-8"?>
    <ns:FileSenderData xmlns:ns="urn:ch:test:prototype">
    <RecordSet>
      <Record>
      <EachLine>H1</EachLine>
      </Record>
      <Record>
      <EachLine>D12</EachLine>
      </Record>
      <Record>
      <EachLine>D25</EachLine>
      </Record>
      <Record>
      <EachLine>T1</EachLine>
      </Record>
      <Record>
      <EachLine>H2</EachLine>
      </Record>
      <Record>
      <EachLine>D45</EachLine>
      </Record>
      <Record>
      <EachLine>D87</EachLine>
      </Record>
      <Record>
      <EachLine>T2</EachLine>
      </Record>
    </RecordSet>
    </ns:FileSenderData>
    Regards,
    Praveen.

  • How to create Unique Identifier and save it to identify user(device)

    I want to create unique identifier on iOS 5 and use it for identifying user (user device) every time app is started. I am able to create a unique identifier by following code 
    CFUUIDRef theUUID = CFUUIDCreate(NULL);
    CFStringRef string = CFUUIDCreateString(NULL, theUUID); CFRelease(theUUID);
    But unable to save it on user device so that particular identifier is not deleted even when app is uninstalled. I tried using SSKeychain approach but it gives Apple Mach-o Linker error.
    Please let me know the the way I can accomplish the same.
    Any help is appreciated.

    I want to create unique identifier on iOS 5 and use it for identifying user (user device) every time app is started. I am able to create a unique identifier by following code 
    CFUUIDRef theUUID = CFUUIDCreate(NULL);
    CFStringRef string = CFUUIDCreateString(NULL, theUUID); CFRelease(theUUID);
    But unable to save it on user device so that particular identifier is not deleted even when app is uninstalled. I tried using SSKeychain approach but it gives Apple Mach-o Linker error.
    Please let me know the the way I can accomplish the same.
    Any help is appreciated.

  • Unique Identifier in MDM Profisee Stage table

    Hi team,
    I am new to MDM profisee tool and currently working for Addres verification project for my organization.
    I wanted to clear my doubts here about Unique Identifer in Stage table and how it works.. Here what i understand till now:
    Step 1) I created an Entity using MDM profisee UI and it generated a stage table in MDS database called stg.Address_leaf
    Step 2) I have loaded data from external source to MDS stage table using ETL and passed Import type as 2 and Import status id as 0
    Step 3) I have run store procudure system generated something stg.udp_Address_leaf to load the model and passed the version name as Version_1, Log flag as '1' and Batch tag as 'Address'
    Now my below are my questions:
    1) What is the field i can use in MDS stage table to populate my unique intifier value coming from source? (lets say Address_Id is my Unique value for all the records coming from source)
    2)  Where/how Unique Identifier is useful in this process? Will this be helpful in next time load from stage to Model?
    3) If i truncate and load my MDS stage table in next run and few earlier records has been updated how it will update those records in Model? will this process (code present in SP) recognize by Unique Identier column present in MDS stage table?
    I may have few more questions on this process but wanted to start from here.
    Thanks,
    Akash

    Thanks David for your reply.
    So instead of i use Auto generate to populate Code attribute, i can load Code Attribute during loading the stage table with my source unique values.
    And then later on, when i will have new updated values coming in for a member record, Stored procedure will use that code attribute value and update the model accrodingly for the changed values for the member?
    i need to use Import type as 2 in this case.
    Example:
    I have existing record in MDS staging table let's say
    Code, City, Zip, Import type, Import status
    0001, Chicago,61000,2,0
    In next load run, i first truncate the data from MDS staging and now i have updated row for existing code ‘0001’ where Zip code values changed from previous 61000 to 61001:
    Code, City, Zip, Import type, Import status
    0001, Chicago,61001,2,0
    In this case, when we execute the SP, it will update the Zip code in Model using Code as unique indentifier. and no duplicates will occur.
    Please correct me if i am wrong.
    Thanks,
    Akash

  • Problem using SQL-LOADER and Unique Identifiers

    I'm trying to load a fixed-length records file containing people names and phone numbers. Data is specified as follows
    Toni Tomas66666666669999999999
    Jose Luis 33333333330000000000
    Notice that a maximum of 2 numbers can follow a person name, and 0000000000 means "no number specified".
    I want to assign a unique identifier to people (instead of using the NAME field as a Primary Key) using an Oracle Sequence. I did that, but I don't know
    how to assign the same id to each number.
    Considering the 2 previous lines, desired result should be:
    PEOPLE
    ======
    1     Toni Tomas
    2     Jose Luis
    TEL_NUMBERS
    ===========
    1     6666666666
    1     9999999999
    2     3333333333
    In order to achieve that, my Control File looks like this
    LOAD DATA
    INFILE phonenumbers.txt
    INTO TABLE people
         personID "mySequenceName.nextval", --an Oracle sequence
         name POSITION(1:10) CHAR
    INTO TABLE tel_numbers
    WHEN phonenumber !='0000000000'
         personID !!!DON'T KNOW HOW TO REFERENCE THE SAME ID!!!!
         phonenumber POSITION(11:20) CHAR
    INTO TABLE tel_numbers
    WHEN phonenumber !='0000000000'
         personID !!!DON'T KNOW HOW TO REFERENCE THE SAME ID!!!!
         phonenumber POSITION(21:30) CHAR
    I tried lots of things, but anyone works:
    a) reference the ID using something like ":\"people.personID\" (or similar aproaches)
    b) using a BEFORE INSERT TRIGGER getting the CURRVAL value of the Sequence. This solution
    does not work because it seems that all people is loaded before any telephone number. Hence,
    all phone numbers are associated, wrongly, to the last person in the data file.
    Does anyone know how can I solve this issue?
    Help would be appreciated. Thank you.

    Hi V Garcia.
    Information within the file is correct. Each line represents a COMPLETE record (Part of the line represents parent information and the rest is children data). As you can see in my first message, you can have more than one detail for a given master (i.e. two phone numbers):
    Toni Tomas66666666669999999999
    (10 chars for the name, 10 for each phone number. Thus, 2 children records to be created)
    With the solution given by Sreekanth Reddy Bandi (use of CURRVALUE within the SQL-Loader Control File), not all the details are linked to the parent record on the DB tables. It seems SLQ-Loader gets crazy when there is such amount of information.

  • Unique identifier of Message

    Which approach is better ?
    Message-ID header or (IMAP, POP3 UID message) ?
    How are you handle this problem in your applications ?
    thanks

    Use message UIDs (or persistent UIDs) for a client to resynchronize its state from a previous session with the server (e.g., disconnected or offline access). In this case, you might also need to couple your logic with UIDVALIDITY. Any change of unique identifiers between sessions can be detectable using the UIDVALIDITY.
    On the other hand, Message ID is not mandatory in the message. For example, some of the messages that we download from yahoomail (or any other mail agent) might not have message Ids.
    Therefore, always use UIDs if your job is to resync the client with the email servers.
    Thanks
    Subbaraja
    http://www.subbarajas.blogspot.com/

  • Unique Identifier

    I'm trying to embed a unique identifier, e.g., computer ID, EXCEL Serial #, Windows Serial #, etc. into an EXCEL workbook before I send it to the recipient. I'm trying to insure that only the recipient can use the spreadsheet?
    Thanks!

    Hi,
    You may need post in Excel forum for more help:
    http://social.technet.microsoft.com/Forums/office/en-US/home?forum=excel
    Alex Zhao
    TechNet Community Support

  • Unique Identifier Variables

    I am calling a coldfusion remote object, and I wish to take a variable that is stored as a unique identifier and pass it in my flex app. Here is the error I presently get, attempting to store it as a string.
    [Macromedia][SQLServer JDBC Driver][SQLServer]Syntax error converting from a character string to uniqueidentifier.

    That's definitively an error regarding a SQL query. Do you use 
    cfqueyparam?
    Sincerely,
    Michael
    Sent from my iPhone
    El 10/07/2009, a las 11:28, Leonard Rockstein MD <[email protected]
    escribió:
    >
    I am calling a coldfusion remote object, and I wish to take a 
    variable that is stored as a unique identifier and pass it in my 
    flex app. Here is the error I presently get, attempting to store it 
    as a string.
    >
    [SQLServer JDBC Driver][SQLServer]Syntax error 
    converting from a character string to uniqueidentifier.
    >

Maybe you are looking for