GUID generator for database key entry?

I need to generate my own GUID (Globally Unique Identifier) which is required when I submit a test record to the SQL database.  I've searched for info on this subject and come up empty handed.  Is there any native functions or simple means of doing this?  FYI - I am using CVI 2013. 

Here are some results I found after doing a simple search on the Internet:
MS GUID Generator: http://msdn.microsoft.com/en-us/library/ms241442(v=vs.80).aspx
Online GUID Generator: http://www.guidgenerator.com/
Regards!

Similar Messages

  • Any easy way to generate unique primary key for database table?

    I'm currently playing with the J2EE reference implementation from Sun which comes with the IBM Cloudscape database. This Cloudscape database supports the use of an AutoIncrement field.
    First question: Can I use CMP and assume that the database will generate a proper key for me? Anyone tried it out successfully before?
    Also, based on what I've heard so far, it seems that generating database primary key is not really well-supported by J2EE using CMP in that a lot of J2EE developers have to resort to workarounds like using a session bean, JDBC and (1) some seed numbers for ID implanted in the database itself (as in the J2EE tutorial DukesBankApp example) or (2) using the SQL MAX aggregation command + 1. Usign seed number is contradictory to good database design and using MAX is dangerous for heavy traffic application if 2 beans try to insert themselves into the database at the same time (synchronizarion problem).
    Anyway I find it dumb that we still have to go back to JDBC and SQL which was the reason why the concept Entity Bean was introduced; to make database persistence transparent! Now it seems that J2EE makes it worse and more troublesome than before.
    Second Question: Is there any easy (hopefully transparent/automatic) way of generating primary key ID?

    if you want to rely on your container or database then go hard, will probably be faster.
    to make a cross container/db soln I used a CMP Entity bean called Sequence with one field for uid
    I use one instance and increment the field each time.
    To do the logic, I have a utils class with static method, no need for session bean overhead
    I reckon this approach is OK considering all things

  • Impact of generating a new key for Secure Store Application

    I inherited my development environment from a predecessor, who did not document the secure store pass phrase anywhere. There are a couple of projects doing development on the system that cannot be impacted, but I need to get Project Server running on the
    system, and I cannot get the secure store to accept the credentials I set for the target application. I have recreated the target application several times, but nothing works.
    MossHostSsoHost.GetSecureStoreCredentials: Failed to get credentials from Secure Store. SecureStoreProvider threw a SecureStoreException. Exception: Microsoft.Office.SecureStoreService.Server.SecureStoreServiceException: Access is denied to the Secure Store
    Service.     at Microsoft.Office.SecureStoreService.Server.SecureStoreServiceApplicationProxy.Execute[T](String operationName, Boolean validateCanary, ExecuteDelegate`1 operation)     at Microsoft.Office.SecureStoreService.Server.SecureStoreServiceApplicationProxy.GetCredentials(Guid
    rawPartitionId, String applicationId)     at Microsoft.Office.SecureStoreService.Server.SecureStoreProvider.GetCredentials(String appId)     at Microsoft.Office.Excel.Server.MossHost.MossHostSsoHost.GetSecureStoreCredentials(String
    secureStoreApplicationId)
    So, I am wondering if I need to generate a new key for the secure store application, and what impact that would have on the existing target applications. Can someone please tell me if I generate a new key, will this break the existing applications? Thanks.

    Hi Susan,
    Once you decide to generate a new encryption key, you could follow the steps in Generate an encryption Key part in the link below:
    http://technet.microsoft.com/en-us/library/ee806866(v=office.15).aspx
    You should back up the database of the Secure Store Service application before generating a new key. Then refresh the encryption key to propagate the key to all the application servers in the farm.
    Regards,
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected] .
    Rebecca Tu
    TechNet Community Support

  • 1809: An error has occured while generating a seccion key for encryption

    Hi
    I am trying to perform a remote control operation using Console One
    1.3.6c, but evry thime getting the following error message
    "1809: An error has occured while generating a seccion key for
    encryption." I had looked for it in Novell site & found that the fix is
    to upgrade to ZDF 6.5 SP1, but I am looking for a diffrent work around
    for it. Please let me know is there any work around for this problem.
    Regard
    Kallol
    kallol

    kallol,
    It appears that in the past few days you have not received a response to your
    posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Do a search of our knowledgebase at http://support.novell.com/search/kb_index.jsp
    - Check all of the other support tools and options available at
    http://support.novell.com.
    - You could also try posting your message again. Make sure it is posted in the
    correct newsgroup. (http://support.novell.com/forums)
    Be sure to read the forum FAQ about what to expect in the way of responses:
    http://support.novell.com/forums/faq_general.html
    If this is a reply to a duplicate posting, please ignore and accept our apologies
    and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Product Support Forums Team
    http://support.novell.com/forums/

  • No table entries found for specified key

    Hi All,
    I have developed a program to upload data from flat file with the help of GUI UPLOAD. It is succesfully updating data in my Z-table.
    Whenever I tried to view the content of table for specific field, message shows No table entries found for specified key. However if I add * as a suffix, it shows the data & when I directly Execute table it also displays the data.
    I have also cross checked the spaces before or after the specific content, no space found.
    Only two fields are creating this issue Individually (one of them is key field)
    Regards
    Mukul Maheshwari

    Hi Dear ,
    Here i had implemented program go through it you can understand easily.
    While creating table give one field as primary as you know that.
    tables zdata1.
    data it_tab type TABLE OF zdata1 WITH HEADER LINE.
    CALL FUNCTION 'GUI_UPLOAD'
      EXPORTING
        FILENAME                      = 'C:\Documents and Settings\E50039\Desktop\data.txt'     ***************File path
       HAS_FIELD_SEPARATOR           = 'X'
      TABLES
        DATA_TAB                      = it_tab
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    LOOP AT it_tab.
    zdata1-no1 = it_tab-no1.
    zdata1-name = it_tab-name.
    zdata1-empid = it_tab-empid.
    insert zdata1.
    ENDLOOP.
    Flat file
    1 name1 empid1
    2 name2 empid2
    note: Give the tabspace between values in flat file.
    Edited by: Aditya.G on Oct 12, 2011 10:22 AM

  • No entry for account key 1002 in HRA transaction key in Account assignment

    Dear sap-gurus,
    the following problem occured. When posting a document (s-modelling), system displayed an error that there is no entry for account key 1002 in HRA transcation key in SPRO Account assignment.
    The document's size is very big, it considers many lime items in it.  May be this happened because of this?
    In F1 for SPRO Account assignment we have:
    In this step, you assign a document split account to an account key. This is a clearing acount (Transaction HRA) in Accounting.
    For various reasons, payroll data that is formatted for posting to accounting must be split into several documents per posting run. In Human Resources (HR), key 1001 is used for the breakdown of documents. A breakdown occurs if:
    There are several company codes
    There are different posting dates
    There are postings to G/L accounts, customer accounts, vendor accounts
    This is specified in the step Create Posting Variants (for example, document breakdown for expenses and payables)
    The document split account that is stored under the key 1001 is also used to clear the balance within a G/L account document for each business area.
    An additional split may be required depending on the size of the document in Financial Accounting. In this case, the clearing account specified under account key 1002 in transaction HRA, is used as the document split account.
    Further notes
    To avoid problems in current operations, it is advisable to set up a document split account even if a document breakdown is not necessary. In this way, you can avoid having to set up the system at short notice if changes are made to the settings or if there is an increased number of postings, or if cross-company code transactions occur.
    We have an entry 1001 and a clearing account for postings between several company codes. What are we supposed to do? How to avoid this error and post the documents to FI? Please, help!
    Best regards,
    Eldar

    Hello,
    How did you resolve this issue? Any inputs anyone.
    John

  • Different passwords for KeyStore and Key entry

    I am having trouble using a keystore whose entries have passwords that are different from both each other, and the keystore itself. I have managed to get this (differing storepass, and keypass) working for the case of a single entry, but this case is pointless since it is the same as having a new keystore for each user. It also works fine in the case that multiple key entries share a password that is different from the keystore. However, when I place a new key entry with a different password into the keystore I get an UnrecoverableKeyException upon initialization of the KeyManagerFactory.
    There seems to be some sort of restriction that the key entries should all share the same password.
    I have found several articles and texts that touch on this, but the details are fuzzy. Has anyone else ever tried to do this? Will you offer some insight? When multiple users have access to the same machine should they share a keystore, or is keeping a separate keystore file for each user the standard?
    Thank you for any assistance.

    Pankaj,
    Thank you for your reply. I also have not seen the problems when manipulating the keys with keytool. However, when selecting a key through the KeyManager I get problems.
    I have wrapped the default KeyManager with another KeyManager which captures the calls to chooseClientAlias, and getPrivateKey so that I may use the key's password rather than the one that was used to load the keystore. The problem seems to arise before this.
    I get an UnrecoverableKeyException at the time that the KeyManagerFactory is initialized. I don't know what the KeyManagerFactory initialization method is doing with the password. Do you know where I might find the code for this? My debugger just gives me function defs. I think that I need to supply a custom KMF, but it would be nice to know what the default one is doing first.
    I noticed that you have authored a book on j2ee security. Does it cover this?
    Ethan

  • No entry in table T510 for the key 4004033MANAGER 1 on 01.04.2008

    Hi,
    When trying to save entry in 0008 infotype i am getting the error "No entry in table T510 for the key 4004033MANAGER 1 on 01.04.2008"
    I had removed the integration PLOGi ORGA for some testing purpose. is it because of this. now i have set the integration switch back. still i am not able to resolve this.
    Can anybody help me in this.
    thanks

    Hi,
    Maintian the table V_t510, go to V_t510, enter the values like
    40- Country Grouping
    04- PS type
    03- PS ARea
    3- CAP(collective agreement Provision) which you have assigned to your employee subgroups in table V_T503Z.
    MANAGER - Ps group
    1 - Ps level
    on 01.04.2008- start date.
    in this table enter the wage type, which you have created under basic pay.
    like
    3 manager 1 1000 01012008 31129999
    3 manager 1 1010 01012008 31129999
    Regards
    Devi

  • If I have an EntityBean that mappes to two tables within one database, when I create that EJB, whoes reponsibilty to generate the primary key in database table? The RDBMS or EJB?

    If I have an EntityBean that mappes to two tables within one database, when I create
    that EJB, whoes reponsibilty to generate the primary key in database table? The
    RDBMS or EJB?
    Thanks,
    JW

    Refer to http://e-docs.bea.com/wls/docs81/faq/ejb.html/#257430
    "Jingwei Zhang" <[email protected]> wrote:
    >
    If I have an EntityBean that mappes to two tables within one database,
    when I create
    that EJB, whoes reponsibilty to generate the primary key in database
    table? The
    RDBMS or EJB?
    Thanks,
    JW

  • Could anyone generate a SolMan Key for me?

    Dear All Experts,
    I have to install an ECC 6.0 IDES as soon as possible, but there is something wrong with our solman system, could anyone generate a solman key for me?
    my SID is IDS
    my host name is sap
    and my instance number is 00
    It's really urgent, thanks for your kind replies.
    Best Regards,
    Afshin

    Paul Babier wrote:
    > You may not request a license key n this fashion.
    > You can acess  service.sap.com/licensekey
    > You can call your CIC please refer to this note  560499.
    >
    > But how do you expect another custoemr to generate a license key, when I will belong to their installation?
    > This is just not an acceptable request.
    Paul, a license key is not the same as the requested SolMan Key.
    A License Key is provided by SAP (and will be installed via transaction SLICENSE in case of ABAP Web AS Systems).
    A Solution Manager Key is generated through SAP Solution Manager, transaction SMSY. (SAP Note 811923 -  Generating the SAP Solution Manager key)
    Anyhow, requesting a Solution Manager Key is not appreciated in this forum.
    Regards, Ruediger

  • Fixed lot size key has no effect on planned orders generated for VC PIRu2019s

    Hello gurus,
    does anyone have an idea why the fixed lot size key is not having an effect on the planned orders that are generated for the Planned Independent Requirements (PIR) for MTO configurable materials. My client is using planning strategy 56.
    I have copied & customized the Fixed lot size key FX to suit the MTO production (u201CLot size as in short-term periodu201D activated) that works nicely even with configurable materials when a planned order is generated for a sales order. But the planned orders in the preplanning segment, i.e. that were generated for PIR's, are still created equally to the PIR quantity.
    Is this behavior an error or an SAP feature? Though, I have reviewed the OSS Note 437098 that might be related to this. Can anyone tell me if it is related to this issue?
    Regards,
    Mikko

    Got the answer fro SAP:
    Please consider the following note, which provides the explanation about this behavior of the lot-size, when VSE requirements are used:
    125498 - MRP/Docu: Planning segment and lot-for-lot order quantity
    The following section of the note describes your scenario in detail:
    "The planned independent requirements for a material are in a separate
    planning segment (planning strategy planning without final assembly,
    requirements type VSE, VSEV).
    You enter a rounding value or a rounding profile or an lot size that is
    not exact in the material master.
    Material Requirements Planning:
    In Material Requirements Planning, planned orders are generated for the
    planned independent requirements. The lot size settings (such as fixed
    lot size or minimum lot size) are also not taken into account."

  • Auto-Generate mail for database performace reporting.

    Hello,
    i have many server to keep an eye on for maintenance but, now the number for it is growing day by day. Its difficult for me to keep a watch on each in detail. So I have an idea to implement.
    I want to make a script which will auto generate a mail from the server & send it to my email id with all the details of database. Basically performance related details.+
    Is it possible to do so ???? I know how to send a mail with attachment, the code i will use is given below.+
    please suggest me how can i attach my performance tuning queries  output & get those things in my mail on a daily basis......
    thanks in advance .....
    DECLARE
    v_From VARCHAR2(80) := '[email protected]';
    v_Recipient VARCHAR2(80) := '[email protected]';
    v_Subject VARCHAR2(80) := 'test subject';
    v_Mail_Host VARCHAR2(30) := 'mail.mycompany.com';
    v_Mail_Conn utl_smtp.Connection;
    crlf VARCHAR2(2) := chr(13)||chr(10);
    BEGIN
    v_Mail_Conn := utl_smtp.Open_Connection(v_Mail_Host, 25);
    utl_smtp.Helo(v_Mail_Conn, v_Mail_Host);
    utl_smtp.Mail(v_Mail_Conn, v_From);
    utl_smtp.Rcpt(v_Mail_Conn, v_Recipient);
    utl_smtp.Data(v_Mail_Conn,
    'Date: ' || to_char(sysdate, 'Dy, DD Mon YYYY hh24:mi:ss') || crlf ||
    'From: ' || v_From || crlf ||
    'Subject: '|| v_Subject || crlf ||
    'To: ' || v_Recipient || crlf ||
    'MIME-Version: 1.0'|| crlf ||     -- Use MIME mail standard
    'Content-Type: multipart/mixed;'|| crlf ||
    ' boundary="-----SECBOUND"'|| crlf ||
    crlf ||
    '-------SECBOUND'|| crlf ||
    'Content-Type: text/plain;'|| crlf ||
    'Content-Transfer_Encoding: 7bit'|| crlf ||
    crlf ||
    'some message text'|| crlf ||     -- Message body
    'more message text'|| crlf ||
    crlf ||
    '-------SECBOUND'|| crlf ||
    'Content-Type: text/plain;'|| crlf ||
    ' name="excel.csv"'|| crlf ||
    'Content-Transfer_Encoding: 8bit'|| crlf ||
    'Content-Disposition: attachment;'|| crlf ||
    ' filename="excel.csv"'|| crlf ||
    crlf ||
    'CSV,file,attachement'|| crlf ||     -- Content of attachment
    crlf ||
    '-------SECBOUND--'               -- End MIME mail
    utl_smtp.Quit(v_mail_conn);
    EXCEPTION
    WHEN utl_smtp.Transient_Error OR utl_smtp.Permanent_Error then
    raise_application_error(-20000, 'Unable to send mail: '||sqlerrm);
    END;
    /

    I like your script idea.
    You can spool output to a file and mail the file to yourself.
    What OS are you running?
    On linux a simple starter script would look like this:
    #!/bin/bash
    echo `date`
    # Set the Environmental variable for TESTDB instance
    . /u01/app/oracle/dba_tool/env/TESTDB.env
    $ORACLE_HOME/bin/sqlplus -s system/<PASSWORD> <<EOF
    @/u01/app/oracle/dba_tool/TESTDB/quickaudit
    EOF
    echo `date`
    mailx -s "Check database on TESTDB" [email protected] < /tmp/quickaudit.lst
    ----------------------sample ENV file--------------------------------------
    ORACLE_BASE=/u01/app/oracle
    ULIMIT=unlimited
    ORACLE_SID=TESTDB
    export ORACLE_TERM=xterm
    ORACLE_HOME=$ORACLE_BASE/product/11.2.0
    ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data
    LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
    LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
    LIBPATH=$LD_LIBRARY_PATH:/usr/lib
    TNS_ADMIN=$ORACLE_HOME/network/admin
    PATH=$ORACLE_HOME/bin:$ORACLE_BASE/dba_tool/bin:/bin:/usr/bin:/usr/ccs/bin:/etc:/usr/sbin:/usr/ucb:$HOME/bin:/usr/bin/X11:/sbin:/usr/lbin:/GNU/bin/make:/u01/app/oracle/dba_tool/bin:/home/oracle/utils/SCRIPTS:/usr/local/bin:
    export ORACLE_BASE ORACLE_SID ORACLE_TERM ULIMIT
    export ORACLE_HOME
    export LIBPATH LD_LIBRARY_PATH ORA_NLS33
    export TNS_ADMIN
    export PATH
    --------------------Starter reporting script--------------------------------------------------
    SET ECHO OFF
    SET TERMOUT OFF
    REM Revisions:
    REM Date ID Version Description
    REM -------- -- ------- ----------------------------------------------------|
    REM 10/07/05 1.0 Script to check for database issues
    SPOOL /tmp/quickaudit.lst
    SELECT SYSDATE FROM DUAL;
    SHOW USER
    SET TERMOUT ON
    SET VERIFY OFF
    SET FEEDBACK ON
    PROMPT
    PROMPT Checking database name and archive mode
    PROMPT
    column NAME format A9
    column LOG_MODE format A12
    SELECT NAME,CREATED, LOG_MODE FROM V$DATABASE;
    PROMPT
    PROMPT ------------------------------------------------------------------------|
    PROMPT
    PROMPT
    PROMPT Checking database versions
    PROMPT
    column BANNER format A64
    select * from v$version;
    PROMPT
    PROMPT ------------------------------------------------------------------------|
    PROMPT
    PROMPT
    PROMPT Checking control file(s)
    PROMPT
    column STATUS format a7
    column NAME format a68
    column IS_RECOVERY_DEST_FILE format a3
    set linesize 110
    SELECT * FROM V$CONTROLFILE;
    PROMPT
    PROMPT ------------------------------------------------------------------------|
    PROMPT
    PROMPT
    PROMPT Checking redo logs and group(s)
    PROMPT
    column member format a70
    set linesize 110
    set pagesize 30
    SELECT group#, member FROM v$logfile;
    PROMPT
    PROMPT -----------------------------------------------------------------------|
    PROMPT
    PROMPT
    PROMPT ------------------------------------------------------------------------|
    PROMPT
    PROMPT
    PROMPT Checking freespace by tablespace
    PROMPT
    column dummy noprint
    column pct_used format 999.9 heading "%|Used"
    column name format a16 heading "Tablespace Name"
    column bytes format 9,999,999,999,999 heading "Total Bytes"
    column used format 99,999,999,999 heading "Used"
    column free format 999,999,999,999 heading "Free"
    break on report
    compute sum of bytes on report
    compute sum of free on report
    compute sum of used on report
    set termout off
    set pagesize 40
    select a.tablespace_name name,
    b.tablespace_name dummy,
    sum(b.bytes)/count( distinct a.file_id||'.'||a.block_id ) bytes,
    sum(b.bytes)/count( distinct a.file_id||'.'||a.block_id ) -
    sum(a.bytes)/count( distinct b.file_id ) used,
    sum(a.bytes)/count( distinct b.file_id ) free,
    100 * ( (sum(b.bytes)/count( distinct a.file_id||'.'||a.block_id )) -
    (sum(a.bytes)/count( distinct b.file_id ) )) /
    (sum(b.bytes)/count( distinct a.file_id||'.'||a.block_id )) pct_used
    from sys.dba_free_space a, sys.dba_data_files b
    where a.tablespace_name = b.tablespace_name
    group by a.tablespace_name, b.tablespace_name;
    PROMPT
    PROMPT ------------------------------------------------------------------------|
    PROMPT
    PROMPT
    PROMPT Checking for invalid objects
    PROMPT

  • Alternate way to generate ORM for database

    Hi,
    Is there an alternate way or method to generate Object Relational Mapping CFC for database that you  get in CF Builder?     The price for CF Builder to use ORM generation alone seems a bit too steep.

    Very few people here use CF.  Did you try posting in the CF Forum?
    http://forums.adobe.com/community/coldfusion
    Nancy O.

  • Error: No data for binding key while generating WSDL

    Hello users,
    I have converted a custom rfc to webservice using Wizard tool. While generating WSDL file using Open WSDL document for selected binding of SOAMANAGER, i'm getting the error message 'No Data for Binding Key'.
    Can anyone let me know the solution to resolve this issue? Also, I could note that the Object Status for this sevice reads Services: 0 / Endpoints: 0
    Strangely, I tried to generate WSDL for another Custom Webservice and it did get generated but with 403 error page. and for this the Object Status read Services: 1 / Endpoints: 1.
    Any information with respect to this is appreciated.
    Thanks in advance.
    Regards,
    Naresh

    Hi Naresh,
    You have posted the question in the wrong forum, it should have been posted in Webdynpro.
    Cheers,
    Bhavana

  • Generating check value for put key

    hi
    in globalPlatform doesn't exist anything about check value for put key command.
    how can i generate it and change initial key for my java card?

    s.fallahdoost wrote:hello
    in other topic, i saw that you used these commands
    for put-key:
    cm> set-key 2/1/DES-ECB/ffeeddccbbaa99887766554433221100 2/2/DES-ECB/ffeeddccbbaa99887766554433221100 2/3/DES-ECB/ffeeddccbbaa99887766554433221100
    cm> put-keyset 2
    *=> 84 D8 00 81 4B 02 80 10 AE 25 9D AE 8A 7F 23 37 ....K....%....#7*
    *7F CF AD 42 5C B8 C3 EC 03 F3 9C 09 80 10 AE 25 ...B\..........%*
    *9D AE 8A 7F 23 37 7F CF AD 42 5C B8 C3 EC 03 F3 ....#7...B\.....*
    *9C 09 80 10 AE 25 9D AE 8A 7F 23 37 7F CF AD 42 .....%....#7...B*
    *5C B8 C3 EC 03 F3 9C 09 69 54 47 5D 25 8A AA 36 \.......iTG]%..6*
    *00 .*
    *(259100 usec)*
    *<= 02 F3 9C 09 F3 9C 09 F3 9C 09 90 00 ............*
    Status: No Error
    i know that AE 25 9D AE 8A 7F 23 37 7F CF AD 42 5C B8 C3 EC
    is your new key and F3 9C 09 is the first 3 bytes of tripleDES with key
    ffeeddccbbaa99887766554433221100.
    i have a question:
    what is ffeeddccbbaa99887766554433221100?!!
    how can i calculate it?ffee..00 is the plain text key. Sensitive data encryption is required for the 3 CM keys in the PUT KEY command. I first set off-card the keys I want to be included in the PUT KEY command, and JCOP Tools encrypts it with the DEK key of the current secure channel session. On-card the first the C_MAC is validated, then the keys are decrypted and compared to the key check value.

Maybe you are looking for