Sequence Numbers within IFS!!

Guys I wish to maintain and generate an automatic number. How
can I do this? Here is the scenario, when a user log into IFS
they will input information that needs to be held in a Temp
table or a group of objects. But, there need to be some
automatic generated sequence number to keep up with the rows.
Once the user input the info, my application will need to
generate the sequence number and email it to the user.
I'm using Windows and Solaris
IFS 1.1.9
Please help,
Jeff

Thanks guys, I think I will create an application object in IFS
and use the ID of the object. I really wanted to maintain this
in a database table but the only way to do this is to do my own
connection with the schema of which the table is stored in,
using a connection object? If I was using the new IFS this
would not be a problem. I'm still open for suggestions though.
Jeff

Similar Messages

  • Sequence numbers - with no gaps!

    I seek some advice from anyone with first hand experience in this area.
    My need is simple; generate a new ID number for every order for use as the primary key.
    Obviously this simple exercise could be a bottleneck as volumes ramp up, so I was pleased to find the Oracle feature to generate such numbers (efficiently presumably). However, upon closer reading it was apparent that aborted transactions would result in the loss of the number allocated to to that order if another transaction had obtained the next sequence number already (as one would want it to, rather than serializing transactions).
    I don't want to have gaps in the sequence as the system needs a high degree of auditability. I am thinking of utilising the Autonomous Transaction feature to write the newly acquired sequence number to the order file with a flag indicating that the record is incomplete, and that record is to be skipped by normal system applications (but available to audit reports which will interpret the reason correctly), then returning to the far more extensive main transaction which updates many tables.
    The other alternative is to control sequence numbers within the application itself, or try to get the sequence number as the very last step before writing the new order record, but this probably won't guarantee gapless reliability either. The ID itself has no significance, and it doesn't matter if an ID was used out of strict date/time sequence, so I really don't want to execute these updates serially.
    So, my question is this:
    a) do most people use the builtin sequence number feature?
    b) if so, is there a standard technique for avoiding or accounting for gaps?
    c) if the application must take over this task, should the counter for the last used ID be in a single row table to minimise bottlenecks caused by the thisrecord being locked? There will be several such counters for different aspects of the application, and i thought of having each in its own row in a small table, but I'm concerned about the whole table getting locked and freezing out otherwise-unrelated updates.
    Thanks for any advice you may have.
    CS

    user8821725 wrote:
    I seek some advice from anyone with first hand experience in this area.
    My need is simple; generate a new ID number for every order for use as the primary key.
    Obviously this simple exercise could be a bottleneck as volumes ramp up, so I was pleased to find the Oracle feature to generate such numbers (efficiently presumably). However, upon closer reading it was apparent that aborted transactions would result in the loss of the number allocated to to that order if another transaction had obtained the next sequence number already (as one would want it to, rather than serializing transactions).
    I don't want to have gaps in the sequence as the system needs a high degree of auditability. One of the very very few reasons for me to have a requirement for "gapless" sequences is if you have a kind of checking mechanism outside of the database that is implemented using this gapless number. I had such a requirement once, when exchanging files with another bank where we had to ensure that each file was transferred correctly and in the right order. Your "high degree of auditability" might be a similiar requirement. Just remember as long as you are still inside the database you can use other mechanisms to increase auditability.
    I am thinking of utilising the Autonomous Transaction feature to write the newly acquired sequence number to the order file with a flag indicating that the record is incomplete, and that record is to be skipped by normal system applications (but available to audit reports which will interpret the reason correctly), then returning to the far more extensive main transaction which updates many tables.Hm. I don't see why you want to use Autonomous Transactions for this. It might be useful to lessen locking conflicts , depending how your future sequence mechanism will be built.
    >
    The other alternative is to control sequence numbers within the application itself, or try to get the sequence number as the very last step before writing the new order record, but this probably won't guarantee gapless reliability either. The ID itself has no significance, and it doesn't matter if an ID was used out of strict date/time sequence, so I really don't want to execute these updates serially.I would go for generating the sequence as the very last step. It needs to be set to NOCACHE of cause. This will garantee that the sequence fetched from mySeq.nextval is gapless. The problem is then in your application. Your application must be built in a way that it ensures to use this sequence, or at least to create a noticable alert when this generated sequence can't be used anymore. In essence this means. Each unhandled (database) error that happens after you fetched the next sequence value must be raised in a way that informs all relevant people about this error.
    Example: It might be that you use the sequence to write an order file. What happens if halfway through writing the file your disk runs out of space? This can be such an issue where a sequenced value will be lost. Your organisation must take care of those things.
    >
    So, my question is this:
    a) do most people use the builtin sequence number feature?Yes. But for some tasks a sequence is not the best way, for example if you want a numbering for each item of your order. This "sequence" needs to restart with every new order.
    b) if so, is there a standard technique for avoiding or accounting for gaps?NOCACHE => Avoids gaps during generation
    Database Trigger => Tries to use the sequence as late as possible
    c) if the application must take over this task, should the counter for the last used ID be in a single row table to minimise bottlenecks caused by the thisrecord being locked? There will be several such counters for different aspects of the application, and i thought of having each in its own row in a small table, but I'm concerned about the whole table getting locked and freezing out otherwise-unrelated updates.This is a possibility and the issues you describe are why we avoid such a solution in general. Autonomous transactions help to reduce the locking conflict, but they increase the chance that you produce gaps.
    >
    Thanks for any advice you may have.
    CSOracle can guarantee to produce gapless sequences. But it can't guarantee that your application uses such a sequence in a gapless way.

  • Annotation Sequence Numbers

    Is there some way to turn these off from within Acrobat? All I've been able to locate is a registry key. Unfortunately, we have a system which sets this to on, and I have a small subset of documents where I'd like to force it back off again.

    The "annotation sequence numbers" are probably referring to the "Tab Order".  You can access and modify the "Tab Order" from Designer; Go to the "Window" option and click on "Tab Order".  For ES4 it's between "Data View" and "Object Library".  Under "Tab Order", there's a button that should either be displayed as "Show Order" or "Hide Order".  Clicking on that button will toggle between the two choices.  I am assuming that if you click to make it "Hide Order" that your numbers will disappear.

  • Temporary sequence numbers

    Hello all,
    Is there any provision in the mobile server and mobile client to synchronize the Lite database by using temporary sequence numbers for the newly added records?
    In the application that we are involved with, we are being asked to provide this behavior.
    In details we would ensure that the sequence generation works as it works for the desktop PCs as well.
    As far as we know we should follow the following steps for the synchronization:
    1. sync new rows with the server
    1a. the server syncs with the database, replaces temporary seqnos with the ones that come from the database
    2. sync the new seqnos back to the mobile device...
    Please let me know whether it is possible or not with the Oracle Lite system,
    Thanks in advance,
    Balazs

    do you have some need to keep the range of DONOR_ID sequential?
    In our implementation we use the other method that Greg has mentioned, defining sequences within the oracle lite publication itself
    We use sequence generated ID values as the primary key on a lot of our tables, and the columns are defined as NUMBER(12) (reasons are historical, and not necessarly for any good reason - but stuck with it)
    looking at the worst case scenario (to keep things simple) in the server we have table PLOTS. The highest ID value is around 5.5 million, with an annual growth rate of 500,000 for server created records. The number of records that would be created on any particular client on an annual basis is more like 2,000.
    When you define a sequence within the mobile server you specify a 'template' for each sequence consisting of
    name (eg: PLO_ID_SEQ)
    start value
    increment
    window (number of values to assign to a particular user)
    threshold (point at which the next set of values is sent to the user)
    for PLO_ID_SEQ, the start value is set at 500 million (overkill, but server generated id values will never reach this point in practice), increment is 1, window = 100,000 and threshold is 95,000
    This in practical terms means that the sequences on the clients will never need to be re-sent as the values will never reach the threshold, and there will never be any cross over with server generated sequences
    When you add your first client to the application, the actual sequence start value will be set for that client as 500,000,000. for the second user added it will be 500,100,000, for the third 500,200,000 etc.
    On the whole the mobile server manages this ok, but we have found that if there is a need to replace a client by rebuilding the database from scratch, occasionally it does not correctly maintain the last value used. To get around this we reset the user prior to the rebuild (this resets the sequence start for that user to the next range of values)
    This works ok, and is straightforward to implement as you need no code change/data manipulation on the server, but does result in the source of the records being obviously different (can be useful), and you cannot assume that the highest id value is the most recent record (can be a problem for reports)

  • Finding missed sequence numbers and rows from a fact table

    Finding missed sequence numbers and rows from a fact table
    Hi
    I am working on an OLAP date cube with the following schema:
    As you can see there is a fact transaction with two dimensions called cardNumber and Sequence. Card dimension contains about three million card numbers. 
    Sequence dimension contains a sequence number from 0 to 255. Fact transaction contains about 400 million transactions of those cards.
    Each transaction has a sequence number in 0 to 255 ranges. If sequence number of transactions of a card reaches to 255 the next transaction would get 0 as a sequence number.
    For example if a card has 1000 transactions then sequence numbers are as follows;
    Transaction 1 to transaction 256 with sequences from 0 to 255
    Transaction 257 to transaction 512 with sequences from 0 to 255
    Transaction 513 to transaction 768 with sequences from 0 to 255
    Transaction 769 to transaction 1000 with sequences from 0 to 231
    The problem is that:
    Sometimes there are several missed transactions. For example instead of sequence from 0 to 255, sequences are from 0 to 150 and then from 160 to 255. Here 10 transactions have been missed.
    How can I find all missed transactions of all cards with a MDX QUERY?
    I really appreciate for helps

    Thank you Liao
    I need to find missed numbers, In this scenario I want the query to tell the missed numbers are: 151,152,153,154,155,156,157,158,159
    Relative transactions are also missed, so I think it is impossible to get them by your MDX query
    Suppose this:
    date
    time
    sequence
    20140701
    23:22:00
    149
    20140701
    23:44:00
    150
    20140702
    8:30:00
    160
    20140702
    9:30:00
    161
    20140702
    11:30:00
    162
    20140702
    11:45:00
    163
    As you can see the sequence number of the last transaction at the 20140701 is 150
    We expecting that the first transaction of the next day should be 151 but it is 160. Those 10 transactions are totally missed and we just need to
    find missed sequence numbers

  • LR3 Web Gallery Sequence Numbering bug?

    Anyone else getting this problem with sequence numbering in the web HTML templates? Basically, as you jump through photos the photo number is always stuck on #1, never changes when you go to the next photo - should go 1, 2, 3, 4, 5...
    I just sent a bug report but, wondering if anyone else found a fix for this yet.
    This is in LR3 on Mac - really trying to do this on TTG Highslide gallery but, same problem occurs in default Lightroom HTML gallery.
    Thanks.
    ******BUG******
    Concise problem statement:
    Steps to reproduce bug:
    1. Go to Web Module
    2. Choose default HTML Gallery
    3. Under Image Info set Caption to Sequence
    Results:
    Sequence caption always shows 1/total images.
    i.e. 1/10,  1/10,  1/10,  1/10
    Expected results:
    Sequence should increment current image number / total images as you click through images.
    i.e. 1/10, 2/10, 3/10, 4/10

    Yeah, still have the numbering problem using the Image Info sequence outputs.
    But, if you use the standard Lightroom Flash Gallery it has it's own sequence numbering output (that does not use Image Info captions)  and it does work correctly. These show up as 1/9, 2/9, 3/9 etc. on each photo down by the back/next buttons.
    Also, the Cell Numbering does work when using the Lightroom HTML Gallery - though, those numbers only appear on the index page not on individual photos.
    But, haven't seen a good work-around yet for sequence numbering in Image Info area. Only option there seems to be typing numbers manually into the caption. Or, if you need the caption for other info maybe use one of the IPTC fields like Headline to type in your numbers. You can then do a Custom Setting in web module to have those text fields show up with your photos.
    Really hoping we will see a LR 3.1 sometime soon with a fix - should be an easy correction for Adobe.

  • Sequence numbers not generated sequentially?

    Our situation: We have encountered an issue with our database, where it appears that a sequence has generated a number out of sequence, that is, to fill in a gap left previously. That is, in the affected table, we have records like:
    Seq No Date (DD/MM/YY)
    1 29/12/08
    2 29/12/08
    3 4/1/09
    4 29/12/08
    The code that actually updates the database is from a third party, so I am unable to prove the following, but the vendor assures me that:
    1. The sequence numbers are generated using "select message_number.nextval from dual".
    2. The Date column is not modified after the record is created. ( Nor is it supposed to be )
    The sequence is created by "CREATE SEQUENCE MESSAGE_NUMBER START WITH 10000000 INCREMENT BY 1 MINVALUE 10000000 CACHE 20 NOCYCLE NOORDER"
    This was detected only yesterday, after the event, and is very uncommon ( I have not found another instance, but there are over 7,000,000 records, so I haven't performed an exhaustive search). We are relying on the sequence numbers always being generated sequentially, as in each message_number.nextval is greater than the previous one.
    I don't think that the date change was due to a user accidentaly changing the date. Related records to '3' are also dated 4/1/09, there is no facility for a user to change the date outside of accessing the database directly, and even the developers do not have write access to this database.
    My questions:
    1. Is this normal behaviour for a sequence? To go back and fill in a gap like this? If so we'll have to change one of the assumptions of one of our modules.
    2. Should the sequence be defined with 'ORDER' rather than 'NOORDER' to stop this?
    3. Could this be a bug in the sequence number generation? We are using Oracle 9.2.0.1.0.
    4. Is this situation "impossible", and therefore there is a bug in the vendor library that we need to track down.
    Thanks for your help,
    Wayne.

    wayneb wrote:
    Our situation: We have encountered an issue with our database, where it appears that a sequence has generated a number out of sequence, that is, to fill in a gap left previously. That is, in the affected table, we have records like:
    Seq No Date (DD/MM/YY)
    1 29/12/08
    2 29/12/08
    3 4/1/09
    4 29/12/08
    The code that actually updates the database is from a third party, so I am unable to prove the following, but the vendor assures me that:
    1. The sequence numbers are generated using "select message_number.nextval from dual".
    2. The Date column is not modified after the record is created. ( Nor is it supposed to be )There might be a delay between fetching the sequence and storing the sysdate? value in the database.
    maybe some user prepared a new record. Then went to some new years eve party and when he came back at the begining of next year he commited the data (record send to database, database is adding date column by some trigger...).
    >
    The sequence is created by "CREATE SEQUENCE MESSAGE_NUMBER START WITH 10000000 INCREMENT BY 1 MINVALUE 10000000 CACHE 20 NOCYCLE NOORDER"
    This was detected only yesterday, after the event, and is very uncommon ( I have not found another instance, but there are over 7,000,000 records, so I haven't performed an exhaustive search). We are relying on the sequence numbers always being generated sequentially, as in each message_number.nextval is greater than the previous one.
    I don't think that the date change was due to a user accidentaly changing the date. Related records to '3' are also dated 4/1/09, there is no facility for a user to change the date outside of accessing the database directly, and even the developers do not have write access to this database.
    My questions:
    1. Is this normal behaviour for a sequence? To go back and fill in a gap like this? If so we'll have to change one of the assumptions of one of our modules.No sequences don't fill gaps. However it is possible to fetch and cache values from a sequence for later usage. Especially in a RAC environment you can get sequence values that are not in order of time.
    2. Should the sequence be defined with 'ORDER' rather than 'NOORDER' to stop this?No.
    3. Could this be a bug in the sequence number generation? We are using Oracle 9.2.0.1.0.Extremly unlikely, but you can always check Metalink.
    4. Is this situation "impossible", and therefore there is a bug in the vendor library that we need to track down.You can create such situations programatically. Whether it is a bug depends on the specifications for the software.
    >
    Thanks for your help,
    Wayne.Edited by: Sven W. on Mar 24, 2009 5:00 PM

  • Page item sequence numbers

    Maybe this one is for a future improvement...
    After reordering page items using the drag and drop feature the items all have a sequence number one greater than it's predecessor.
    This makes it hard to put a new item in between existing ones. Generating sequence numbers 5 or 10 apart would make this a bit easier.

    hi,
    i dont know whether you have tried this before...
    10
    10.1
    10.2
    10.3
    20
    20.1
    20.2
    30
    this is acceptable in apex item sequence number for inserting new items .
    Thanks
    Mark Wyatt
    Edited by: Websoft on Sep 30, 2009 6:33 AM

  • Documents Sequence numbering for each Branch (Branch as segment)

    dear Brother's
    can help me in this case
    Documents Sequence numbering for each Branch (Branch as segment)
    Each branch have an own sequence
    I implement oracle Business suite ERP for Five Branch ( KSA,INDIA,DUBIA ,JORDAN ,SYRIA )
    I want to segregate sequence numbering for each branch, sequence for (
    Sales order, invoice, purchase order, Invoice)
    Is there a possibility to link sequence with any segment I define it in COA like Branch
    Note: I work in single Operating Unit

    Hi,
    You might be able to adapt this solution to work for your case: https://acrobat.com/#d=*2slxPLc6c-H0U449vA4jQ. It's more about page numbers for different Master Pages, but you may be able to tie it to the different data nodes.
    Niall

  • How to read sequence numbers from RTP packets

    hi everyone.
    i want to know how to read sequence numbers of RTP packets. I will need that to reconstruct my stream from packet losses.
    URGENT Help needed!!

    The StreamTokenizer parses all numbers into only one type of value, a double. If you know that all the numeric values in the file will be integers, you could just cast the nval double field to an int and the toString() method will format it correctly.
    If you want to have different tokens and value types for different kinds of numbers, you will have to sub-class StreamTokenizer and add these capabilities yourself. You can add the type constant TT_INT, and provide an int field named ival. The toString() method would then format the value in the correct manner.
    If, on the other hand, you are actually looking for the exact text that was parsed, you could add code that collects the characters as they are parsed for any token type into the sval field in the nextToken() method, just like it already does when the token is a TT_WORD. In this manner sval is always valid for any token type.
    I hope you find this of some help.

  • Deleting specific sequence numbers

    Gurus!
    I have a scenario in which , I would like to revoke / delete the disabled java.io.filepermissions on a Specific Oracle9i Schema.
    i tried to delete the KEY values from DBA_JAVA_POLICY / USER_JAVA_POLICY
    then i came to a point that as these both are Views we cannt delete the data.
    So I tried to delete a specific sequence numbers ( 71 to 79) for a GRANTEE# number 31 from the base table that is java$policy$ but still am not able to . the errors SQL command terminated improperly ( somehting like that)
    Please help me out with this. as I already upset with this.

    You are not supposed to mess with the data dictionary, otherwise unexpected results may start to show up.
    Granting or revoking privileges must be done with proper commands provided explicilty for that pourpose.
    Verify database privileges here.
    ~ Madrid.

  • MIRO document sequence numbering

    Hi Experts,
    We are facing an issue in MIRO document sequence numbering; please see the document numbers with dates:
    Document No             Yr      DocTye     Document Date                Posting Date          Entry Date
    5105600850              2011            RE      23.02.2011                          11.04.2011          11.04.2011
    5105600865              2011            RE     27.03.2011          07.04.2011         07.04.2011
    5105600866              2011            RE     27.03.2011          07.04.2011         07.04.2011
    5105600866              2011           RE     27.03.2011          07.04.2011         07.04.2011
    5105600867              2011           RE     27.03.2011          07.04.2011         07.04.2011
    5105600869              2011           RE     29.03.2011          07.04.2011          08.04.2011
    From the above document list doc no 5105600850 is been posted on 11.04.2011 but doc no 5105600866 is been posted on 07.04.2011 but still the sequence of the document numbers are not correct, though it doc no 5105600850 posted before the doc no 5105600866.
    Why is this behavior of the system? Is there any buffer concept in MIRO posting?
    Thanks in advance.
    Br,
    Shilpa

    Please check whether the number range is used up or not.
    Sometime system will take the used number range if the range is over.
    Or you can check this ling for Buffer
    [MIRO document Number range buffering problem |MIRO document Number range buffering problem;

  • 70D changed sequence numbers from 6.. to 5...

    Month old 70D was issuing sequnce numbers OK in August 31  in the 600 range but on September 2  (the next time I used the camera) the sequence numbers changed to 5000. I manually changed the date to October but the sequence numbers remained in the 5000 range so it probably had nothing to do with the month change. I did a menu RESET,  took a photo and it was just the next number (5102) so no help there. In both cases there is a number 100 and a dash preceding the sequence number. Any suggestions? Thanks 
    BTW the camera FILE NUMBERING setting is CONTINUOUS
    Solved!
    Go to Solution.

    Hello bob70D,
    The most likely culprit with something like this is going to be the card.  It is very likely that the camera is reading an old file numbering scheme (could even be from another Canon EOS DSLR) and "picking up" where the numbers leave off. 
    To test this, and really to resolve this issue, you'd need to format the card.  Only do this in the camera and only once you've backed up your pictures.  First, set the camera's file numbering to Manual Reset and then Format.  It will bring everything back to 0001.  Then go back into the Menu and back to file numbering and choose Continuous this time. 
    Did this answer your question? Please click the Accept as Solution button so that others may find the answer as well.

  • Sequence numbering

    Hi,
    could someone please explain how i can insert sequence numbering in PDF. I would like the number to start at 0001 and when the next person opens it it will be 0002 and so forth. It will be opened by many people in reader.
    thanks in advance.

    Hello,
    Yes I understand the limitations.
    Would there be a way of getting the numbers to reset automatically when some other customer opens the file?
    what I mean is if i email the form to you and you open it it will be starting at 00001 and when you save it and reopen it it will be 00002. If I email it to someone else and they open it it should start at 00001.
    right now as you are aware it is starting at 00010 and if i sent this to you it it will be 000011.
    It would be nice to have the number specific to customer if possible.
    i have tried few things and nothing has worked.
    thanks in advance.

  • Itunes script to detect gaps in track numbers within an album

    Is there an iTunes script out there that will detect gaps in the track numbers within an Artist & Album?    This would be useful to detect incorrectly numbered tracks that could reveal an error in the whole file's tagging that occurred for whatever reason.   I'm picturing a process that would sort your library by Artist+Album+Tracknumber, then look for any numbering gaps and if found, display the 2 files with the gap in-between into a playlist for the user to evaluate for problems.   Or perhaps this is not possible?

    Looks like this does most of what you want in that it identifies incomplete albums. You'd still have to see which tracks were missing: http://www.enilnomi.net/cgi-bin/blosxom.cgi/dltext/findincompletealbums.dl
    I'm assuming from the product info you're looking for an AppleScript for iTunes for OS X. If you want one for Windows I could probably oblige.
    tt2

Maybe you are looking for

  • Unable to view actuals in Project Management's workplan (self-service page)

    Hi, I followed all steps you suggested, in details: first of all I not enable workplan versioning like PJT R12 manual says at page 2-47. 1-Create a requisition for the project-task combination, then autocreate a purchase order and finally a receipt t

  • Budgeting thru Internal Order with Account assignment category 'A'

    Dear All I want Budgeting thru Internal Order with Account assignment category 'A' i.e Created Assets with Tcode As01 Created Internal Order and assigned budget amount to IO with Tcode KO01 and KO22 Created Purhcase Requisition with Account assignmen

  • Sales Order Creation using bapi BAPI_SALESORDER_CREATEFROMDAT2

    Please help me.. I am using BAPI_SALESORDER_CREATEFROMDAT2 for creating sales order can you please tell me in which field the quantity(of items) is to be populated. i am populating in BAPISDITM-TARGET_QTY but i am not getting quantity field after sal

  • Mail Receiver - Send file in ISO-8859-1 encoding

    Hi, I'm sending mail with an attachment using mail adapter, but instead of specified ISO-8859-1 it is converted to UTF-8 no BOM,. Because of that, some characters (ñ,ç, etc) are not transferred properly. Settings: Message protocol: XIPAYLOAD No mail

  • Set current record to uppercase

    Hi, How can i set a particular item in the current record to uppercase at runtime. Set_item_property is setting the item in all the records to uppercase. Thanks in advance. Phebe