Duplicate values generated by an Oracle sequence

Hello

Since a few days we are facing a weird problem in our application where the sequences seem to be generating duplicate values. Previously I thought is this is not possible, but now it seems to be a problem. Here are the details:

Select * from v$ version;

Oracle Database 11 g Enterprise Edition Release 11.2.0.2.0 - 64 bit Production

PL/SQL Release 11.2.0.2.0 - Production

CORE Production 11.2.0.2.0

AMT for Linux: Version 11.2.0.2.0 - Production

NLSRTL Version 11.2.0.2.0 - Production

We use to insert it into a table column of the last sequence value that is of course the primary key of the table column. Today, we received a violation of unique constraint on the column of the primary key (which is driven by the sequence). Below is the last value of the PK column

SELECT MAX(PCCURVEDETAILID) OF T_PC_CURVE_DETAILS;

162636

and below, was the last value in the sequence that has been less than the PK column

SELECT S_PCCURVEDETAILS. NEXTVAL FROM DUAL;

162631

Then we checked the data of the user_sequences and found the next sequence value (LAST_NUMBER) to be 162645 which was greater than the current value of the sequence:

Select * de user_sequences one a.sequence_name as "S_PCCURVEDETAILS" ;

SEQUENCE_NAME

MIN_VALUE

MAX_VALUE

INCREMENT_BY

CYCLE_FLAG

ORDER_FLAG

CACHE_SIZE

LAST_NUMBER

S_PCCURVEDETAILS

1

1E + 27

1

N

N

20

162645

I then modified the nocache sequence:

change sequence S_PCCURVEDETAILS NoCache ;

Select * de user_sequences one a.sequence_name as "S_PCCURVEDETAILS" ;

SEQUENCE_NAME

MIN_VALUE

MAX_VALUE

INCREMENT_BY

CYCLE_FLAG

ORDER_FLAG

CACHE_SIZE

LAST_NUMBER

S_PCCURVEDETAILS

1

1E + 27

1

N

N

0

162633

SELECT S_PCCURVEDETAILS. NEXTVAL FROM DUAL;

162632

We also face the same type of problem of violation of primary key to another sequence-driven table, a few days before.

In our code, I also checked that the primary key in the table value is inserted using only the value of the sequence.

Can anyone please suggest any reason this issue for

Concerning

Deepak

I faced a similar problem about 3 years ago. Here's the story, suddenly in my UAT environment a job that inserts data in some tables began to throw exceptions of primary key violation. After investigation, I found that the sequence is x, but the primary key for the table is x + y. investigation more - DBA moved all production data without even notifying the application support team.

Morale - pretty obvious

Tags: Database

