Sequence generation issue

Hi , I am working in Healthcare industry . we have a claim and payment matching process . Every day 1.5 million payments get matched with 70 million claims and the matched payments are stores in some output table . After matching, an oracle seqence number is generated for each matched record and that is the primary key for the output table.
Match query will be like this,.
Select seqeunce1.nextval,a.column1,a.column2,b.coulmn1,b.column2 from claim_table a, payment_table b
where a.column3=b.column3
We are facing some seqence problem here. some sequence are missed during the first day and the missed sequnces are getting generated in the second day.
Sequence Query:
CREATE SEQUENCE ERA_CLAIM_MATCH_S
START WITH 1
MAXVALUE 999999999999999999999999999
MINVALUE 1
NOCYCLE
CACHE 500
NOORDER;
Example to demonstrated the problem:
Day 1(15th July) : sequence generated from 1 to 1000000 (some sequence are missed in between)
Day2 (16th July) : sequence generated from 2500 to 2000000 (some missed sequence in day 1 are generated here)
Our database in in RAC system.

Hemant K Chitale wrote:
I think that the question is : If the highest value generated on Day 1 was 1000000,  how could a value of 2500 be generated on Day 2 ?
Shouldn't happen if the Sequence is a NOCYCLE.Hemant, but that is possible if Day 1's processing used the sequence on RAC instance 1 - whereas on Day 2, RAC instance 2 (with unused cached sequences from yesterday) is used.
E.g.
// on node 1
SQL> create sequence testseq start with 1 increment by 1 nomaxvalue nocycle;
Sequence created.
SQL> select testseq.nextval, sys_context( 'user', 'instance_name' ) as instance from dual;
   NEXTVAL INSTANCE
         1 dev_1
// on node 4
SQL> select testseq.nextval, sys_context( 'user', 'instance_name' ) as instance from dual;
   NEXTVAL INSTANCE
        21 dev_4
// on node 1, use the sequence a couple of times
SQL> declare i integer; begin loop i := testseq.nextval(); exit when i > 100000; end loop; end;
  2  /
PL/SQL procedure successfully completed.
SQL> select testseq.nextval, sys_context( 'user', 'instance_name' ) as instance from dual;
   NEXTVAL INSTANCE
    100002 dev_1
SQL>
// on node 4, check the sequence
SQL> select testseq.nextval, sys_context( 'user', 'instance_name' ) as instance from dual;
   NEXTVAL INSTANCE
        22 dev_4

