Strage sequence behaviour

Hi all, I have the following sequence
CREATE SEQUENCE TROIA.SEQID_CIDSMENSAGEM
START WITH 1
MAXVALUE 999999999999999999999999999
MINVALUE 1
NOCYCLE
CACHE 20
NOORDER;
using sqlplus each time i issue the following sql:
select troia.seqid_cidsmensagem.nextval from dual
i got one number from sequence .. 154, 155, 153 ...
Developers are using this sequence to fill one column (nid_msg) of one table (cids_mensagem)
if i query the table i get values like 162 , 142 in the nid_msg column .. so .. my sequence is throwing 20 numbers each time ...
i'm awhare that the sequence is caching 20 numbers, but isn't supposed to develiver one number each time from cache ???
Best Regards
Rui Madaleno

I am able to observe this behaviour.
SQL> select * from v$version;
BANNER
Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit Production
PL/SQL Release 9.2.0.8.0 - Production
CORE 9.2.0.8.0 Production
TNS for Solaris: Version 9.2.0.8.0 - Production
NLSRTL Version 9.2.0.8.0 - Production
SQL> CREATE SEQUENCE SEQID_CIDSMENSAGEM
2 START WITH 1
3 MAXVALUE 999999999999999999999999999
4 MINVALUE 1
5 NOCYCLE
6 CACHE 20
7 NOORDER;
Sequence created.
SQL>
SQL> select SEQID_CIDSMENSAGEM.nextval from dual;
NEXTVAL
1
SQL> /
NEXTVAL
2
SQL> /
NEXTVAL
3
SQL> /
NEXTVAL
4
SQL> /
NEXTVAL
5
SQL>

