Sequence jump issue

My case is to keep capture the change data, not for dim/fact table but for ods level: if any delete/update, updated expire date then insert a new one, if insert then insert. use sequence as surogarnt.
My logic used is using full join to contains all changed data then splitter them to the same target table 5 times. all seems ok except for the sequence number,it will jump.there are alway sequence gap. in this case sequence number increase quickly.
I have went through the forum,metalink, asked OWB expert, but didnot get the answer for a whole day.I changed the set base to raw base,it didn't work; removed the update part to avoid merge, but sequence still jump. how to handle it? any advince? thanks a lot.
Donny

Hi Jorg,
You are right, after I tried other ways I gave it up due to time limition, I aslo used what you advised here, here are my procedure code : (first disable constraint in another procedure, pre mapping). Thanks a lot.
CREATE OR REPLACE PROCEDURE rds_set_sequence
IS
p_init_num NUMBER;
lv_target_tab VARCHAR2 (40);
lv_pk_name VARCHAR2 (40);
SQL_disable VARCHAR2 (200);
CURSOR cur_key
IS
SELECT ROWID, rds_key
FROM rds_xls_ref_source_systems
WHERE rds_key IS NULL;
BEGIN
BEGIN
SELECT NVL (MAX (rds_key), 0)
INTO p_init_num
FROM rds_xls_ref_source_systems
WHERE rds_key IS NOT NULL;
EXCEPTION
WHEN NO_DATA_FOUND
THEN
DBMS_OUTPUT.put_line ('No data found : ' || SQLERRM);
END;
FOR cursor_key IN cur_key
LOOP
EXIT WHEN cur_key%NOTFOUND;
p_init_num := p_init_num + 1;
UPDATE rds_xls_ref_source_systems
SET rds_key = p_init_num
WHERE ROWID = cursor_key.ROWID;
-- DBMS_OUTPUT.put_line ('seq number : ' || TO_CHAR (p_init_num));
END LOOP;
COMMIT;
EXECUTE IMMEDIATE 'ALTER TABLE RDS_XLS_REF_SOURCE_SYSTEMS ENABLE CONSTRAINT RDS_XLS_RSS_PK';
EXCEPTION
WHEN OTHERS
THEN
DBMS_OUTPUT.put_line ('Error on updating the table : ' || SQLERRM);
ROLLBACK;
END rds_set_sequence;
/