Similar Messages

  • Report generation issue

    what are the diff report generation issues?

    Nvm, solved it just had to set up Reporting studio in order to create an accurate report.

  • EOS / EOL / PSIRT report generation Issue

    HI All ,
    I am using lms 3.2 with RME 4.3.0
    Recently i have seen 2 bugs related with EOS/EOL /PSIRT report generation issue
    CSCta76147
    CSCtc36563
    The status of the bug is given as  Fixed(verified )
    Status
    Fixed
    (Verified)
    Severity 3 - moderate
    Last Modified
    In Last Year
    Product
    CiscoWorks Resource Manager Essentials
    1st Found-In
    4.1
    4.3
    Fixed-In
    5.0
    Component(s)
    eoxpsirtreports
    Here the fixed release is given as 5.0 , can anyone please tel me where to get the 5.0 version for download .
    ( Is the 5.0 the LMS version or the RME version  )
    When i am trying to generate EOS/EOL report,  i am getting error saying check the connectivity to cisco .
    Regards
    Angus

    HI Afroj ,
    When i am running the EOS/EOX or PSIRT report the job status is showing running but its not getting stoped .
    I tried using the local option  , downloaded the offline file from the below link and  placed in
    NMSROOT\files\rme\jobs\inventory\reports\EOX_PSIRT\local_xml
    "http://tools.cisco.com/support/downloads/go/ImageList.x?relVer=4.1.1&mdfid=282635175&sftType=CiscoWorks+Resource+Manager+Essentials+Patches&optPlat=Solaris&nodecount=2&edesignator=null&modelName=CiscoWorks+Resource+Manager+Essentials+4.3&treeMdfId=268439477&treeName=Network+Management&modifmdfid=&imname=&hybrid=Y&imst=N&lr=Y
    even then the job is running continuously its not stopping .
    I have a RME version 4.3.0
    Kindly let me know what i am doing is correct .
    Regards
    Angus

  • Single image sequence generation. ?

    Hello, ..
    Essentially, I'm looking to find the best solution, to the idea of building sequences where and with using - importing, different sequencial, single images.
    — To be clearer perhaps, I'm a Weather student / enthusiast, and this would be toward generating a sequence / different sequences .. of hourly weather-satellite obtained images.
    To this point, or up until very recently, and in fact for several years previous, I have - in fact, been able to do this fairly simply, with using an older version of QuickTime (older logo, I think that main version offered still, through "Tiger".) and, with once I've dropped a first or more initial image more in particular, into the application, then merely dragging and dropping whichever others into its main viewer-window, checking save, and naming the file.
    — Perhaps, unorthodox. But, it's worked just fine for the idea.
    — And, of course, this idea can't be used with the newer version/s of QuickTime.
    "very recently": .... Today, and with having been using this method of "simple sequence" generation, together with older version of QuickTime, on my relatively new "iMac", and running Snow Leopard, Mac OS X v. 10.6.8 - all up to date, ....
    .. I've found that I'm no longer able to access the older version of the application.  (I think this advent, might be related to a "MacKeeper" clean-up that I did recently. ....)
    — In fact, the main reason that I can't say more exactly, which version it is - or was, in fact.
    Beyond this question more general, I'm thinking — (Something, I think that I'd read at one point in the past.) — that I can in fact do what I've suggested above, with / within QuickTime Pro.
    Hope this is clear - at all.
    Any help. ?
    Appreciate your response and time.

    Opening an "image sequence" (folder of sequentially named same dimension files) is a feature found only in QuickTime Player Pro.
    Beginning with Snow Leopard the OS includes QuickTime Player X (in Lion it is 10.1) in the Applications folder and QuickTime 7.6.6 is moved to the Utilities folder.
    QuickTime X has its own feature set but can't be upgraded to "Pro".

  • Sequence generation(urgent)

    Hi
    im new to jdev..I would like to set sequence generation for table fields.Im using JSp as my client and populating fields in the jsp screen.pls let me know is there any thing to set on wizard or any help in tutorial..thnks..

    I'm assuming that you've added your code segment to EmpImpl.java.
    The first parameter to SequenceImpl() should be the name of a database sequence, not the name of a table column.
    Once you've changed that, if you still get the same error, you need to check whether EmpImpl.java has a method called setId(), since this is what your error is complaining about. Your entity should contain accessor (getter and setter) methods by default. If your entity doesn't have these methods, then edit the entity, select the Java tab in the Entity Object Wizard, and check "accessor methods" for the entity object class.
    Lastly, I recommend testing your business components in the business component browser (aka the tester). This is a way of making sure your business logic works before you try to run your client.
    Blaise

  • Quota generation issue

    Hi Friends,
    We are trying to generate a specific quota for selected employees by using Time evaluation. Now the requirement is to generate the quota from the time evaluation period start date till the end date of FY.
    I.e.
    Quota 10 - 01.04.2010 to 31.03.2011 - 2.5
    Quota 10  - 01.05.2010 to 31.03.2011 - 2.5
    We had assigned a time type with the quota & generating with the time evaluation internal calculation result from period balance table.
    But the issue is seperate line items for every month is not getting created. Instead the quota is getting increased or replaced in the same line item.,
    Would appreciate your quick help on this...
    Thanks
    NK
    Edited by: IBM Functional on Apr 28, 2011 9:30 PM

    This functionality is as per SAP standards because, ideally, one would not run time evaluation for May in April. Time evaluation is to be run every day till the end of that day (or till the end of the current month). So when we look at your scenario in that light, we get the following results:
    April run:
    Quota 10 - 01.04.2010 to 31.03.2011 - 2.5
    May run (it adds the quota to the April row item):
    Quota 10 - 01.05.2010 to 31.03.2011 - 5.0
    If the scenario in your organisation is to run time evaluation up to the current date or current month only, don't worry about this aspect. As long as evaluation is not run for future periods, you should not have an issue.
    If, however, you want to run evaluation for the entire year in advance (something which should not be done), you can still try the following work-around:
    1. Modify user exit HRPTIM03 - go into one of the implementations - maybe 005 or 008, can't recall;
    2. Take the assistance of an ABAP consultant to pass the rule that - when the quota is generated, it's validity start date and deduction start date values are to be changed to the date of generation. This is the only way by which a new row item will be generated in IT 2006 (and the ABWKONTI cluster table) instead of appending the quota into the existing row.

  • Report generation issue with a hut

    Hi,
    I hav an issue using report generation my report is using huts and I i'm writting true or false value in excel case, which is linked with the hut but writting the value in the linked case does not change the hut value.
    Thanks
    Olivier

    Hi Olivier,
    I was wondering if you could expand on what the overall goal for your application is.  Also I am not familiar with huts, could you explain what these are?
    Eric A.
    National Instruments
    Distributed I/O Product Support Engineer

  • Issue in BIP Report Generation - Issue gets fixed when the rtf is opened and re-saved

    Hi,
    We are facing a unique case in BIP reports generation at a Customer site. The BIP installed is a part of the OBIEE 11g installation. The customer report generates most of the times, however there are instances where we get a techinical details error ( custom error ) -  The only way to 'fix' this issue currently is to open the rtf file, hit the spacebar and save this file ( ie re-save this file ) and the report starts to generate correctly again for
    Has anyone else faced such a problem ?
    Also, not sure if this helps - the corresponding xdo has nested tags
    Thanks in Advance
    Orjun - Oracle Financial Services

    Your server file handling has nothing, and really nothing to do with Adobe software. If files don't get locked for (over-)writing and/or lose connection to the program opening them, then your server is misconfigured. It's as plain and simple and that. Anything from "known file types"/ file associations not being set correctly, MIME types being botched, crooked user privileges and file permissions, missing Mac server extensions, delayed file writing on the server, generic network timeout issues and what have you. Either way, you have written a longwinded post with no real value since you haven't bothered to provide any proper technical info, most notably about the alleged server. Either way, the only way you can "fix" it is by straightening out your server and network configuration, not some magic switch in Adobe's software.
    Mylenium

  • Exchange 2003 to 2010 Migration OAB Generation Issue

    Hi
    I am in the process of migrating from 2003 to 2010. All mailboxes are moved across and email in and out are moving through the 2010. However I cannot move the oab generation server as when i go to change the generating server my New 2010 server is not listed
    only the two old 2003 servers. This is a child domain in a large organization and is one of a large number of exchange servers forestwide. I have created a new oab and asigned to the mailboxes on the new 2010 server. The old 2003 server is off for over a week
    and there are no issues.
    I now need to remove both 2003 servers, what issues will not being able to move the generation server cause (If any if i am using a new oab). Also I am following the remove last exchange server line as this is the last 2003 server in this child domain are
    there any issues with this in this scenario?

    Hi,
    According to your description, I understand that all mailboxes have been moved to Exchange 2010 and a new OAB is created for all users in your environment.
    Please make sure the new created OAB is generated by Exchange 2010 and Enabled Web-based distribution. If there are any Outlook 2003 users in your environment, the public folder distribution should also be enabled. Then we can set the new one as default.
    If so, all users in Exchange 2010 would use the new created OAB by default.
    If you want to double check the OAB configuration, we can run the following command to check it:
    Get-OfflineAddressBook | FL
    Additionally, if your migration is complete and successful, we can follow the article below to remove the last legacy Exchange server from your Exchange 2010 organization:
    http://technet.microsoft.com/en-us/library/gg576862(v=exchg.141).aspx
    Best Regards,
    Winnie Liang
    TechNet Community Support

  • Grant sequence privilege issue

    Hi,
    OS is windows server 2008
    Database oracle 11g r2
    i have created a schema with name SME having DBA privilege from SME i have created another user SME_USER using the same tablespace of SME with limited privileges. The sequence was created in SME user. I am accessing the tables from SME schema. I have given insert privilege to one of the table in SME to SME_USER,but while insertiing we are using the sequnece with name IPSRNO from SME schema. Now when i tried to insert value inot the table from SME_USER its giving me the output "Sequence does not exist". I have given the grant select privilege for sequence IPSRNO.
    Please guide me on this issue.
    Regards,
    Bobby

    See Using Synonyms in DML Statements in the DBA guide
    http://docs.oracle.com/cd/B28359_01/server.111/b28310/views003.htm
    >
    You can successfully use any private synonym contained in your schema or any public synonym, assuming that you have the necessary privileges to access the underlying object, either explicitly, from an enabled role, or from PUBLIC. You can also reference any private synonym contained in another schema if you have been granted the necessary object privileges for the underlying object.
    You can reference another user's synonym using only the object privileges that you have been granted. For example, if you have only the SELECT privilege on the jward.emp table, and the synonym jward.employee is created for jward.emp, you can query the jward.employee synonym, but you cannot insert rows using the jward.employee synonym.
    A synonym can be referenced in a DML statement the same way that the underlying object of the synonym can be referenced. For example, if a synonym named employee refers to a table or view, then the following statement is valid:
    INSERT INTO employee (empno, ename, job)
    VALUES (emp_sequence.NEXTVAL, 'SMITH', 'CLERK');
    If the synonym named fire_emp refers to a standalone procedure or package procedure, then you could execute it with the command
    EXECUTE Fire_emp(7344);

  • Sequence No. Issue

    Hi All,
       Contract Id in Service Contract screen is not getting incremented properly. The last no is getting repeated and while adding it throws error saying that the contract all ready exist.
       Actually I added some business logic to Service Contract such as new UDFs, validations etc. The last service contract got added to database. But the sequence # in ONNM table for object 190 was not updated with next no.
          It is happening even after stopping the add-on i.e. with base SBO (Cluster: A SP: 01 PL: 08) product itself. I was surprised. I am not sure is it because of add-on. But new add-on not touching that number sequence at all. If any other error in add-on raises this suitiation, then how come SBO allowed contract info to get updated into db.
    Any one experienced this kind of error in any other screen? Is it Add-On issue or SAP Business One issue? Any clue to solve this issue?
       Thanks in advance for your help.
    With Regards
    B Ravi Shankar

    Hi B Ravi Shankar,
    I have also seen this happen. And it happens without any SBO add-ons running as you are saying. I see that development was done differently on the Service Call screen than on other screens. Look at the ItemUID of the OK button, it is not stadardized (OK=1, Cancel=2), but rather it is something like OK=9, Cancel=8. This means the standard functionality is not inherited. I don't know what's happening behind the scenes (in the source code) in SBO, but this might be part of the problem?
    Sorry I don't have a solution, just had to share my experience.
    Hope it helps,
    Adele

  • Create Task Sequence Media Issue

    I am 1 of 2 people that have full admin access to our config manager environment and when I create a bootable USB stick I get an error, "80004005", after I complete the HTA which indicate a certificate issue.
     However if I have my colleague create it, who is the other full admin, using the same configuration I do not get the error and see the deployments.  Any suggestions?

    Sorry as i re-read my message I see that I was not clear.  I do not get an error while creating the bootable media, I receive that error when I attempt to use the bootable media
    to OSD a device.
    I am getting the 0x80004005 error post boot after I complete the HTA's questions, in the boot image, and before it looks for the available task sequences deployed to that device. 

  • CSV file generation issue

    Hello All,
    We are facing below issue during CSV file generation :
    Generated file shows field value as 8.73E+11 in output and when we are clicking inside this column result shown is approximate of the correct value like 873684000000. We wish to view the correct value 872684000013.
    Values passes from report program during this file generation are correct.
    Please advice to resolve this issue.
    Thanks in Advance.

    There is nothing wrong in your program, it is the property of excel that if the value in the cell is larger than
    default size it shows in output of that format.

  • Exporting from PPro CC - Exporting using Match Sequence Settings issue with 24 bit audio

    I am having an issue exporting my sequence which contains final AIFF mix (24 bit 48 kHz) into a 'same-as-source' ProRes 422 file with 24 bit audio. I am specifically trying to export media with 'Match Sequence Settings' checked to create an identical output of what my sequence is. I wind up only creating a PR422 with 16 bit audio rather than 24 bit audio.
    My sequence contains ProRes 422 media and 24 bit AIFF final stereo mix (1 audio file) from our Sound department.
    My sequence is currently setup as "Custom" at 1920x1080, 23.976 fps, Square Pixels, Progressive, etc. Audio is 48 kHz (I don't see an option for choosing different bit rates in the 'Sequence Settings').
    Using 'Match Sequence Settings', my options to alter the audio are "greyed out" and unavailable. I'm not sure why 'Match Sequence Settings' doesn't recognize that I am cutting with 24 bit audio and, instead, only exports 16 bit audio.

    Always skip Match Sequence Settings and set up the export manually.

  • OPEN SSL certificate generation issue--bpel email activity

    Hi all,
    I need to send a mail from bpel using email activity.
    I made all settings changes.I downloaded OPENSSL software and I need to generate smtp ssl certificates?
    But while generation of ssl certificates I am getting some issue
    OpenSSL> openssl s_client -starttls smtp -crlf -connect smtp.gmail.com:465>
    gmail.cert
    openssl:Error: 'openssl' is an invalid command.
    Standard commands
    asn1parse ca ciphers crl crl2pkcs7
    dgst dh dhparam dsa dsaparam
    ec ecparam enc engine errstr
    gendh gendsa genrsa nseq ocsp
    passwd pkcs12 pkcs7 pkcs8 prime
    rand req rsa rsautl s_client
    s_server s_time sess_id smime speed
    spkac verify version x509
    Message Digest commands (see the `dgst' command for more details)
    md2 md4 md5 rmd160 sha
    sha1
    Cipher commands (see the `enc' command for more details)
    aes-128-cbc aes-128-ecb aes-192-cbc aes-192-ecb aes-256-cbc
    aes-256-ecb base64 bf bf-cbc bf-cfb
    bf-ecb bf-ofb cast cast-cbc cast5-cbc
    cast5-cfb cast5-ecb cast5-ofb des des-cbc
    des-cfb des-ecb des-ede des-ede-cbc des-ede-cfb
    des-ede-ofb des-ede3 des-ede3-cbc des-ede3-cfb des-ede3-ofb
    des-ofb des3 desx idea idea-cbc
    idea-cfb idea-ecb idea-ofb rc2 rc2-40-cbc
    rc2-64-cbc rc2-cbc rc2-cfb rc2-ecb rc2-ofb
    rc4 rc4-40
    Can any one suggest me ,What I entered is correct or not?how to generate smtp certificates?
    Thanks in advance
    Krishna

    Fabian,
    Are you familiar with Firefox OS? The reason I say this is because the email client cannot create a certificate excaption. This is actually by design. This is by design: https://wiki.mozilla.org/Gaia/Email/Features#Security
    This support request at Mozilla was placed specifically for the Firefox OS product, for which only a single email client exists.
    That being said the good folks on the Mozilla Bugzilla, were able to show me how to look up another alias for these servers which does in fact work and does in fact match the SSL certificates. Though Dreamhost support could not provide me with said information, and said information does not in fact exist in the DreamHost wiki.
    I find repeated insistance from Dreamhost represenatives that I should just live with SSL certificate exceptions, when there are actual valid server names in existence to match the certificates in question, rediculous.
    The fact that you are posting this non solution for a product it isn't even applicable for is beyond unhelpful. It actually serves to muddy the waters.

Maybe you are looking for