Sequencing in Oracle giving Problems.

Hi All,
I am facing a different problem and its related to sequencing.
The Problem is when i am using a sequence the sequence value should increment in proper fashion of what the increment value is provided.
Let say if the sequence i have created is:
create sequence autonum
start with 1
increment by 1
cache 20
order;
Then the above sequence should increment by 1 every time. But it does not happen i dont know but after some execution of the sequences the value of the sequence shoots up like if the value is 150 then at the next execution it should show 151 but it shows 175.
I dont know why it is happening.
Can u help me in this regard.
Thanks.

CACHE 20 means the next 20 numbers are held in memory ready for speedy use. They get lost if the database goes down. There might be other circumstances where these get flushed - perhaps others could advise ?
Another problem depends on how the application is coded. If a sequence is selected, it gets incremented regardless of whether it is actually used, even if there is no commit.
Sequence numbers are not ideal when you absolutely must have no gaps. They are really to ensure uniqueness and avoid locking problems, not for counting records.

Similar Messages

  • Triggers from sybase to oracle giving problem-------urgent please

    all the Triggers are got converted to AFTER INSERT/UPDATE/DELETE TRIGGERS IN migration workbench...and almost all are been checking the existence of records in the table ie.,primary key check (existence of record) which if i turn them to BEFORE INSERT is becoming a MUTATING ERROR.
    and one more thing the "count(*) from inserted" in sybase equivalent is not there in oracle how to solve this problem?????
    if (select count(*) from attr_val av, inserted i
              where av.class_cd = i.class_cd
              and av.attr_cd = i.attr_cd
              and av.attr_val = i.attr_val) >
              ( select count(*) from inserted )
    for (select count(*) from inserted) is getting converted to select count(*) from dual
    Thanks in advance,
    srinivas.

    all the Triggers are got converted to AFTER INSERT/UPDATE/DELETE TRIGGERS IN migration workbench...and almost all are been checking the existence of records in the table ie.,primary key check (existence of record) which if i turn them to BEFORE INSERT is becoming a MUTATING ERROR.
    and one more thing the "count(*) from inserted" in sybase equivalent is not there in oracle how to solve this problem?????
    if (select count(*) from attr_val av, inserted i
              where av.class_cd = i.class_cd
              and av.attr_cd = i.attr_cd
              and av.attr_val = i.attr_val) >
              ( select count(*) from inserted )
    for (select count(*) from inserted) is getting converted to select count(*) from dual
    Thanks in advance,
    srinivas.

  • Oracle reports problem in distribution with xml file

    Hi ,
    I am having problem while I am trying to distribute the file with specifing the destination details in the xml. If I am giving the destination details in url then it is working.
    Ex.
    This is Working
    http://bryxh91:8889/reports/rwservlet?report=devlopersuit/reports/test.jsp&userid=anju/[email protected]&desformat=pdf&destype=file&desname=devlopersuit/reports/output_file.pdf
    Not working :
    http://bryxh91:8889/reports/rwservlet?report=devlopersuit/reports/test.jsp&userid=anju/[email protected]&DISTRIBUTE=YES&destination=devlopersuit/reports/dis_test.xml
    xml file
    <destinations>
    <file id="test" name="output_file.pdf" format="pdf">
    <include scr="mainSection"/>
    </file>
    </destinations>
    Error : REP-34304: Distribution failed to complete; review the distribution lists
    Its been week I tried many things , but not working.
    Right now I am trying to distribute to single file but my goal is to burst and distribute on basis of account number.
    This is the first stage of the project.
    Thanks a lot for the help
    Anju

    Hello
    see answer in Oracle reports problem in distribution with xml file
    Regards

  • Firing sequence of Oracle forms 6.0 triggers

    Hi All,
    Pls tell anyone what is the sequence of trigger firing in oracle 6.0 (oracle apps).
    Thanks in advance

    Hi,
    Please see if these links/docs help.
    Note: 61675.1 - Trigger Execution Sequence in Oracle Forms
    firing sequence of triggers in oracle forms
    http://tinyurl.com/2wyffj6
    Thanks,
    Hussein

  • SHARED MEMORY AND DATABASE MEMORY giving problem.

    Hello Friends,
    I am facing problem with EXPORT MEMORY and IMPORT MEMORY.
    I have developed one program which will EXPORT the internal table and some variables to the memory.This program will call another program via background job. IMPORT memory used in another program to get the first program data.
    This IMPORT command is working perfect in foreground. But  it is not working in background.
    So, I have reviewed couple of forums and I tried both SHARED MEMORY AND DATABASE MEMORY.  But no use. Still background is giving problem.
    When I remove VIA JOB  parameter in the SUBMIT statement it is working. But i need to execute this program in background via background job. Please help me . what should I do?
    pls find the below code of mine.
    option1
    EXPORT TAB = ITAB
           TO DATABASE indx(Z1)
                FROM   w_indx
                CLIENT sy-mandt
                ID     'XYZ'.
    option2
    EXPORT ITAB   FROM ITAB
      TO SHARED MEMORY indx(Z1)
      FROM w_indx
      CLIENT sy-mandt
      ID 'XYZ'.
       SUBMIT   ZPROG2   TO SAP-SPOOL
                      SPOOL PARAMETERS print_parameters
                       WITHOUT SPOOL DYNPRO
          *_VIA JOB name NUMBER number*_
                       AND RETURN.
    ===
    Hope every bidy understood the problem.
    my sincere request is ... pls post only relavent answer. do not post dummy answer for points.
    Thanks
    Raghu

    Hi.
    You can not exchange data between your programs using ABAP memory, because this memory is shared between objects within the same internal session.
    When you call your report using VIA JOB, a new session is created.
    Instead of using EXPORT and IMPORT to memory, put both programs into the same Function Group, and use global data objects of the _TOP include to exchange data.
    Another option, is to use SPA/GPA parameters (SET PARAMETER ID / GET PARAMETER ID), because SAP memory it is available between all open sessions. Of course, it depends on wich type of data you want to export.
    Hope it was helpful,
    Kind regards.
    F.S.A.

  • Dropped sequences in oracle 10g

    Hi All,
    Can we get back the dropped sequences in oracle 10g?
    Command?
    Thanks.
    Edited by: user545846 on Apr 9, 2009 7:32 AM

    Thanks. Oracle site is accessible.
    This user has the dba previleges to select all tables. but still getting this error message:
    SQL> SELECT * FROM dba_sequences AS OF TIMESTAMP systimestamp - 1/24;
    SELECT * FROM dba_sequences AS OF TIMESTAMP systimestamp - 1/24
    ORA-01031: insufficient privileges
    Please give your comment.

  • HT1222 I have iphone 4 and the software is ios 7.0.2. I am facing problems with my phone. Since the last software update my phone has started giving problems. like it hangs sometime when i recieve an incoming call. The carrier status bar shifts down a bit

    I have iphone 4 and the software is ios 7.0.2. I am facing problems with my phone. Since the last software update my phone has started giving problems. like it hangs sometime when i recieve an incoming call. The carrier status bar shifts down a bit and sometimes it vanishes automatically. I,m confused.
    Secondly i have an update IOS 7.0.4 waiting in my Software Update menu. I have tried so many times to update my iphone but it always fails to update the IOS 7.0.4. Any body suggest anything regarding this

    Wow. Lots of help. Thanks apple

  • Fullname giving problem

    Hi,
    I am getting problem while setting the fullname attribute of the user while creating and assigning the resources [AD,Domino,LDAP]. i am using PeopleSoftActiveSync Resource, which is our Authoritative source. whenever a new entry comes to PeopleSoft, i have to create an Account in IDM and to all the resources. I am using Process Rule to call the create WorkFlow from where i am calling different Sub Process for creating resources. but some of the resources are giving problem and the error which i am getting using "WF_ACTION_ERROR" says "Missing required Attribute Fullname".
    Eventhough i am setting fullname attribute while creating the IDM account. But the resources are assigned properly.
    Please help me.....

    Hello Srinivasa
    Two years ago I had the very same problem when I added a new field to an already existing and filled customer table. I debugged the maintenance view and saw that the new field contained an undefined value but not the initial value.
    You could try and use the DB utility (<b>SE14</b>) and activate the table again (of course without deleting the table entries).
    Alternatively, you could write a simple ABAP to initialize the field value, e.g.:
    DATA:
      gs_mchb   TYPE mchb,
      gt_mchb    TYPE STANDARD TABLE OF mchb.
      SELECT * INTO TABLE gt_mchb.
      gs_mchb-zvbeln_inquiry = ' '. " space
      MODIFY gt_mchb FROM gs_mchb
        TRANSPORTING zvbeln_inquiry
        WHERE ( zvbeln_inquiry ne ' ' ).
      UPDATE mchb FROM TABLE gt_mchb.
    Regards
      Uwe

  • I am having Macbook Pro, I have recently tried updating my operating system to OS Yosemite, but after that its giving problem in connecting to Wifi. The error is "Connection Time out Occurred". Its getting connected by Ethernet cable.

    I am having Macbook Pro, I have recently tried updating my operating system to OS Yosemite, but after that its giving problem in connecting to Wifi. The error is "Connection Time out Occurred". Its getting connected by Ethernet cable.

    Take each of the following steps that you haven't already tried, until the problem is resolved. Some of these steps are only possible if you have control over the wireless router.
    Step 1
    Turn Wi-Fi off and back on.
    Step 2
    Restart the router and the computer. Many problems are solved that way.
    Step 3
    Change the name of the wireless network, if applicable, to eliminate any characters other than letters and digits. You do that on your router via its web page, if it's not an Apple device, or via AirPort Utility, if it is an Apple device.
    Step 4
    Run the Network Diagnostics assistant.
    Step 5
    In OS X 10.8.4 or later, run Wireless Diagnostics and fix the issues listed in the Summary, if any.
    Step 6
    Back up all data before proceeding.
    Launch the Keychain Access application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Keychain Access in the icon grid.
    Enter the name of your wireless network in the search box. You should have one or more "AirPort network password" items with that name. Make a note of the name and password, then delete all the items. Quit Keychain Access. Turn Wi-Fi off and then back on. Reconnect to the network.
    Step 7
    You may need to change other settings on the router. See the guidelines linked below:
    Recommended settings for Wi-Fi routers and access points
    Potential sources of interference
    Step 8
    Make a note of all your settings for Wi-Fi in the Network preference pane, then delete the connection from the connection list and recreate it with the same settings. You do this by clicking the plus-sign icon below the connection list, and selecting Wi-Fi as the interface in the sheet that opens. Select Join other network from the Network Name menu, then select your network. Enter the password when prompted and save it in the keychain.
    Step 9
    Reset the System Management Controller (SMC).

  • Everyones Oracle Linux Problem solved!!!

    Everyones Oracle Linux Problem solved!!!
    Here's something Linux people should relate to: Use what works!
    what works?
    NT works! NT works great with 8i AND OAS.
    No hassles at all!
    Up and running within one day!!!!
    Guaranteed!
    U don't see a NT forum here with people having ridiculous install problems like Linux people?
    Perhaps Oracle should moderate this newsgroup and even give an authorative answer or two?
    null

    I have switched our development and soon production databases to Linux because it runs like a charm. Fast and efficient, no problems. The installer has been a problem no doubt because Oracle put less of an emphasis on debugging their Linux installer than their idiot-proof NT installer.
    By the way, I was able to circumvent installer problems by just linking svrmgrl to svrmgrlO; this avoided the dreaded segmentation fault and kicked everything open just fine.
    BTW, about NT; what makes an OS is not how well everything works when everything is going well, but how bad it gets when something goes bad. For instance, the segmentation faults on Linux weren't a problem because I just picked up and continued; on NT you'd have to restart the whole system...not a pleasant feature.
    null

  • Oracle Designer Problem Please help me

    Sir,
    1) I created a database
    2) Run>cd d:\Oracle_home\repadm61\admin\@ckqa
    @ckparams.txt
    @ ckvalqa
    @ ckcreate
    3)Opened Repository Administration Utility
    Log in as 'repos_manager/repos_manager@orcltest'
    Installed Repository.
    4) Opened Oracle 9i Designer. I am able to connect
    as 'repos_manager/repos_manager@orcltest'
    But I am not able to logon as any other user in same database/ any other user in different database. Why?
    Please help me.
    regards
    Mathew

    duplicate thread, see this one -> Re: Oracle Designer Problem Please help me

  • My previous Visa was giving problems. I introduced a new visa and still my account is blocked. Can you help me?

    Hello,
    My previous credit card (Visa) was giving problems.
    I introduced the details of a new card and still my account is blocked, so I can't use the programs.
    Can you help me solve this problem please?
    Thank you.

    This is an open forum, not Adobe support... you need Adobe support to help
    Adobe contact information - http://helpx.adobe.com/contact.html
    -Select your product and what you need help with
    -Click on the blue box "Still need help? Contact us"

  • Nokia 9500-Speaker giving problem

    I have Nokia 9500, 2 years old and its speaker has started giving problems. I have got it repaired from Nokia Care point about 7 times and it works fine for 2-3 days, then it goes bad. Care point guys are not able to figure out the problem. Let me know if anyone of you have experienced this. Also how do i directly report this to Nokia, since care point guys are clueless

    what is the exact problem can you let us know in detail
    tongue is too confused on what to speak

  • Generate alphanumeric sequence using oracle sequence

    Hi,
    Can we generate alphanumeric sequence from Oracle sequence.
    Sequence would be something like this. Please advice
    TEMP-0001
    TEMP-0002
    TEMP-0010
    Thanks,
    Lak

    hi,
    You can try below procedure...
    SQL> create sequence sec
      2  minvalue 0
      3  start with 001
      4  increment by 1
      5  nocache;
    Sequence created.
    SQL> select 'temp-'||to_char(sec.nextval) from dual;
    'TEMP-'||TO_CHAR(SEC.NEXTVAL)
    temp-1

  • Shockwave flash keeps giving problems

    I have read all the articles about the shockwave flash problem but it keeps giving problems, saying it is busy or does nt react anymore, continue or stop.
    If I continue nothing happens, if I stop the web-page disapears.
    Should I use another browser ? I'm fond of Firefox but what to do?
    I'm using W 8.1 and the latest Flash (15.0.0.152)
    Thank you in advance for reacting.
    Jan M Reerink

    You can check for problems with current Shockwave Flash plugin versions and try this:
    *check for updates for your graphics drive drivers<br>https://support.mozilla.org/kb/upgrade-graphics-drivers-use-hardware-acceleration
    *disable protected mode in the Flash plugin (Flash 11.3+ on Windows Vista and later)
    *disable hardware acceleration in the Flash plugin
    See also:
    *http://kb.mozillazine.org/Flash#Troubleshooting
    You can also try to uninstall and reinstall Flash
    *http://helpx.adobe.com/flash-player/kb/uninstall-flash-player-windows.html
    Note that this will remove all installed Flash players.
    You can find the latest Flash player versions for Firefox on this page:
    *http://www.adobe.com/special/products/flashplayer/fp_distribution3.html

