To generate the Unique identifier

Hi friends;
Is there a way to generate a unique identifier (length 8), which can contain numbers (0-9) and in pl/sql or sql letters(a-z)?

Note:-in oracle 9i

Concerning
Vish

Published by: 909237 on June 21, 2012 15:32

This 8-digit value is always unique? If this is the case, your answer is 100% correct.

Can be yes or no. Please follow link below:
http://www.Oracle-base.com/articles/9i/UUID-9i.php

In the above link, Tim has created a function named new_uuid. In this function, he used a conversion_api package. You can get the code for conversion_api from the given link. After creating the function, he showed a demo of a UUID table what unique constraint. Then it adds 100000 rows in the table. If there is no unique constraint occurs violation, it means that you have 100000 unique random-ed string, which can be used in the password. Whenever you want to assign a password, simply, you can say something like this:

Select TRUNC (DBMS_RANDOM. VALUE (1,100000)) twice;

Suppose that it is up to you 93068, this means that you will read 93068th row in the table of the UUID, recover the password for example column of the table of the UUID uuid and then just delete the UUID where uuid = "the password you have."

Concerning
Girish Sharma

Tags: Database

Similar Questions

  • Unique identifier generator

    Hello

    I'm looking for an optimal solution generate a "unique identifier of the message" with this format:

    < value="[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}"/ model >

    The result should be something like this:

    d9a562a9-362C-4ABA-857D-c2b4e79295bd

    what you're suggesting?

    Thank you.

    Select regexp_replace (sys_guid (), ' ([[: $alnum:]] {8}) ([[: alnum:]] {4})([[:alnum:]]{4}) ([[: alnum:]] {4})([[:alnum:]]+) ', '\1-\2-\3-\4-\5')

    of the double

  • is there any function in the osb to generate a unique number in proxy

    is there any function in the osb to generate a unique number in proxy

    FN - bea: uuid()

    The function fn - bea: uuid() returns a universal unique identifier. The function has the following signature:

    FN - bea: uuid() as XS: String

    You can use this function in the pipeline of proxy to generate a unique identifier. You can insert the unique identifier that is generated in an XML document in the form of element. You are unable to generate a unique identifier to the system variable. You can use this to edit a message payload.

    For example, suppose you want to generate a unique identifier to add it to a message for follow-up purposes. You can use this function to generate a unique identifier. The function returns a string that you can add it to the SOAP header.

  • Unique identifier of the display.

    Hello

    Is it possible to display the unique identifier for the step instead of or in addition to the name of the step?

    How to display this unique identifier in the sequence editor?

    K.

    Hello

    If you use 4 TestStand, you can customize the configuration of list step.

    You can customize the columns to display what you need.

    You can change the column type of the step name in the Expression and the expression of the value Step.UniqueStepId.

    Step of the column should display the id unique step instead of the name of the step.

    Bruno

  • XControls: Options for change "Unique identifier" and the "localized name Long' properties has disappeared

    Is it only me or is a new bug in LabView? Miss me the options to change the "Unique identifier" and the "Long name" real estate XControl. In the past they where in the red zone, now they're gone!

    I use LV2009SP1.

    Any ideas?

    Ingo Bartsch

    Thanks for your efforts, Duffy2007!

    Problem was a corrupted in some sort of XControl or project file. After re - import the XControl in a new project, all was well again.

    Kind regards

    Ingo

  • Two hosts w / same Unique identifier

    I have a situation where two different hosts show the same Unique identifier.

    I get the following error in Foglight:

    Also, I get the following error message when you try to start the FGLAM on the host:

    Here is the Unique identifier for the host brprwast001 name:

    Here is the Unique identifier for the host name okwprdas01:

    Just make sure, how did this happen? have you copied an installation from one host to anthoer or was it a name change?

    In any case, the message that you get when you try to start the fglam made you in the right direction. Now you have the display name host with the same value on 2 machines, you must go to the installation directory of fglam under State/default/config, you should have a fglam.config.xml, make sure that each host has the right poster name and they are different. If the host has changed its name, there is also a variable on the reports of a warning when the name changed (which you probably want to set to false).

    I hope this helps.

    Golan

  • SEA generates a global unique identifier (GUID)?

    On the web page (http://oca.microsoft.com/en/dcp20.asp), he says that "since Windows 7 operatin g system, SEA generates a global unique identifier (GUID) that is stored on your computer and sent with rep orts to identify your computer. The GUID is a number generated randomly; It does contain no personal information and is not used to identify you. We can distinguish the scope of the feedback we receive is the GUID and how to prioritize it. »

    Where exactly this GUID is stored in the registry, which is called exactly, and how it is created to be Unique in the world, if it is a random number?

    Also, can make two machines from a line of production of the same, and the computer model has the same GUID if created from the same standard image, where the end user has simply finishes the installation by following the wizard of initial start-up?

    You won't find the answers to these questions here, because this forum deals with people who have problems or questions about the problems of home security. I suggest to join on the TechNet forums and see if someone in IT Pro communities out there know what you are looking for.

  • How to generate a unique global identifier?

    I was sure that this would be covered somewhere, but couldn't find it.  I was wondering if there is any standard way to create some sort of unique identifier, a little in the world?  I'm trying to collect data from my application and I try to avoid collecting everything that would be personally identifiable to a particular device.  On other platforms, there is the notion of a GUID.  Is something like this provided out of the box?  At the present time, the best thing that I came up with is cat a bunch of long random set that seems kind of hoaky.

    Thanks for reading this,

    -Henry

    Take a look at the class: net.rim.device.api.synchronization.UIDGenerator

  • A unique identifier for the post blog items?

    When I came across this problem, it surprised me that I could not find any documentation about it. Since we now have a tag to give a point of web application a unique identifier, {tag_itemid}, I was surprised not to find this same feature for a blog post item. When I open my file postlist blog, wouldn't be helpful to have a tag like {tag_blogpostid}? I can see the ID of the blog post in the URL (see below), when I create/edit, I have no way to access!

    blog-url.png

    Someone at - there a work around? Am I missing something?

    Thanks, Curtiss

    Hey Curtis,.

    There is a tag called exactly {tag_blogpostid} you can use in your postlist blog layout.  It comes as an option with BC in Dreamweaver or in the editor to the Admin, but I see that they use this tag in the comment form on my default postlist layout.  Here's a gist of the presentation of the list of default blog post.  7 and 16 drum lines:

    https://gist.github.com/thetrickster/0febde7316e8f66ff013

    It IS a tag.  I wonder if it only allows once however if this tag does not work for you.  Try it.

  • How to build a unique identifier of the XML?

    I have a fairly simple XML structure as in the example below. I'm storing XML data in XMLTYPE table without changes and the construction of a set of views for XML SQL data in addition to this access. It is very basic and indicated for example in Breaking Up several levels of XML data: http://download.oracle.com/docs/cd/E11882_01/appdev.112/e23094/xdb03usg.htm#autoId58

    The problem is that the XML data is missing an identifier for the order items that could be used as a primary key when document splitting audit (items) relational perspective.

    Currently I intend to construct such an identifier by combining a high level (which is unique) identifier to the ordinal position of the elements of order. Unfortunately I do not know how to do (see below). My second question is if it's a good idea at all or if something's substitute.

    I'm under Oracle 11.2.0.1.0.
    create or replace view orders_view as
    with xmldata as (select xmltype('<batch id="batch1">
    <order>
      <orderer>Joe</orderer>
      <items>
        <item>Standard widget</item>
      </items>
    </order>
    <order>
      <orderer>Jack</orderer>
      <items>
        <item>Regular widget</item>
        <item>Cooling widget</item>
      </items>
    </order>
    <order>
      <orderer>John</orderer>
      <items>
        <item>Super+ widget</item>
        <item>Super+ widget</item>
      </items>
    </order>
    </batch>') object_value from dual)
    select x1.batchid,
           (select x1.batchid || '-' || x2.orderid from dual) as orderid,
           x2.orderer_name,
           x2.nbr_of_items
    from xmldata,
    xmltable('$doc/batch' passing xmldata.object_value as "doc"
             columns
             batchid varchar2(10) path '@id',
             orderlist xmltype path 'order') x1,
    xmltable('/order' passing x1.orderlist
             columns
             orderid varchar2(20) path '"?"', /* What to put here to get expected results ? */
             orderer_name varchar2(10) path 'orderer',
             nbr_of_items number path 'count(items/item)') x2;
    
    column batchid format a10
    column orderid format a10
    column orderer_name format a10
    
    select * from orders_view;
    Expected results:
    BATCHID    ORDERID    ORDERER_NA NBR_OF_ITEMS
    ---------- ---------- ---------- ------------
    batch1        batch1-1   Joe                   1
    batch1        batch1-2   Jack                  2
    batch1        batch1-3   John                  2
    Where ORDERID is built like BATCHID + '-' + the position of the < order > element in the batch.

    Hello

    The clause for ORDINALITE does exactly what you want:
    http://download.Oracle.com/docs/CD/E11882_01/server.112/e17118/functions253.htm#SQLRF06232

    select x1.batchid,
           x1.batchid || '-' || x2.orderid as orderid,
           x2.orderer_name,
           x2.nbr_of_items
    from xmldata,
    xmltable('$doc/batch' passing xmldata.object_value as "doc"
             columns
             batchid varchar2(10) path '@id',
             orderlist xmltype path 'order') x1,
    xmltable('/order' passing x1.orderlist
             columns
             orderid for ordinality,
             orderer_name varchar2(10) path 'orderer',
             nbr_of_items number path 'count(items/item)') x2
    ;
    
  • Unique identifier using custom objects?

    I want to create a unique identifier on a custom, data object that allows you to set only the presentation in a CDO as

    First communication is - MO1

    Second submission is - MO2

    And should increase to each form submission.

    I had created a research on the custom data objects and put this script for single increment

    < script type = "text/javascript" >

    var _elqQ = _elqQ | [];

    _elqQ.push (['elqSetSiteId', ' 12345678']);

    _elqQ.push (['elqTrackPageView ']);

    (function () {}

    function async_load() {}

    var s = document.createElement ('script'); s.type = ' text/javascript '; s.Async = true;

    s.src = ' / / ' img.en25.com/i/elqCfg.min.js;

    var x = document.getElementsByTagName ('script') [0]; x.parentNode.insertBefore (s, x);

    }

    If (window.addEventListener) window.addEventListener ('DOMContentLoaded', async_load, false);

    Else if (window.attachEvent) window.attachEvent ("onload", async_load);

    })();

    < /script >

    < script type = "text/javascript" >

    function getQueryVariable (variable) {}

    var query = window.location.search.substring (1);

    var var = query.split ('and').

    for (var i = 0; i < vars.length; i ++) {}

    pair of var = vars [i] .split ('=');

    If (pair [0] == variable) {}

    return pair [1];

    }

    }

    }

    Window.OnLoad = Function)

    {

    var source = getQueryVariable ("MO");

    If (source! = "" & & source!) = "undefined" & & source! = undefined)

    {

    Alert (source);

    document.getElementById("MO").value = source;

    }

    _elqQ.push (['elqDataLookup ', escape('DataLookUpID'),' Yes < Order1 > < / Order1 > ']);

    }

    < /script >

    < script >

    function SetElqContent() {}

    If (this. GetElqContentPersonalizationValue) {}

    var ord_id = GetElqContentPersonalizationValue ('Counter1');

    document.getElementById("order_id").value = "MO" + ord_id;

    document.getElementById("unique").value = "Yes";

    } else {}

    }

    }

    < /script >

    Now created a hidden field in the destination called unique identifier page (whose id is id of order), an another hidden field named Unique incremented (value is MB and id is unique")

    Created a basic form it mapped to the same CDO on which I created the list of choices.

    Now I'm completely confused in further process.

    I did previously several times

    Suggest what to do next.

    Thanks in advance

    Is there a company need sequential ID in the CDO?

    by default, if you do not specify an identifier for the CDO and you leave the key field not mapped to form processing stage, you will have a system generated ID.  The ID is not extra if you have several actively put CDO update.

    Nathan

  • Synchronize the analog continuous entry and continuous analog output using the unique PCI6024E data acquisition card

    Hello

    I want to generate the continuous signal and at the same time I want to read that signal that I generate using a single card DAQ. I want to generate signal and the received signal is synchronized and in phase.

    I looked at several samples on the sync, but it quiet confusing. One using the same clock of entry while the other use a trigger to start. I use the PCI-6024E DAQ card.

    Can someone help me in this regard?

    In two of these screenshots, the task to HAVE started first (that's what you want, because it is the task of the slave).

    Typically for AO, you can simply write a unique period of your waveform, and then regenerate again and again.  Your waveform would be preset before the task starts.  If you need to update the waveform on the fly according to enter programming during execution of the task, you would disable the regeneration.  In addition, if the wave form is such that it cannot be easily represented by a predefined buffer (for example, it is a strange frequency which is not a same ditch at the bottom of the sample clock), then non-regeneration is the way to go.

    Best regards

  • sqlplus ORA-12154: TNS: could not resolve the connect identifier specified

    Hello

    I am not able to connect to the database using sqlplus, using following command:

    sqlplus activites@OCA010

    I get the error message "ORA-12154: TNS: could not resolve the connect identifier specified.

    I tried to connect by providing the full as connection string: "" sqlplus activities / [email protected]:1521 / compix "and he succeeded."

    I also tried to connect using sql developer by providing network TNS alias 'OCA010' it is also successful.

    Someone could please help out here and let me know how can I connect using sqlplus using aliases TNS network.

    content of the tnsnames.ora file is as follows

    tnsnames.ora # Network Configuration file: D:\Oracle\product\11.2.0\dbhome_1\network\admin\tnsnames.ora

    # Generated by Oracle configuration tools.

    COMPIX =

    (DESCRIPTION =

    (ADDRESS = (PROTOCOL = TCP) (HOST = LUCKY-HP)(PORT = 1521))

    (CONNECT_DATA =

    (SERVER = DEDICATED)

    (SERVICE_NAME = compix)

    )

    )

    BC =

    (DESCRIPTION =

    (ADDRESS = (PROTOCOL = TCP) (HOST = LUCKY-HP)(PORT = 1521))

    (CONNECT_DATA =

    (SERVER = DEDICATED)

    (SERVICE_NAME = BC)

    )

    )

    ORACLR_CONNECTION_DATA =

    (DESCRIPTION =

    (ADDRESS_LIST =

    (ADDRESS = (PROTOCOL = CIP)(KEY = EXTPROC1521))

    )

    (CONNECT_DATA =

    (SID = CLRExtProc)

    (PRESENTATION = RO)

    )

    )

    OCA01 =

    (DESCRIPTION =

    (ADDRESS = (PROTOCOL = TCP) (HOST = LUCKY-HP)(PORT = 1521))

    (CONNECT_DATA =

    (SERVER = DEDICATED)

    (SERVICE_NAME = OCA01)

    )

    )

    OCA010 =

    (DESCRIPTION =

    (ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.10.3)(PORT = 1521))

    (CONNECT_DATA =

    (SERVER = DEDICATED)

    (SERVICE_NAME = compix)

    )

    )

    Thanks in advance.

    2931143 wrote:

    Hi EdStevens,

    I used option TNS with Alias network as 'OCA010' in Sql Developer.

    I checked in tnsping and tnsnames.ora directory is correct.

    Please find below the exit of tnsping:

    C:\Users\LUCKY>tnsping OCA010

    AMT Ping Utility for 64-bit Windows: Version 11.2.0.1.0 - Production on October 29, 2015 21:07:38

    Copyright (c) 1997, 2010, Oracle.  All rights reserved.

    Use settings files:

    D:\Oracle\product\11.2.0\dbhome_1\NETWORK\ADMIN\sqlnet.ora

    AMT-03505: failed to resolve the name

    Have you worked from the link I provided?  (I don't think you have time to do).

    It is possible that your tnsnames.ora is corrupted by some weird characters printable somewhere.  In some versions of the oracle, he might be sensitive to spaces vs. tabs.  If in doubt, netca to add entries, rather than doing it by hand.

  • Interactive report - is possible to find and change if necessary the unique column.

    While creating an interactive report, I accidentally entered the wrong "single column" on the sql query page.  Is it a big problem and how do I find and change if necessary.

    33ac2d45-960f-45AF-acba-507f01d18e08 wrote:

    Please update your forum profile with a real handle instead of '33ac2d45-960f-45af-acba-507f01d18e08 '.

    While creating an interactive report, I accidentally entered the wrong "single column" on the sql query page.  Is it a big problem and how do I find and change if necessary.

    Query Builder
    Link to the simple view row Yes No
    Uniquely identify lines Single column ROWID
    Single column

    Yes. You can change this using the only the lines identified by / Unique column interactive properties in the section of the column of link in the attributes of the report definition report tab.

  • DBAdapter retains the unique causing value sequence force error

    Hi gurus BPEL.

    I am facing a problem in EBS integration of the invoice of the OTM.
    AP invoice header is inserted, the AP invoice lines does not get inserted due to the below error in BPEL. Import of payment fails, as there are no invoice lines.


    Anomaly of the non-recoverable system:
    Exception occurred when the link was invoked. Exception occurred during invocation of the JCA binding: "JCA binding run reference"insert"operations have to: DBWriteInteractionSpec Execute Failed Exception." insertion failed. The descriptor name: [APInvoice.ApInvoicesInterface]. Caused by java.sql.BatchUpdateException: ORA-00001: unique constraint (AP. AP_INVOICE_LINES_INTERFACE_U1) violated. Check the logs for the record output full DBAdapter before this exception. This exception is considered non reproducible, probably due to an error of modeling. To be classified as reproducible rather add property nonRetriableErrorCodes with the value "-1" for the deployment descriptor (i.e. weblogic - RA.Xml). Auto retry a reproducible fault set composite.xml for this invoke these properties: jca.retry.interval, jca.retry.count and jca.retry.backoff. All properties are integers. ". The called JCA adapter threw an exception of resource. Please review the error message above carefully to determine a resolution.


    SOA DB Connections seem to retain the sequence used in the cache and assign the same when the Bill for the line is inserted. This causes the Unique constraint error when inserting the table of AP invoice lines in EBS.

    I call the standard APInvoices.wsdl to make the insertion AP_INVOICE_LINES_INTERFACE. I noticed that in the file APInvoice - or - mappings.xml contains the following code
    > the sequence name < AP_INVOICE_LINES_INTERFACE_S < / sequence-name >
    < table sequence-field = "AP_INVOICE_LINES_INTERFACE" name = "INVOICE_LINE_ID" / >
    < / sequencing >
    < cache >
    weak-reference < cache-type > < / type of cache >
    <-cache size >-1 < / cache size >
    true < always refresh > - < / always refresh >
    < / cache >
    < remote caching >
    weak-reference < cache-type > < / type of cache >
    <-cache size >-1 < / cache size >
    < / remote caching >

    Is their anything I can change something in the BPEL process to refresh the cache of the sequence all the time.

    Alternative, I think now is below.
    1. check with customer if they can do the sequence AP_INVOICE_LINES_INTERFACE_S as NOCACHE.
    2. pull the invoice line via pl/sql adapter and complete the invoice line. But in this case, I'm not sure if Web APInvoice service code will try to update with the generated BPEL sequence.

    Any direction on this issue will be of great help.

    Thank you
    Shobz

    Hi Anushal,
    Thanks for the reply.

    Hi all
    The problem has been resolved with the creation of this «sequencePreallocationSize» DBAdpater
    As this property is set to 50 DB adapter's default, it did not fit with the INCREMENT BY the AP_INVOICE_LINES_INTERFACE_S sequence that has been set to 1.

    What happens in the adaptor DB is, when the first record is created, it takes the nextval in the sequence (assume it is 20), however it uses then his own sequence internal for the next 50 files by reference to the value set in this property (by creating records with primary keys from 20 to 70) and only when this internal sequence is exhausted it will return to the sequence of database.
    Meanwhile, any other inovoice created AP would recover DB, which could be his word to say value 21, in conflict with the inserted by BPEL, throw a unique constraint.

    Setting this property to 1 or corresponding increment sequence solved the problem.

    Thank you
    Shobz

Maybe you are looking for

  • ICloud or ITunes to back up a new Ipad

    I get a new IPad Pro this Thursday. What is the best way to save, using ICloud or Itunes. I want to backup contacts, bookmarks, photographis and all the rest of my old IPad.

  • extraction of data to CSV format

    Ladies and gentlemen- I'm looking to extract an array of real values in a csv format string. The number of values is arbitrary. I'm apparently missing his shot to the top of the string formatting in the function "channel Scan". If anyone could offer

  • Uninstall ASK TOOLBAR

    HOW CAN I UNINSTALL THE ASK TOOLBAR WITHOUT USING UNINSTALL FROM THE CONTROL PANEL BECAUSE IT DOES NOT WORK I GET AN ERROR MESSAGE TELLING ME THAT I MUST BE THE ADMINISTRATOR.  WHO DREAMS TO THE TOP OF SUCH THINGS.  LETS KEEP THINGS SIMPLE IS IT POSS

  • problem with the hp pavilion st 11-e100sf

    Hi all.. .Please I have hp pavilion touchsmart 11-e100sf when I want to install win xp (32-64 BIT...) and: -with external cd player... .no -J' I change the version of bios and setting... .no -J' I change xp version... .no I like to use the version of

  • TCPIP in a laptop with no connection

    Hello I have a software that needs TCPIP to work. I want to work on my laptop when it is disconnected from the network. I tried the old trick of DisableDHCPMediaSense but it no longer works. I tried to create an old modem connection, but I can't beca