Similar Messages

  • Unusual sequence behaviour

    Hi,
    I am having a hard time trying to figure out why I am unable to retrieve the size of a sequence but can still loop through that sequence and print out its contents.
    My code is as follows. I have 2 separate class files not included here; the MathQuestion and MathDrill classes. When i call numbers.size() in the for loop, it always comes back as zero, but when i hard code the upper range, i am able to print the numbers onto my panel. Can someone please tell me what I am doing wrong?
    Thanks.
    Johnny
    package MathDrillApplication;
    import javafx.stage.Stage;
    import javafx.scene.Scene;
    import javafx.scene.text.Text;
    import javafx.scene.text.Font;
    import javafx.scene.layout.Panel;
    import javafx.scene.input.KeyEvent;
    import javafx.scene.shape.Line;
    import javafx.scene.paint.Color;
    import java.util.Iterator;
    * @author Johnny
    var yAxis:Number;
    var countPerQuestion;
    var numbers:Integer[];
    var it:Iterator;
    var drills:MathDrills;
    var panel = Panel {
    content: [
    for (i in [0..< numbers.size()]){
    Text {
         font: Font {
              size: 24
         x: 100, y: yAxis+=20
         content: bind if (numbers.get(i).toString().length()<2){" {numbers.get(i).toString()}"} else{numbers.get(i).toString()}
    Line {
         startX: 100, startY: yAxis+10
         endX: 120, endY: yAxis +10
         strokeWidth: 1
         stroke: Color.BLACK
    onKeyTyped:function(e: KeyEvent): Void {
         //operands = "Hello World"
    yAxis = 100;
    if (it.hasNext()){
    var question:MathQuestion = it.next() as MathQuestion;
    numbers = question.numbers;
    println("aft numbers size:{numbers.size()}");
    Stage {
    title: "Application title"
    scene: Scene {
    width: 480
    height: 300
    content: [panel]
    panel.requestFocus();
    drills = MathDrills{countPerQuestion:2; numOfQuestions:10; maxNum:100;};
    var questions = drills.drillSet;
    it = questions.iterator();

    Hi PhiLho,
    Thanks for the reply. I have changed my code a bit after following the advice but my "for" loop is still coming up with no numbers even though my println statement has a size greater than 1. My revised code is as follows. Sorry if this looks very simple but I am very new to JavaFx and am carrying habits over from Java.
    package MathDrillApplication;
    import javafx.stage.Stage;
    import javafx.scene.Scene;
    import javafx.scene.text.Text;
    import javafx.scene.text.Font;
    import javafx.scene.layout.Panel;
    import javafx.scene.input.KeyEvent;
    import javafx.scene.shape.Line;
    import javafx.scene.paint.Color;
    import java.util.Iterator;
    * @author Johnny
    var yAxis:Number;
    var numbers:Integer[];
    var it:Iterator;
    var drills:MathDrills;
    var panel = Panel {
    content: [
    for (num in numbers){
    Text {
         font: Font {
              size: 24
         x: 100, y: yAxis+=20
         content: bind if (num.toString().length()<2){" {num.toString()}"} else{num.toString()}
    Line {
         startX: 100, startY: yAxis+10
         endX: 120, endY: yAxis +10
         strokeWidth: 1
         stroke: Color.BLACK
    onKeyTyped:function(e: KeyEvent): Void {
         //operands = "Hello World"
    yAxis = 100;
    if (it.hasNext()){
    var question:MathQuestion = it.next() as MathQuestion;
    numbers = question.numbers;
    println("aft numbers size:{sizeof numbers}");
    Stage {
    title: "Application title"
    scene: Scene {
    width: 480
    height: 300
    content: [panel]
    panel.requestFocus();
    drills = MathDrills{countPerQuestion:2; numOfQuestions:10; maxNum:100;};
    var questions = drills.drillSet;
    it = questions.iterator();
    Edited by: user10504967 on 11/11/2010 21:32
    Edited by: user10504967 on 11/11/2010 22:21

  • Text Sequence Behaviors (Continuous) - Intermittent

    Hi everyone! I'm not exactly sure what I'm doing wrong. I'm trying to apply the text sequence behaviour under the continuous menu called Intermittent. Applying this to my text produces two behaviors - Intermittent and Randomize Sequence Custom Speed. When I hit play, absolutely nothing happens. I can see the custom speed control in the Intermittent behavior jump up and down, but that's about it. What do I need to do to produce that cool flickering effect I see in the effect's preview window?
    I should note that all the other continuous effects seem to work without touching anything.

    It should work with the default settings when you apply the behavior. It is active for me upon application.  The fact you see the custom speed control moving indicates the Random sequence custom speed behavior is operative. You might play with the opacity and variance controls to see if that jump starts it. Also I would delete the behavior and reapply it just in case it didn't apply correctly. Is Motion acting strangly in any other way?

  • Text Behaviour Sequence Controls

    I'm animating paragraphs of text in Motion2, which I want to slide in line-by-line from the left of screen.
    The "Slide In From Left" behaviour in the "Text-Move" category work well, EXCEPT, when I change the select sequence control from "All" to "Line" it animates out before animating in.
    I thought about offsetting the behaviour so you only see the second half of the animation, but I want the spread sequence control greater than 1, so the out animation is not finished before the in animation starts.
    Is there a way of getting it to animate in one direction only, a line at a time?
    I don't really want to have to do the whole lot by hand (motion paths) as I have LOADS of text to animate.
    Thanks for any suggestions

    This is one of the annoying aspects of the text sequence behavior - if you don't us "all" for the Select parameter, it goes to the value you specific and then back again - I really wish it worked like the Replicator, which gives you several options for how to move through the animation: to, from, through, through inverted - much better.
    You can set the Traversal parameter to Custom and then keyframe the Location parameter that appears - from 0% at the beginning of the behavior to 100% at the end - but you then need to add a mask to hide the lower lines that show up briefly due to the Spread being at 1 or greater. Pain in the neck. Would love it if someone found at way around this.
    Mark

  • MRP ... sequenced run behaviour, why?

    Hi,
    Am having another question on MRP run.
    I found that using this setup as below it provides the correct results that i wanted.
    That is it will create a PR for location AB10, based on the quantity in Sales Order and a Reorder Point PR for location AB20 to fulfill the shortages.
    This is what I notice when I create a new material:
    1) New Material Created for location AB10 and AB20
    2) Run MRP one time to generate PR for loc AB20, reorder point location
    3) Put in Sales Order
    4) Run MRP another time to generate PR for loc AB10
    I need to run this SEQUENCE EXACTLY for the first time before I can continue normally i.e. plan and run MRP with the desire outcome.
    Any deviation from this, results in MRP created PR in loc. AB10 only and NO PR in AB20.
    Why is this so? Anyone could assist here please? Cheers.
    In location AB10, the following MRP settings are being used:
    1) MRP 1: 
    - MRP Type PD
    - Lot size EX
    2) MRP 2:
    - Procurement Type: F
    - ScheduleMargin Key: 000
    3) MRP 3:
    Availability Check 02-individual requirements
    In location AB20, the following MRP settings are being used:
    1) MRP 1: 
    - MRP Type PD
    - Lot size EX
    2) MRP 2:
    - Procurement Type: F
    - ScheduleMargin Key: 000
    3) MRP 3:
    Availability Check 02-individual requirements
    4) MRP View 4 - Storage Location MRP
    - SLoc MRP indicator 2
    - Reorder point 300
    - Spec.proc.type:SLoc 40
    - Replenishment qty 1

    Hi Lee,
    Your requirement is clear to provide some solutions. Could you please shroten this write us the actual problem/requirement?
    Regards
    TAJUDDIN

  • Strage behaviour of DefaultPanel/DefaultCtrl on localized panel

    I am using the localization utility for a multilanguage application I am developing and faced a strange problem.
    I can correctly display localized panels but if I happen to call DefaultPanel on the localized panel, all text messages return to original (untranslated); the same happens if I call DefaultCtrl on a text message. Control labels are not affected by this problem.
    The problem happens both if I use LoadLocalizedPanel and if I call LoadPanel + LocalizePanel.
    This behaviour is particularly annoying as I sometimes call DefaultPanel to revert all controls in a panel to their default value. Having observed this fact, I can only use as a workaround a loop on all panel controls to default all but text messages (haven't tested on rings on till now).
    Tested on CVI2009SP1 and 2012SP1, on a Win7 machine. This happens both in the IDE and in the compiled executable.
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?
    Solved!
    Go to Solution.

    Hi Roberto,
    Unfortunately, this is a consequence of the localization library being a component that sits on top of the UI library, rather than part of the UI library. The UI library doesn't know anything about the localized strings and so when you call DefaultCtrl, the control's value reverts to what it was in the .uir file. And the translated strings were set by simple SetCtrlVal-type calls in the localization library -- undistinguishable, as far as the UI library is concerned, with your own SetCtrlVal calls in your own program.
    This could also happen to controls other than text messages: strings and text boxes, for example. The only reason it doesn't happen with all control types is because in most cases, the translated strings are not part of the control's "value". Instead, they are simply attributes (the label text, for example). And DefaultCtrl / DefaultPanel affects only values, not attributes.
    If you don't want to iterate through every control looking for controls that you can or can't call DefaultCtrl on, you should also be able to get around this limitation by calling DefaultPanel followed by LocalizePanel. Would that not work for you?

  • Nesting Sequences strange behaviour

    Hey guys,
    ....just recently discovered nesting sequences...D'Oh!
    I find that if I nest sequences two or three layers deep sometimes get strange random frames from other seuences occuring in the sequence I'm viewing.
    Could this be system performance related? I'm not exactly working with a powerhouse here. In fact I get the SPOD if I put the razor to this sequence.
    new to nesting - love the concept

    Sarah, to help the knowlegable users here please advise which model G5 iMac you have & include this info in your system info preference by clicking on the "My Settings" link in the right hand column.-->
    This way, you won't have to keep repeating yourself and the knowlegable users will be able to provide you with the correct trouble shooting information/solutions if the problem is your computer.
    Also, it will be helpful if you will advise which version of Word, Photoshop you have, which email program & the type of printer you are using.
    Thank you.

  • Strage behaviour while executing the Procedure

    Hi All,
    In Schema "Dwr_trade" we have one procedure Proc1. There is another schema
    " Dwr_trade_user " this schema has execute privilege on Proc1 of "Dwr_trade" schema.
    When we are executing the procedure Proc1 from "Dwr_trade" schema as follows
    Dwr_trade --- (Procedure is created here)
    Begin
    Exec procedure Dwr_trade.Proc1
    End;
    It gives error ,but when we are executing the same procedure after removing the prefix "Dwr_Trade" it is executing successfully.
    when we are executing the procedure from "Dwr_trade_user " then also is working fine.We are executing it as follows.
    Dwr_trade_user
    Begin
    Exec procedure Dwr_trade.Proc1
    End;
    Any pointer why this is giving error in 1st case.
    Many Thanks
    Dikshit

    Begin
    Exec procedure Dwr_trade.Proc1 <----Isnt Syntax prob
    End;
    SQL> CREATE OR REPLACE PROCEDURE mypro AS
      2  BEGIN
      3  null;
      4  END;
      5  .
    SQL> /
    Procedure created.
    SQL> EXECUTE PROCEDURE mypro;
    BEGIN PROCEDURE mypro; END;
    ERROR at line 1:
    ORA-06550: line 1, column 7:
    PLS-00103: Encountered the symbol "PROCEDURE" when expecting one of the following:
    begin case declare exit for goto if loop mod null pragma
    raise return select update while with <an identifier>
    <a double-quoted delimited-identifier> <a bind variable> <<
    close current delete fetch lock insert open rollback
    savepoint set sql execute commit forall merge
    <a single-quoted SQL string> pipe
    SQL> EXECUTE PROCEDURE scott.mypro;
    BEGIN PROCEDURE scott.mypro; END;
    ERROR at line 1:
    ORA-06550: line 1, column 7:
    PLS-00103: Encountered the symbol "PROCEDURE" when expecting one of the following:
    begin case declare exit for goto if loop mod null pragma
    raise return select update while with <an identifier>
    <a double-quoted delimited-identifier> <a bind variable> <<
    close current delete fetch lock insert open rollback
    savepoint set sql execute commit forall merge
    <a single-quoted SQL string> pipe
    The symbol "PROCEDURE" was ignored.
    SQL> EXECUTE mypro;
    PL/SQL procedure successfully completed.
    SQL> EXECUTE scott.mypro;
    PL/SQL procedure successfully completed.Khurram

  • App-V sequenced Office applications Doesn't open/recognize Office documents by default

    Clients are using sequenced MS Office and everytime they want to open a save word doc for example they have to open it through opening a MS Word Document. 
    By default it doesn't show with a word icon neither. if not they shall open it through "open with" and selecting Application Virtualisation Client which would also bring up "Choose Application" each time they wanna open it.
    is there any way you can open it and recognize with the right Office App Icon by default.
    Many Thanks in advance.

    If file types are not associated then there's either something wrong with the package or how it's been published. 
    App-V 4.6 will only provide the behaviour you've described. Fix the FTA issues to improve the user experience.
    Please remember to click "Mark as Answer" or "Vote as Helpful" on the post that answers your question (or click "Unmark as Answer" if a marked post does not actually
    answer your question). This can be beneficial to other community members reading the thread.
    This forum post is my own opinion and does not necessarily reflect the opinion or view of my employer, Microsoft, its employees, or other MVPs.
    Twitter:
    @stealthpuppy | Blog:
    stealthpuppy.com |
    The Definitive Guide to Delivering Microsoft Office with App-V

  • How can I change the sequence of songs in my iTunes library and playlists?

    I find that I cannot alter the sequence of songs iniTunes library, nor in 'My Playlist'.
    Having dragged an item to place between two others, it goes back to where it was.
    I am probably asking 'Help' the wrong question, but I cannot find the right answer.
    I am sure the answer is very simple, but I would welcome the right answer.

    That's the normal intended behaviour of the Library. I'm not exactly sure why it is, but I guess it's to make it clear to users that if they want to "fine tune" the tracks they should use a playlist (just like you can't use the burn button in the library).
    I'm sure you've noticed that you can still sort the library by clicking the headings.

  • Sort sequence functionality in Batch management

    Hi All,
    I have a doubt in batch management. I am not sure whether it is a basic doubt. But obviously confusing me a lot and I am not able to find appropriate for that.
    In our company, we have two characteristics assigned to the batch class 023. Shelf life expiration date (LOBM_VFDAT) and Manufacturing date (LOBM_HSDAT).
    Our Sort sequence is FIFO.
    Please find the following example given below.
    Material     GR date           SLED               Manufacturing date          Batch
    M1              21.05.2014     21.06.2014        21.05.2014                      0001
    M1              22.05.2014     22.06.2014        20.05.2014                      0002
    As per the above example, when SLED (LOBM_VFDAT) is concerned, batch 0001 will get selected, when Manufacturing date (LOBM_HSDAT) is concerned, batch 0002 will get selected.
    But which particular batch will be copied into the outbound delivery. I am confused how system can sort out based on multiple characteristics.
    Could someone please exlplain the logic behind this.
    Regards,
    Raja Durai

    I assume in your system
    Ascending = TO
    Descending = From
    But, strange to see no material in key combination.
    Whereas, you said
    when SLED (LOBM_VFDAT) is concerned, batch 0001 will get selected, when Manufacturing date (LOBM_HSDAT) is concerned, batch 0002 will get selected
    Frankly, based on above statement I was expecting batch of the key combination. But, that would very tedious task while maintaining individual sort for each batch & material combination. And that is reason I asked you about the key combination.
    Based on screenshot provided, system will consider sort in following sequence:
    1. LOBM_BSDAT
    2. LOBM_VFDAT
    provided you have dependency maintained for SORT in CU71.
    There in dependency editor may be you have logic to control this behaviour, for example
    Thanks, JP

  • Why does Premiere render the same sequence sometimes fast and sometimes really slow?

    I use Premiere Pro CC 2014.
    I have a Nvidia GTX 590
    Intel Core i7 X990 @ 3.47GHz
    24GB RAM
    Windows 7 (64)
    200GB free space on an SSD drive and 2 more drives with each 1TB free.
    I'm having trouble with performance when rendering sequences.
    The sequences themselves are pretty simple. They contain MOV files from my Canon EOS 5D Mark III and transparent PNG files as overlays for titles and additional graphics.
    I also use lumetri looks and have turned on Cuda rendering. As a codec for exporting I use H264 (fullhd, 25fps, 20mbits, 2pass, max render quality, max depth)
    Whether or not I export in Premiere or via AME doesn't matter, the problem stays the same.
    Now, when I start exporting, at one point, which is seemingly random (sometimes at 35%, sometimes at 60%, sometimes at 2% - I'm talking about the same sequence!) rendering becomes really really slow (~1 hour for a 3min video), and I don't understand why. I keeps slow until the whole sequence is finished. But before that, rendering was fast!
    But sometimes, I'm lucky, and - after restarting my computer and Premiere, the same sequences render in whole, in under 2 minutes!
    So obviously my computer is able to render fast. But it does not always do that. Sometimes - even after a fresh reboot, I'm out of luck and the same sequence renders in an hour - but only after a random point in the sequence.
    It's as if Premiere stumbles and can't get up again. The only thing that CAN help (though does not alway), is rebooting the system and hoping for the best.
    Where does this strange behaviour come from? I use ordinary footage, ordinary filters and an ordinary export codec. I have lots of RAM and lots of disk space
    I have not found a topic in this forum with a similar problem

    Similar problem here but on a Mac.   AME is always much slower than directly exporting from Premiere, but if I start to get slow renders a reboot always sorts the issue out.

  • Irregularity with anchor behaviour - inserting anchors in anchored frames

    I am experiencing irregular behaviours with anchors and I'm not sure if it's a glitch or something I am overlooking. Sometimes it works, sometimes it dosen't, and I can't tell what is causing the difference.
    What I want is an anchored text fram to a main body text - which is an imag caption - and from this text frame I create a new anchored image frame, in which I put the image I am referring to in the caption. Sometimes this process works smoothly, while other times, when I go to insert the anchor in the anchored text frame it re-routes me back to the main body text from where I came. I have tried different insertion points within the anchored text frame, but nothing seems to solve the problem in this scenario....
    any ideas?
    thanks!

    Kat,
    I hope I understand your problem correctly.
    The paragraph containing the figure title is positioned in the side head with alignment set to Top Edge. Then that paragraph is followed by another paragraph, which of course is in the main text column, empty, and aligned at the top with the side head.
    With the insertion point in the second paragraph, import the image file. This puts the image below the line. Select the image, not the anchored frame, and scale it if necessary. If not created at the correct size, you probably want to scale it down to fit the width of the text column. Now press the key sequence Esc, m, p (note m and p are lowercase). The anchored frame shrinks to fit tightly around the image and changes it position to At Insertion Point. If you turn on Text Symbols, you will see the end-of-paragraph symbol at the lower right edge of the image, and the top of the anchored frame will align with the TOP of the side head text.
    You also have to be sure the line spacing of the paragraph holding the image is NOT fixed or Frame will move the image up.
    Hope this is what you need,
    Van

  • I'm having a problem with Ultrabeat's sequencer in Mainstage

    In Mainstage, I've set up an Ultrabeat instance on the concert level so that I can use it as a metronome for the whole project.  (I like to be able to customize the sounds, add subdivisions, make it louder than the default metronome sound, etc.)
    However, I'm having a problem.  Sometimes, when I try to use it, it doesn't work.  Here's what I'm doing to recreate the problem:
    In ultrabeat, I create the pattern in the step sequencer, and the sound I want.  I have a very simple woodblock sound, and I set the sequence to be only 4 boxes long in Ultrabeat.  The sequencer in UB is "on".  I created a button on the workspace in Mainstage, and mapped it to UB's "sequencer Play/Stop".
    1. When I start the squencer, it runs - i can see the curse in UB moving to the right and repeating - but no sound come through the channel strip
    2. When I click the keys on the left side of UB, sound DOES come through the channel strip.
    So in essence, UB doesn't want to send sound to Mainstage by using its sequencer.
    Has anyone faced anything similar?  any ideas on how to fix this?  I've done it successfully before, but sometimes it just doesn't work.
    thanks,
    Keith

    For the sake of clarity and to save people time, Todd is asking about the behaviour of the Patch tool when using it to repair the area next to the young lad's head.  Todd gets a blurred dark tone pretty much regardless of the options he uses.
    IMO that's what I would expect to happen because of the close proximity of the other image elements i.e. the lad's neck and the strong lines of his shirt.  I would not choose to use the Patch tool in this situation.  Content Aware Fill makes a better stab at it. 

  • Source Sequence to Timeline Editing Bugs?

    Hi. I'm new to PP and I've run into a couple of issues when editing from a sequence loaded into the source viewer. (i.e KEM roll style editing) I'm using 7.0.1
    First problem - with the timeline set to Insert or Overwrite sequences as nests everything works fine (although i don't really see the purpose of working this way). Mostly you would want to "Insert or Overwrite as individual clips", but when i overwrite a clip the timeline ignores my in and out points which effectively means you can't do a three point edit. There's another strange bug that when you Insert the playhead jumps way off screen instead of staying at the end of the inserted clip.
    Second problem - "Replace with clip from Source Monitor" and "Replace with clip from Source Monitor, Match Frame" only replaces with the nested clip, is there no way to replace with the original clip? BTW, would be great if you could map a keyboard shortcut for this command as well?

    Thanks Jim.
    Some more info...
    Premiere Pro CC 7.0.1
    Mac OSX 10.7.5 - Macbook Pro
    Tried many kinds of footage, ProRes Quicktimes, H.264 Quicktimes etc
    It's very consistent behaviour, happens every time.

Maybe you are looking for