Maybe you are looking for

  • Problem during view Adobe Form in Web Request

    Hi All, I am facing problem while viewing the adobe form inside the Web Request form. Let me describe the issue clearly. I need to have a table in Adobe Form.So i created one table type and bind it to the table structure created, in Adobe Form. Then

  • Flash player won't play on home pages

    My flash player won't play on my browser's home pages.  My OS is : windows 7 64 bit ultimate and my browsers are :  Mozilla,Chrome, and IE.  I have owned this machine since laborday 2012 and all of them worked in the begining.  This has been going on

  • Classification check of an internal order during KO01 KO02 transactions

    Hi All, i need to check if some Classification fields of an internal order are been valued when i save the order during transaction KO01 and KO02. I'm focused on the user-exit EXIT_SAPLRKIO_002 because it stars at the save event. Can anyone help me?

  • 8 or 16 bit

    I shoot in raw (Canon 7D) and first do some balancing in Lightroom CS5, going on to further process some images in Photoshop (CS5). If the exposure is OK, toning in Lightroom on its own is generally all that's necessary. Should I then be saving the f

  • How can I get Mac to print wirelessly?

    I have a g5 iMac and a g4 IMac that connect to the internet via a wireless Belkin router. I have two HP printers (a laserjet and an officejet) connected with an ethernet cable to the router. The g4 machine quickly identified both printers as "Interne