Similar Messages

  • OWB 10 R2 detailed presentation required and sequence jump problem

    Hello all
    Firslty i urgently need a presentation on OWB 10g R2. I have to deliver the presentation in next week to train people.can any one of you can help me out.
    secondly, i m facing a sequence jumps when i excute a mapping in upinsert mode.can any one of you suggest any formula for avoiding sequence jumps.

    Hi.
    it's hard to find a solution without access to your system.
    I would do several things:
    - gather new stats for the repos schema
    - purge old audit information
    - look at the execution plans of the mappings to find some abnormal behaviour
    - compare the mappping code and the execution plan with scd2 and without
    - use the database tools (like em) or 3rd-party-tools to analyze the performance/warnings/alerts of the system
    - analyse if some databbase parameters was changed.
    - look if some other processes (from other projects) run at the same time like my loading mappings. Perhaps this reduced the cpu or i/o performance.
    Regards,
    Detlef

  • Jumps issue

    Hi All,
    I having an issue in one of my reports. I am sure whether its an issue with jumps or particular variable.
    Well here's the issue:
    In the sender report( weekly report) I have "net gallons" being displyed for  4 weeks(week1, week2, week3, week4) in the current calender week(customer exit) and prior year calender week (set with an offset). So from this weekly report i make a jump to the daily report( receiver) wherein it has to display the "net gallons" for each day. For the current year and prior year. Now after make the jump the report shows me the values only for the current year(is a SAP exit) and does not show anything for the prior year(set with an offset- current year - 1).
    Need help in solving this one.
    I hope this is clear.
    Thanks in advance,
    Meher

    Hi Meher
    Is there data in ur second or receiver report for Prior years.
    Thanks
    Raghu

  • The sequence jump and any other good solution

    Hi everyone,
    One existing system apply for sequence number as report number. But sometime the report number will jump. Before create each report, the system will get the sequence number. Then the sequence number will plus one automatially. but how come the sequence number will jump from 32 to 250 itc. Seems it is impossible that user failed to create few hundreds report in a quite short term.
    Any oralce bug caused the problem or good solution to replace current report number design?
    Thanks in advance,
    Hawk

    Some users do like gap free serial numbers. To them it seems like a no-brainer, an easy thing to do. This is just one of the ways in which a real-world metaphor fails in RDBMS, because people don't understand database architecture. More importantly people have forgotten (or, increasingly, are too young to remember) how difficult this sort of thing used to be.
    In the days before computers serial numbers ("sequences") were tracked by using ledger books or self-incrementing stampers. This was usually foolproof but: [list]
    [*]If someone made a mistake - stamped a docket in error or entered an invalid application form - then we had a gap, there was no way to re-use that number.
    [*]Only one person at a time could get the next number: only one person at a time can write in book. Which is fine if we just have a single accounts clerk, but a nightmare if we need to share those resources. If you lock the stamper in your drawer (for safekeeping) and go off to tea, I can't stamp any dockets until you come back.
    [list]
    So you can see that computers are actually quite like real life. The SEQUENCE object is geared up to be a shareable source of unique IDs. The trade-off for shareability is gaps. The only way to guarantee no gaps is the solution you have already, a code control table. But that introduces a bottleneck - you need to be careful to ensure that the table does not remained locked for a long period of time. What happens if someone starts to run a report and then goes off to tea? Will they prevent anybody else using the report? You could use AUTONOMOUS TRANSCATION to acheive that, but if the surrounding transaction is rolled back for any reason...you get a gap!
    Ultimately this comes down to how often the report is run. If you've got hundreds of users running each day then you have a serious potential for resource contention. If it's only one guy running it once a week then it does not matter.
    Cheers, APC

  • The sequence jump and any ohter good solution

    Hi everyone,
    One existing system apply for sequence number as report number. But sometime the report number will jump. Before create each report, the system will get the sequence number. Then the sequence report will plus one automatially. but how come the sequence number will jump from 32 to 250 itc.. seems it is impossible that user failed to create few hundreds report in a quite short term.
    Any oralce bug caused the problem or good solution to replace current report number design?
    Thanks in advance,
    Hawk

    Some users do like gap free serial numbers. To them it seems like a no-brainer, an easy thing to do. This is just one of the ways in which a real-world metaphor fails in RDBMS, because people don't understand database architecture. More importantly people have forgotten (or, increasingly, are too young to remember) how difficult this sort of thing used to be.
    In the days before computers serial numbers ("sequences") were tracked by using ledger books or self-incrementing stampers. This was usually foolproof but: [list]
    [*]If someone made a mistake - stamped a docket in error or entered an invalid application form - then we had a gap, there was no way to re-use that number.
    [*]Only one person at a time could get the next number: only one person at a time can write in book. Which is fine if we just have a single accounts clerk, but a nightmare if we need to share those resources. If you lock the stamper in your drawer (for safekeeping) and go off to tea, I can't stamp any dockets until you come back.
    [list]
    So you can see that computers are actually quite like real life. The SEQUENCE object is geared up to be a shareable source of unique IDs. The trade-off for shareability is gaps. The only way to guarantee no gaps is the solution you have already, a code control table. But that introduces a bottleneck - you need to be careful to ensure that the table does not remained locked for a long period of time. What happens if someone starts to run a report and then goes off to tea? Will they prevent anybody else using the report? You could use AUTONOMOUS TRANSCATION to acheive that, but if the surrounding transaction is rolled back for any reason...you get a gap!
    Ultimately this comes down to how often the report is run. If you've got hundreds of users running each day then you have a serious potential for resource contention. If it's only one guy running it once a week then it does not matter.
    Cheers, APC

  • 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. 

  • Bluetooth Stereo jumping issues

    Hi all,
    Having an issue at the moment when playing back music through my car stereo via Bluetooth every so often the track will just jump for a second and then come back. I've cleared the BT memory and paired the Z2 again and no matter what I do I get the same skipping reoccurring. Has anyone had this issue previously and managed to fix it? Or has anyone any suggestions for a possible fix please?
    Thanks in advance,
    Pete

    How do you mean car update? The head unit is aftermarket not built-in so the car itself does not have Bluetooth. It's worth noting (I forget whether I already did or not) that the Bluetooth streaming works perfectly with my iPhone 5 just not with the Sony. I'm now on my second Xperia Z2 as the first one's call quality was abysmal. While this one seems a **bleep** of a lot better this Bluetooth streaming issue is actually doing my head in and making me want to change phones completely.

  • 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.

  • Volume Jump issue

    Hooray, I figured out how to post a question, haha.
    I love my new nano, but there is a small bug in the software that is starting to bug me. Basically, the volume hikes up an insane amount (especially noticeable when using headphones) when randomly hitting the next track button. It's not a difference in volume level in the actual song, as I can press forward and then previous track and then it's an acceptable sound level again. the volume indicator is not affected, naturally my reaction when music is blaring in my ears is to turn it down, and it usually ends up below half way. press forward and reverse track to go back to the same song and I'm turning it back up to about 7/8ths of the way to full.
    This usually seems to happen when I seek through quite a few songs in a short amount of time.
    Just putting that out there, in hopes of a software update fix. Thanks
    Message was edited by: speedyink

    most comment here have been about sound jumping up. I'm having a slightly different issue. When I listen to a play list (or even the radio, thats why I dont think its a pre-setting with a particular song) the sound drops to 0. I then take the nano and increase the sound by hitting the plus sign. I can get it up half way, and right before my eyes the sound drops back to 0. It's driving me crazy. It usually happens after 30 minutes of use. Has anyone gotten through that problem?
    I tried rebooting the nano, and then it might work for a day or two, but then I'm back to having the volume drop to 0 all over again. Please help

  • SCCM Task sequence OSD issue with windows recovery

    Hi,
    Just wanted to know if anyone else gets a strange issue I have sometimes during my W7 deployment.  We have deployed approx. 1500 PCs using this task sequence with no problems but about 5 or so PCs get stuck after different stages and windows start automatic
    repair and tries to fix an issue which fails and sticks at the recovery screen.
    If you cancel the auto repair the TS continues no issue but this usually happens at our remote sites that are a days drive away.  I have just had it happen on a new PC we just got that I am testing the driver pack with and just wanted to know if
    anyone else has this issue?
    I have a script I run out to all my PCs after SOE is applied to prevent this as we have found our users are not good a clean shutdowns and this prevents auto repair after the fact but I am thinking I might push this script after applying the image to prevent
    this from happening again.
    The script I use is as follows.
    cmd.exe /c "%windir%\system32\bcdedit.exe" /set {default} bootstatuspolicy ignoreallfailures >c:\tempsccm\bcdedit.log
    If anyone can let me know if this happens to you that would be great.
    Cheers.

    You PC need to be recovered error may come in below cases.
    1. MAC id is wrong while importing the asset in CM.
    2. BIOS date and time is improper.
    3. Disk failure
    4. WDS is not functional.
    Regards, Shishir Kushawaha "If this thread answered your question, please click on "Mark as Answer"

  • New to MAC: Clip vs. Sequence format issues causing slow Quad w/FCP?

    Hi all,
    I'm brand spanking new here and a recent Mac convert from Vegas. I figured that if I was going to upgrade, I would do it right. Don't get me wrong, I love Vegas, it's just that I'm tired of PC hardware conflicts and wanted to hop on the just-plug-it-in mac bandwagon and the ever increasing market share for FCP. Although the learning curve has been steep with FCP, I consider myself pretty savvy with Vegas and now a novice with FCP, I like the interface and there are certainly pros and cons. So far so good, but I have many questions.
    This Quad has so much horse power and I'm having to render all the time. I am doing compositing and green screen stuff, but I'm thinking that with SD footage, the computer should be running sleek at satin.
    I recently read another post in here that had a lot of off-topic discussion. I'm ignorant on the clip versus sequence settings and how they relate. In Vegas, most of these settings were automatic. In other words, whatever footage I threw at it, it dealt with. My footage was captured using default settings in Vegas and everything is in .avi format. When I was first bringing clips into FCP, the software suggested I use media manager to convert the files but I didn't want to suffer quality loss so I ignored it. Now that I have a rough cut of the entire 16 minute project, I'm starting to apply filters and effects and am noticing a bog down.
    Now mind you, things are still faster than my old Pentium 1.4Ghz, but with 10Ghz under the hood (who would have imagined it possible?) I know it should run smoother.
    Sorry I'm being so verbose, but my knowledge of formats is weak so I want to cover the bases. We shot on a DVX100A and mostly wide screen setting. In retrospect, this was a mistake as the DVX100A in wide screen simply puts black stripes on my clip versus being able to utilize the whole thing. Anyway, hind site is 20/20.
    Here is my clip information.
    .avi
    29.97 fps
    720 x 480
    DV/DVCPRO - NTSC
    Data rate: 3.6MB/sec
    Pixel aspect: NTSC - CCIR 601
    Field: Lower(Even)
    Alpha: None
    Composite: Normal
    Audio is 48 and 16
    It is possible that I captured the video in the wrong format. I have to use the "anamorphic" setting in FCP to make the footage look as though it's in the right aspect ratio. Correct me if I'm wrong, but anamorphic requires the use of a special lens when shooting yes?
    I'm wondering if I should recapture the footage using FCP or will using Media Manager sort things out? If so what is the best way to do this as I don't want to lose anything that I've done. And is it even possible to recapture the clips without screwing up everything that I've already done, about sixty hours of work so far.
    Worse comes to worse I'll just work with things moving slowly and stick it out until this project is done and then use FCP's cool logging/capture interface next time around. By the way, I captured this stuff long before I bought the MAC.
    Any help on this would be appreciated.
    Tyler
    G5 Quad   Mac OS X (10.4.6)   2.5GB RAM

    Hi,
    I spoke with the DP and it was definitely not shot anamorphic. Most of the footage was shot in 16:9 format which, on the DVX100 means that there is a black strip on the top and bottom of the clips as you probably know.
    I recaptured a clip from scratch into a new project using the easy setup dealio in FCP. It is standard 3:2 and the clip looks fine. In my existing project is where I have a bit of a jumbled mess I'm afraid. I have a clip that looks fine in it's sequence, but when placed into the Main sequence, which has the same settings, it appears in a different aspect ration.
    Yikes, I'm going to keep playing around. I'm starting to get a feel for what the format should be. I'll post again tomorrow when I have a better idea of how to answer your question.
    Thanks for taking the time to pipe in here Denis.
    Tyler
    thealmost
    Tell us more about your footage. In your original
    post you say you shot in "letterbox" mode, i.e. fake
    widescreen with the bars top and bottom. Yet you say
    your sequence has to be put in anamorphic mode for
    this footage to look right.
    If that's the case, something is wrong. Footage
    that's letterboxed in the camera is 4:3, not
    anamorphic, and if you checked the anamorphic box for
    this kind of footage it would look squished.
    I'm thinking that you could have genuine anamorphic
    footage, that you are working with in 4:3, which
    would be taxing your system somewhat. It's not clear
    (to me anyway) from your original post.
    Can you clear this part of your problem up?

  • 16:9 Sequence Timeline Issue

    When you import footage on to a time line that was shot in 16:9, you will often get a prompt that says (for best performance your sequence and external video should be set to the format of the clips you are editing. Change sequence to match the clip settings?) It then gives you a choice of yes or no. I guess this prompts up because the sequence is preset to 4:3.
    Anyway my partner is an amateur at final cut so when that prompt came up he hit no. Therefore the footage that was shot in 16:9 was imported on a 4:3 time line and had black bars on top and bottom of the frame. He edited the entire project like this and it is unacceptable. Is there anyway i can change the aequence settings and have that timeline fill up the entire widescreen frame like it was ment to be as if i hit yes when the promt came up? Any help would be great.
    Thanks

    You can change the sequence settings, but this can be a little daunting unless you know what you're doing.
    Why not open a new sequence and drop one of the original clips into it? Then you can click "yes" when prompted to change the sequence settings automatically.
    Then, simply delete that original clip +(from the new timeline)+ open the 4:3 sequence and hit Ctr+A to select all clips - and paste them into the new 16:9 sequence.
    The more correct way would be to set the FCP Easy Setup to the correct codec for your clips:
    Ctrl+Q - or - Final Cut Pro > Easy Setup +(top left of your screen)+.
    That way, when you open a new sequence, it will automatically default to the correct settings.

  • 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

Maybe you are looking for

  • Optical drive not recognized in system profile after hardware rebuild

    This is an old MacBook Pro. Apple call it vintage. Logic board died, so rather than consign it being a doorstop, I took out the logic board and "cooked" it to reflow the solder. It actually worked! Just prior to this and just before the logic board c

  • Grouping logic in payment proposal

    Hello Friends, Please let me know how vendor open items group in payment proposal. I run F110 and can see two items in payment proposal. when i double click on each item then found: first line has 4 open items and seconds has one open items. in vendo

  • How can i post a submit request in the processRequest

    i want to post a submit request in the processRequest. it's meaning when i first time come to the page, after running processRequest, I need run the processFormRequest. it's like the dialog page which forward the current page, it will run processRequ

  • JTable's suitable Layout manager

    i have a JTable in a JPanel and another JPanel with JLabels and JTextFiled in it. * VersionControl.java * @author JPQuilala * Created on December 22, 2006, 1:18 PM package qis_dreamteam; import java.awt.BorderLayout; import java.awt.GridLayout; impor

  • Remove duplicates

    I down loaded a couple of songs from my CD to itunes.  Now downloaded the whole CD and it shows the songs I first added twice. How do I get it to replace or not download duplicates?