Similar Questions

  • Query generates duplicate values in successive lines. I can null out them?

    I have had very good success (thanks to Andy) to obtain detailed responses to my questions posted, and I wonder if there is a way in a region report join query that produces lines with duplicate values, I cannot suppress (replace) printing of duplicate values in successive lines. In the event that I managed to turn the question into a mess unintelligible (one of my specialities), let me give an example:

    We try institutions undergraduate that an applicant has participated in the list and display information on release dates, gpa and major (s) / according to decision-making. The problem is that there may be several major (s) / minor (s) for a given undergraduate institution, so the following is produced by the query:

    Knox College hard 01/02 01/06 4,00 knitting
    Knox College hard 01/02 01/06 4,00 cloth repair
    Advanced University 02/06 01/08 3.75 Clothing Design
    Really advanced U 02/08 01/09 4,00 sportswear
    Really advanced U 02/08 01/09 4,00 basketball burlap

    I want it to look like this:

    Knox College hard 01/02 01/06 4,00 knitting
    Tissue repair
    Advanced University 02/06 01/08 3.75 Clothing Design
    Really advanced U 02/08 01/09 4,00 sportswear
    Burlap tennis shoe

    * (Edit) Please note that the repair of fabric and lines tennis shoe repair should be positioned properly in a table, but unfortunately had space here for a reason suppresed any. *

    Under the tuteage of Andy, I would say the answer is probably javascript one loop in the DOM, you are looking for the innerHTML of specific TDs in the table, but I want to confirm that, or Apex provides it a box I can check which will produce the same results? Thanks to the guy to advance and sorry for all the questions. We were charged to use Apex for our next project and learn it using it, as the training budget is non-existent this year. I love ;) unfunded mandates

    Phil

    Published by: Phil McDermott on August 13, 2009 09:34

    Hi Phil,

    JavaScript is useful, because the feature break column in the report attributes (which would be my first choice if poss).

    If you need to go beyond 3 columns, I would say something in the SQL statement itself. This means that the sort would probably have to be controlled, but it is doable.

    This is a pretty old thread on the subject: Re: grouping reports (non-interactive) -with an example here: [http://htmldb.oracle.com/pls/otn/f?p=33642:112] (I used a custom template for the report, but you don't need to go that far!)

    This uses the features of LAG in SQL to compare the values on line for values on the line before - ability to compare these values allows you to determine which ones to show or hide.

    Andy

  • Check all the duplicate values in the column COUNT()

    Hello

    I'll do some tests, and for this I need to retrieve data based on a single column for example test_data_col, which-
    1 to 3 or more count (test_data_col) for a given set of columns for example grp_col1, grp_col2, grp_col3 group
    2. overall recovered lines, this particular column has some duplicate values. I don't need displayed duplicates, just whether or not duplicates exist.

    Which could explain what I'm trying to do -

    grp_col1, grp_col2, grp_col3, test_data_col

    1, A, xyz, HELLO
    1, A, xyz, HELLO
    1, a, xyz, BYE
    1, A, xyz, goodbye

    2, C, pqr, WELCOME
    2, C, pqr, GOOD MORNING
    2, C, pqr, BAD MORNING

    So for condition 1, I do something like that.
    SELECT COUNT(test_data_col) cnt, grp_col_1, grp_col2, grp_col3
    FROM test_tab
    GROUP BY grp_col_1, grp_col2, grp_col3
    HAVING COUNT(test_data_col) >= 3;
    In this request, I want to do something that will tell me if the aggregate COUNT (test_data_col) has all the duplicate values it contains. Yet once, display the duplicates is not important here.
    SELECT COUNT(test_data_col) cnt, grp_col_1, grp_col2, grp_col3,
    /*some logic*/ dup_val
    FROM test_tab
    GROUP BY grp_col_1, grp_col2, grp_col3
    HAVING COUNT(test_data_col) >= 3;
    With the correct to replace coding / * some * logic /, I have following values.

    CNT, grp_col_1, grp_col2, grp_col3, dup_val

    4, 1, a, xyz, Y
    3, 2, C, pqr, N

    I have dup_val column to explain what I'm trying to achieve... Another way to know the existence of duplicates in the aggregate count will be fine.

    My version of Oracle's Oracle Database 11 g Enterprise Edition Release 11.1.0.7.0

    Do you like the answer!

    Your somewhere logical can be like that

    case when COUNT(test_data_col) != COUNT(distinct test_data_col) the 'Y' else 'N' end dup_val
    
  • An update on an index column with the same value generates an index to the top

    An update on an index column with the same value generates an update of the index?


    Thank you

    In addition to my previous answer, see also

    http://orainternals.WordPress.com/2010/11/04/does-an-update-statement-modify-the-row-if-the-update-modifies-the-column-to-same-value/

    Riyaj Shamsudeen has this to say:
    "+ We have an index on this column v1 and we update this column indexed too." Oracle was updating the indexed column? N ° if the values match the level of the indexed column, then the code of RDBMS isn't up-to-date index, a feature for optimization again. Only the row of table is updated, and the index is not updated. + "

    Hemant K Collette

  • Value of updating after each sequence of dish

    Hello

    I'm doing a labview program analysis principal components. My program works well, but since it is tons of calculation it takes too long and there is no way of knowing if all the steps is going well. I'm putting some kind of progress is in my front panel that tell me what stage of the program. The vi for progress bar I found works well with the loop 'for', but I don't have a lot of loop and but I have my program have step 6 and I used the flat sequence for each step. Is there a way to update the value of slide after each sequence of dish. I'm using Labview 8.2 and I have attached a picture of a vi model which has a blade and has four sequences flat and each sequence a 1 second delay. I want the value of slide to day as the first dish to pass to other sequence data.

    Thanks in advance

    Yogesh

    You can use a local Variable for this... right click on the slide-> Create-> the local Variable.

    Use a local variable whenever you want to update the value.

  • How to find duplicates of a field value? For example - in a field, I have values like {123,345,346,123}, now I want to remove the duplicate value in the field so that my output looks like {123,345,346}

    How to find duplicates of a field value? For example - in a field, I have values like {123,345,346,123}, now I want to remove the duplicate value in the field so that my output looks like {123,345,346}

    If it's an array you want to deduplicate then here is a script [for use in the Script Processor] I prepared earlier:

    var result = new Array();

    var added = new Object();

    If (input1 [0]! = null)

    {

    for (var i = 0; i)< input1[0].length;="">

    {

    var point = input1 [0] [i];

    If (! added [item])

    {

    added [item] = 1;

    result [result. Length] = item;

    }

    }

    }

    Output 1 = result;

    Kind regards

    Nick

  • Retrieving values from XML in Oracle 9i - part II

    Hello

    regarding my previous post retrieving values of XML in Oracle 9i , I now have a different requirement.

    Assuming that the XML is as follows:

    <? XML version = "1.0" encoding = "UTF-8"? >

    " < GenericRequest xmlns =" http://webservices.mysite.com/test "xmlns:ns =" " http://webservices.mysite.com/test/NS "xmlns:ns1 =" " http://webservices.mysite.com/test/ns1 "xmlns:ns2 =" " http://webservices.mysite.com/test/ns2 ">

    < ns1:order >

    < ns1:orderItems >

    < ns1:orderItem >

    create < ns1:operation > < / ns1:operation >

    < ns1:brickId > TST002 < / ns1:brickId >

    < ns1:brickAttributes >

    < ns1:attribute >

    < ns2:name > COUNTRY < / ns2:name >

    < ns2: value > U.S. < / ns2: value >

    < / ns1:attribute >

    < ns1:attribute >

    < ns2:name > CUST_ID < / ns2:name >

    < ns2: value > 12345 < / ns2: value >

    < / ns1:attribute >

    < ns1:attribute >

    < ns2:name > CITY < / ns2:name >

    < ns2: value > New York < / ns2: value >

    < / ns1:attribute >

    < / ns1:brickAttributes >

    < / ns1:orderItem >

    < ns1:orderItem >

    Update < ns1:operation > < / ns1:operation >

    < ns1:brickId > TST001 < / ns1:brickId >

    < ns1:brickAttributes >

    < ns1:attribute >

    < ns2:name > COUNTRY < / ns2:name >

    < ns2: value > U.S. < / ns2: value >

    < / ns1:attribute >

    < ns1:attribute >

    < ns2:name > CUST_ID < / ns2:name >

    < ns2: value > 22222 < / ns2: value >

    < / ns1:attribute >

    < ns1:attribute >

    < ns2:name > CITY < / ns2:name >

    < ns2: value > Los Angeles < / ns2: value >

    < / ns1:attribute >

    < / ns1:brickAttributes >

    < / ns1:orderItem >

    < / ns1:orderItems >

    < / ns1:order >

    < / GenericRequest >

    As you can now see the XML contains several elements of the order. For each agenda item, I have a single operation and a brick_id. Then, for each item on the agenda, I have a list of brickAttributes (name and value).

    How can I get something like that?

    OPERATION BRICK_ID NAME VALUE

    --------- -------- ------- -----------

    create TST002 COUNTRY WE

    create TST002 CUST_ID 12345

    create TST002 New York CITY

    update of TST001 COUNTRY United States

    Update TST001 CUST_ID 22222

    Update TST001 CITY Los Angeles

    Version of database is 9.2.0.8

    SELECT * FROM version of v$.

    BANNER

    ----------------------------------------------------------------

    Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64 bit Production

    PL/SQL Release 9.2.0.8.0 - Production

    CORE Production 9.2.0.8.0

    AMT for HP - UX: 9.2.0.8.0 - Production Version

    NLSRTL Version 9.2.0.8.0 - Production

    Kind regards.

    Alberto

    Response of Odie, result is that extend

    with sample_data as (
    select xmltype(
    '
    
              
                
                  
                    create
                    TST002
                    
                      
                        COUNTRY
                        US
                      
                      
                        CUST_ID
                        12345
                      
                      
                        CITY
                        New York
                      
                    
                  
                  
                    update
                    TST001
                    
                      
                        COUNTRY
                        US
                      
                      
                        CUST_ID
                        22222
                      
                      
                        CITY
                        Los Angeles
                      
                    
                  
                
              
    ') xmldoc
    from dual
    )
    select extractvalue(value(x), 'ns1:orderItem/ns1:operation', 'xmlns:ns1="http://webservices.mysite.com/test/ns1"') as operation
         , extractvalue(value(x), 'ns1:orderItem/ns1:brickId', 'xmlns:ns1="http://webservices.mysite.com/test/ns1"') as brick_id
         , extractvalue(value(y), 'ns1:attribute/ns2:name', 'xmlns:ns1="http://webservices.mysite.com/test/ns1", xmlns:ns2="http://webservices.mysite.com/test/ns2"') as name
         , extractvalue(value(y), 'ns1:attribute/ns2:value', 'xmlns:ns1="http://webservices.mysite.com/test/ns1", xmlns:ns2="http://webservices.mysite.com/test/ns2"') as value
    from sample_data t
       , table(
           xmlsequence(
             extract(
               t.xmldoc
             , '/GenericRequest/ns1:order/ns1:orderItems/ns1:orderItem'
             , 'xmlns="http://webservices.mysite.com/test", xmlns:ns1="http://webservices.mysite.com/test/ns1"'
             )
           )
         ) x
       , table(
           xmlsequence(
             extract(
               value(x)
             , 'ns1:orderItem/ns1:brickAttributes/ns1:attribute'
             , 'xmlns:ns1="http://webservices.mysite.com/test/ns1"'
             )
           )
         ) y
    ;
    

    As shown, it simply retrieves to a higher level object that repeats once in table x and happening at the table there, which returns the expandable nodes.  The join is managed by value (x) in the second simple table.  It assumes that there is always 1 or several nodes of ns1:attribute in each ns1:orderItem.

  • Reset oracle sequence

    Hello world

    with the help of an ETL tool I'm migrating data in oracle database tables here I do not use oracle sequence. After the migration, I have to reset the sequence.

    ex: table: employee, name of the sequence: employee_id_seq

    initially:

    create sequences employee_id_seq

    start by increment of 1 by 1;

    data in the Employee table:

    employee_id ename

    --------               ---------

    1                    aa

    5                    bb

    6                    cc

    to restore order, I drop this sequence and recreate the sequence

    IE.,.

    employee_id_seq sequence of fall;

    Max (employee_id) here is 6 nextvalue is 7.

    create sequences employee_id_seq

    starts with 7 increment of 1;

    Select double employee_id_seq.nextval;

    nextval:

    --------

    7

    instead of delete and re-create the sequence any other method is there to reset the sequence.so, I want to create a dynamic script that will reset all of the sequences.

    Please advise on this.

    Thank you

    Jery

    Hi all

    script below works fine

    CREATE OR REPLACE PROCEDURE SP_DYNAMIC_RESET_SEQ_SCRIPT

    as

    SQLSTR1 varchar (40);

    SQLSTR2 varchar (40);

    SQLSTR3 varchar (40);

    SQLSTR4 varchar (40);

    number of max_val_incol;

    number of max_val_currval;

    T1 varchar (1000);

    Q2 varchar (1000);

    T3 varchar (1000);

    Start

    for c in (select TABLE_NAME from M_ALL_DYNAMIC_DRIVER_san)

    loop

    SQLSTR1: = c.table_name; -This will store the name of the table [emp, dept]

    SQLSTR2: = upper (TRIM (SQLSTR1)) | ' _ID'.

    SQLSTR3: = upper (TRIM (SQLSTR1)) | ' _ID_SEQ';

    SQLSTR4: = SQLSTR3 |'. NEXTVAL';

    RUN IMMEDIATELY "SELECT MAX ('|)" SQLSTR2 |') OF ' | SQLSTR1 IN max_val_incol;

    Q1: = 'ALTER SEQUENCE |  SQLSTR3 | ' INCREMENT ' | max_val_incol;

    EXECUTE IMMEDIATE q1;

    eXECUTE IMMEDIATE 'SELECT'. SQLSTR4 | 'FROM DUAL"IN max_val_currval;

    Q2: = 'ALTER SEQUENCE |  SQLSTR3 | ' INCREMENT OF 1';

    EXECUTE IMMEDIATE T2;

    end loop;

    END;

    Thank you all, helped on that.

  • Two values differ Mager perspsective Oracle?

    Hello, I have two values that are apparently the same.

    Select distinct record_mod from T_NSW_STG_LEG_SCHEDULE t where T.SRC_CONT_ID = '142590080818000000000' and t.schd_amt = 293.34;

    the result is

    RECORD MOD_
    3
    3

    Why if the values are the same oracle saysthe are different. The only thing I know is that they are in different partitions.

    Thanks in advance!

    >
    the data type is a NUMBER 2 positions in length
    >
    Change the query slightly to eliminate any formatting problems

    After the release of

    SELECT DISTINCT DUMP (record_mod)
      FROM T_NSW_STG_LEG_SCHEDULE t
     WHERE T.SRC_CONT_ID = '142590080818000000000' AND t.schd_amt = 293.34;
    

    If that produces two identical lines, then you have a bug.

    What is your version of Oracle 4-digit?

  • Obtaining duplicate values.

    Hi all

    I have a table with collums as follows:
    create table uni_ids 
    (ID varchar2(10),
     field number,
     activity number,
     frequence number,
     field_1 number,
     field_2 varchar(100));
    and the following data:
     insert into uni_ids (ID,field,activity,frequence,field_1,field_2) values('N1999',1,2,600,15,'SOME TEXT');
     insert into uni_ids (ID,field,activity,frequence,field_1,field_2) values('N1999',1,2,600,15,'SOME TEXT');
     insert into uni_ids (ID,field,activity,frequence,field_1,field_2) values('N1990',1,3,600,15,'SOME TEXT');
     insert into uni_ids (ID,field,activity,frequence,field_1,field_2) values('N1990',1,4,600,15,'SOME TEXT');
     insert into uni_ids (ID,field,activity,frequence,field_1,field_2) values('N1990',1,2,600,15,'SOME TEXT');
     insert into uni_ids (ID,field,activity,frequence,field_1,field_2) values('N1991',1,2,600,15,'SOME TEXT');
     insert into uni_ids (ID,field,activity,frequence,field_1,field_2) values('N1991',1,3,600,15,'SOME TEXT');
     insert into uni_ids (ID,field,activity,frequence,field_1,field_2) values('N1991',1,3,600,15,'SOME TEXT');
     insert into uni_ids (ID,field,activity,frequence,field_1,field_2) values('N1992',1,2,600,15,'SOME TEXT');
     insert into uni_ids (ID,field,activity,frequence,field_1,field_2) values('N1997',1,2,600,15,'SOME TEXT');
     insert into uni_ids (ID,field,activity,frequence,field_1,field_2) values('N1995',1,8,600,15,'SOME TEXT');
    What I would get with my querry is duplicated files, so resoul of it should be like:
    ID               field     activity     frequence          field_1               field_2
    N1999          1          2               600                    15                    SOME TEXT
    N1999          1          2               600                    15                    SOME TEXT
    N1991          1          3               600                    15                    SOME TEXT
    N1991          1          3               600                    15                    SOME TEXT
    Insofar as that I came up with this SQL that does not work as it should. It returns the other (do not duplicate) values as well...
    select
    
        a.id,
        a.field,
        a.activity,
        a.frequence,
        a.field_1,
        a.field_2
        
    from uni_ids a
    
    where a.rowid <> (
    select 
      max(b.rowid)
    from  uni_ids b
    where a.id= b.id 
          and a.field = b.field 
          and a.activity = b.activity)
    
    ORDER BY a.id;
    If anyone can help please post solution

    Thank you!

    Select
    a.ID,
    a.Field,
    a.Activity,
    a.FREQUENCE,
    a.Field_1,
    a.Field_2
    of uni_ids one
    where
    (id, domain, activity, frequency, Champ_1, Champ_2) in
    (select id
    field
    activity
    frequency
    Champ_1
    Champ_2
    of uni_ids
    Group by domain, activity, frequency, Champ_1, id, Champ_2
    having count (*) > 1);

  • Returns all the duplicate values in object lookup (PHP, drop-down list)

    Hi, I have a PHP page I designed as a search page. I have a number of drop-down lists that get their dynamic values from the fields in a MySQL database.

    At present, if there are any entries that have duplicate values in a certain area, they are all listed, in the order of the index database. For example:

    City:

    Derby

    Stoke

    Stafford

    Stoke

    Derby

    Derby

    Stoke

    etc...

    Now, I want to do is be able to show all results for a given city. In the find what drop-down list box, I would than each of the cities to appear only once rather than every time it is registered. included in this, I would like the page of results to then display ALL results that match this search criteria.

    Thus, in the example above, "Derby" appears only once, but when the user has selected 'Derby', it would return all three results in the results page.

    My results page is built on a dynamic form, so I am confident that the results page would make it according to the needs. However, how can I get the drop-down list box to ask him?

    > 'SELECT DISTINCT table1.champ1, table1.champ2, table1.champ3 FROM Table1 ";

    Duplicate rows to remove the DISTINCT keyword strength SQL. In other words, that it will only return the unique combinations of fields in your selection list. If you examine your results set, you will see that each line is separate, although there may be duplicates in a particular area. Because you want to populate a drop-down list, you must include a field in your select list only, otherwise you get of the dupes.

  • Customize alert messages to check the duplicate value and alert success

    Hi all

    I want to show two alert against the button 'Submit' even at -.

    1 the attention of messages to check the duplicate value and show the duplicate value found alert and
    2 alert if successful the form's success to commit no duplicate values found.

    I did all the thing but what alert-1 show and I pressed the ok button of the alert, then the second alert also shows that I don't want to show.

    Who can I do about it? Have someone to help me!

    Arif

    Use the folliwng in PRE-INSERT-TRIGGER.

    There is not a lot of changes with the exception

    where CANCELLATION_USERID =: CANCELLATION_USERID;

    and

    If valExists > 0 then

    declare
    
     valExists number;
    
    begin
    
     select count(*) into valExists
     from USERDELETION
     where CANCELLATION_USERID = to_char(:CANCELLATION_USERID);
    
     if valExists > 0 then
      message('Duplicate value found !');
      -- show_alert('ERROR_ALERT');
     else
      message('All is well');
      -- show_alert('All is well ');
     end if;
    
    end;
    
  • Select duplicate values

    Hi guys of


    How can I select only the duplicate values in a column? upward on the selection I'll be removing duplicates



    Thank you

    REDA

    Hi reda,.

    delete from table_name
          where rowid not in (  select min(rowid)
                                  from table_name
                              group by column_name);
    

    Concerning
    Peter

  • Trying to force a value of the type 'oracle.jbo.domain.Number' type 'java.

    Hi, I am very new in the world of JDeveloper and I get the following error:
    Trying to force a value of the type 'oracle.jbo.domain.Number' to type 'java.lang.Long.

    I'm trying to multiply two input values, say, 3.5 and 1000.
    It corresponds to a field in the commission which can be modified by the end user (this is why I need to store the value). The arithmetic operation is just a "recommendation" of the value that the end user will be finally type.

    In the jspx (which is using PPR) the button submit, I have the following code in the determination of the value of the field:
    #{bindings.CommProv.inputValue * links.} Monto.inputValue}

    If someone could give any help on this, I would really appreciate it.

    Kind regards
    Max.

    Max,

    Try this:
    #{bindings.CommProv.inputValue.bigDecimalValue * links.} Monto.inputValue.bigDecimalValue}

    This will convert your oracle.jbo.domain.Number values to a form that can be multiplied.

    Hope this helps
    Blaise

  • ORDER/ALL in oracle sequences

    Hello
    I'm a single instance database running on Oracle 10.2.0.4.
    If I have a sequence created using the ORDER clause, oracle will ensure that sequence numbers are still classified?
    I understand that the sequences will have gaps. It is correct. I just want to know that it will be always ordered.

    Is it really important if we use the COMMAND/ALL for unique instances? What happens if we give ALL?

    I have read the oracle documentation, and I still have these questions.

    Thank you
    Delphine

    user13312943 wrote:
    Hello
    I'm a single instance database running on Oracle 10.2.0.4.
    If I have a sequence created using the ORDER clause, oracle will ensure that sequence numbers are still classified?
    I understand that the sequences will have gaps. It is correct. I just want to know that it will be always ordered.

    Is it really important if we use the COMMAND/ALL for unique instances? What happens if we give ALL?

    I have read the oracle documentation, and I still have these questions.

    Thank you
    Delphine

    Seems pretty clear in the documentation I looked upwards
    http://docs.Oracle.com/CD/B19306_01/server.102/b14200/statements_6015.htm#SQLRF01314
    "
    ORDER specify in order to make sure that sequence numbers are generated in order of demand. This clause is useful if you use numbers in sequence as the timestamps. Guarantor of order is generally not important for sequences used to generate primary keys.

    * ORDER is necessary only to guarantee ordered generation if you are using Oracle with Real Application Clusters database. If you are using exclusive mode, the sequence numbers are always generated in order.*

    ALL specify ALL if you do not want to guarantee sequence numbers are generated in order of demand. It is the default value.
    "

    See you soon,.

Maybe you are looking for