Resource busy time out oracle message - Concurrency and Locks

I have a requirement to generate gapless invoice and receipt number in our application. so i have currently used the below approach.
a. created table with a column to hold the invoice and receipt number sequence value.
b. whenever transaction gets succeed. i will lock the table which holds the invoice number and receipt number inorder to avoid the sequential number slipages.
Issue
1. since the application belongs to online payment through portal by customers, when concurrent users trying to pay and while generating receipt number's, i am facing with "resource busy time out" message frequently. Here i noticed when user1 locks the table to access the receipt number value and session is not committed or rollback and another session user2 trying to access the same resource, in this scenario i am facing this error.
Frequency of encountering this error is low, but customer was telling us this error is show stopper and affects normal business.
Is there any alternative solution or method can be applied to overcome this problem?
Current SQL used in application
cursor <cursor name> is.
select <column_name>
into <variable>
from <table name>
for update of wait 5
update <table name> set <column name> = value + 1
where current of <cursor name>

1e0ea4a1-1610-4dec-a44c-4ee1f46ba1a4 wrote:
I have a requirement to generate gapless invoice and receipt number in our application. so i have currently used the below approach.
Engage the business and inquire WHY this "requirement" exists. I have personally never seen an audit requirement wherein invoices MUST be devoid of gaps (that's not to say they do not exist, just that I've never seen one
They certainly must be unique, but that's what a sequence will do for you. If the business absolutely needs gapless information, then they will have to be willing to pay the price which is going to be longer transaction times (as requests queue in a busy system to get this sought after gapless resource). Your job is to explain this to them ... nothing comes without a cost.
The only thing you can really do (assuming you engage the business and the requirement doesn't change) is ensure the transactions are designed in such a manner that
1) they complete as fast as possible AND that the locking is done at the latest possible stage of the transaction
2) there is no user interaction (you cannot allow the users a "review" screen of any sort ... because users get silly sometimes and go for a coffee while reviewing things)
Cheers,

Similar Messages

  • BPC Optimization Server Time Out error message

    We’re using BPC 7.5 MS and on patch level 111.02
    There’s two front-end servers and one back-end.
    When completing a full optimization with compression on an application we immediately get the optimization popup screen with no processing information only a “Server Time Out” error message.
    Optimization was taking a long to time run and sometimes timed out.  To try and resolve this issue we have just updated indexes and statistics and during our test in production we now receive the “Server Time Out” error message immediately. However, the records from tbl.Factwb and tbl.Fac2 did move to the tbl.Fact.
    Our development environment test ran fine.
    Any suggestions?
    Thanks.

    Hi Michael,
    please look in the logs maybe you will found more informations regarding the timeout and eventually share it.
    There are several notes about a timeout in 10 version,
    1394533 - 'Server Time Out' error when performing Modify Application, Full Process of a dimension, or Full Optimize this is related with NLB
    but it could be also related with the web.config 1628908 - How to fix Optimize with compress time-out failure
    or if you reach the max number of connection
    1635749 - Error Message: Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool
    Regards
         Roberto

  • HT5052 i am struggling to download new software update for ipad 2 using itune: The problem is that im getting an error saying time out!!! and when i start downloading again it starts from zero!!

    The problem is that im getting an error saying time out!!! and when i start downloading again it starts from zero!!

    Their alternative option is for you to bring it into the store
    You could google and look for some download helpers (presuming they still exist, haven't used them in years) but they're freeware or adware that caches your download to help you recover from timeouts.
    the timeout is possibly caused by your ISP, if they regularly cycle routers or the such it 'burps' your connection  causeing it to cut out.
    You might try taking your laptop to your local library which may have wifi. Or, as the others have suggested, a friend's house with cable internet.

  • Time out parameter to avoid Table locking

    Hi,
    I am looking at any configurable parameter if any for setting the time out parameter to avoid Table locking.Now what's happening is : If i run select ...for update from one session,oracle is applying a lock till i do a commit.And if i run the same query from another session,it takes unspecified time without returning any error.Using the query with NOWAIT options does not serve my purpose.
    Any help in this regard is appreciated
    Thanks
    Sam

    Are you looking for a way to time out the original query, or are you looking for a way for the second query to wait for some time and then abort if it is unable to lock the row(s)?
    Justin
    Distributed Database Consulting, Inc.
    www.ddbcinc.com

  • TS4006 What can you do if you sent a message, alert and lock mode already on your lost ipod but it doesn't recieve????

    What can you do if you sent a message, alert and lock mode already on your lost ipod but it doesn't recieve???? What else can I do??? I already reported it and also have the find my iPhone app. Anyways how do the police locate an iPod and does warranty cover a lost ipod or can it replace it????

    You would have to ask the Police how they can find your iPod, if it's even possible.  Your warranty with Apple covers defects in materials and workmanship, not loss.

  • Time out parameters for ABAP and JAVA instance

    Hello All,
    We are looking for Time out parameters for our ABAP and JAVA instances.
    As users are complaining that they are getting time out error
    while they are trying to access Cprojects from Portal.
    I was able to check/collect the ABAP instance parameters from SMICM Tcode.
    Can anybody tell me which parameters we need to look for JAVA instance.
    Thanks in advance.
    Regards,
    Amber S

    jstart/shutdownTimeout
    (jstartup/shutdown_timeout)
    Specifies the shutdown timeout, i.e. the grace period for the AS Java instance to shut down before the Java process terminates itself.  Unt is in Seconds. Default is 120
    j2ee/ms/connectTimeout
    (jstartup/wait_for_scs)
    Specifies the timeout for the first connection to the message server. The AS Java instance fails to start if this timeout expires.Unt is in Seconds.Default is  60
    j2ee/ms/reconnectTimeout
    (jstartup/wait_for_reconnect)
    Specifies the timeout for the reconnecting to the message server.The AS Java instance shuts down when this timeout expires.Unt is inSeconds.Default is  3600 (one hour)
    Thanks

  • ATTACHMENT TIMES OUT! Mail, Safari and Firefox (Hotmail, ISP webmail)

    I have a problem recently appeared out of blue. It consists of the following:
    every time I try to send attachment the server times out (e-mails without attachments are sent swiftly).
    Mail asks for another server to be able to send e-mail. On Hotmail account and my ISPs webmail (both in Safari and Firefox) it gets stuck until I get logged out from the page.
    I have MacBook Pro and use Tiger 10.4.10 and all the latest software updates. No antivirus software. On the internet side, I have 512 ADSL. Download works fine - full capacity, browsing is good except e-mail clients.
    I did god knows what. Swiched off FileVault, turned off my router's firewall, chatted for hours with my ISP support (he's a hot guy but that wasn't the reason) while fiddling on both ends. Went to the 'hotspot' cafe where the problem continued. Then I realised that it wasn't ISP (thought, never trust a handsome guy) or my router, but something that is affecting both Mail application and browsers. Clients are breathing on my neck for artwork and I am stuck.
    Could it be the latest security update? Could it be magic? Well, I don't believe in magic! Does anyone have a clue?
    Cheers,
    Dragan

    forget about my last message, if you disable plugins you won't be able to see vids on youtube.
    What I did is remove all the plugins that were not for video.
    To erase plugins just open safari and be sure to enable plugins on the Preference tab.
    So, after you've enabled plugins, Open Safari>Help>Installed plugins
    This will show you all the plugins you have installed in your mac. Once you see the list:
    1. copy the name of the plugin file
    2. open a finder window
    3. paste the name of the plugin in the search box of the finder window
    4. delete the plugin
    It worked for me, I think the culprit was either the Silverlight.plugin or the Quartz Composer.webplugin
    Message was edited by: SolidNaza

  • HT1218 after Lion update my airport get a time out every 3 min. and loos connection - how can i fix it?

    Hej
    After I updated to Lion OS my airport get time out and I loos connection al the time . can you help med to fix this problem?
    Thanks

    I turned on data roaming like you had said. Still didn't work. I tried calling the customer service support number with Verizon the other day. I was told by technical support to head over to a local Best Buy and have the reps at the Samsung Experience uninstall the updated software and install it again but on ground not over the network. I went and did that today and still nothing. I'm still on 3g. The rep was puzzled as to why my phone was on global network instead of the LTE/CDMA. I also performed a factory reset on my phone and still nothing. Its frustrating a bit because i specifically bought my Galaxy S5 with Verizon so i could be on 4G LTE and now i cant get it anymore. If Verizon cant seem to figure out my problem with my phone, is this covered under the warranty? I just bought my phone in may 2014.

  • Time out occurring in Posts and Replies

    Getting about 10 seconds to enter a Reply and maybe 60 seconds to enter a post.

     Timeout seems to be related to IE8.  Short test in Firefox gave no loss of cursor.  Currently using IE8 64 and am still getting timeouts and loss of cursor. 
    Workaround is to highlight the existing text and do a cut and paste back into the body of the message which restores the cursor and allows the continuation of the post.
    Timing of the loss of cursor seems to be a variable.  Sometime I can enter more text before it occurs than I can at other times.

  • I pod tuch 5th gen has a good wifi signal but times out on app store and many other apps

    I received a new ipod tuch 5th gen for christmas, started using it a few days ago and noticed dspite the fact it has a good wifi connection, it keeps timing out especially with the app store but many apps as well.If I try to install an app, I have to try sometimes 10 times or more just to get the download going.I'd appreciate any suggestion can't
    Popular Tags: Below is a list of frequently used tags in this community.

    I have taken it back to the Apple store genius bar, but they say they don't see anything wrong. Well unless you use it all day and experience the problems when they happen, you wont see anything wrong. But there are lots wrong with it. But this would be the same store as I purchased the phone. And they backed up my old Iphone 4, but were not able to get anything to load back onto my new phone. So, I lost pretty much everything. But over time, some of my contacts have started showing up, although i am still missing over 800 of them.

  • I keep getting time out error messages when trying to install flash player

    I've put a new install of Win 7 64 bit pro onto a new hdd.  All other s/w has worked fine and not given me any issues except for adobe flash player.  If I just install FP 11 it installs ok.  Issue happens when I try to install the "other" version for Steam.  The install screen stops at 11%, shoots up to 47%, then I get a timeout error message.  If I uninstall and install the Steam version 1st it works then the regular version gets the same timeout error.  I have folllowed all advice from previous threads on this topic such as disabling firewall (I use Panda), a clean adobe install using the flash player uninstall program and removing reader as well then going through the registry and removing all mention of adobe, etc, etc.
    I found a partial way around this.  I installed the Steam version of flash player, then found a website that I could download flash player 10 executable from.  I was able to run that and get both versions of flash player going on my system.  Then the flash player went and found the update to version 11.  I've just tried to install that and I end up with the exact same error messages all over again.
    Is there website that I can download the executable file for flash player 11 from or a link to it on the adobe website?

    I am not sure what you mean by "Flash Player for steam"; the only Flash Player installers I know is the ActiveX (for Internet Explorer) and the plugin (for other browsers); you can find both at http://helpx.adobe.com/content/help/en/flash-player/kb/installation-problems-flash-player- windows.html#main-pars_header
    [topic moved to Flash Player forum]

  • I keep getting an error message in the middle of texting it will kick me out saying messaging error, and my family keep telling me they are text me but I'm not getting them???i have shut my phone off several timest to reboot..help

    @

        jd1918,
    Let's get you messaging again! Try resetting the Messaging app: http://vz.to/1nfLfYq . Power the phone off and back on once again. Retest and let us know how it's working.
    BrianP_VZW
    Follow Us on Twitter @VZWSupport

  • Under sql server job agent, view job history gets time out error message. How to fix?

    Thanks

    It looks like you have many data in JOB VIEW history. You may PURGE the jobhistory.
    You can keep the history info for last few months and purge the old data using 
    sp_purge_jobhistory Ref: http://technet.microsoft.com/en-us/library/ms175044.aspx

  • I have a dual-boot system on my laptop (windows/linux). Firefox opens on windows but not on linux (on linux firefox 'times out'). Why? and how do i fix this?

    could it be to do with the compatability being set to a windows setting?

    could it be to do with the compatability being set to a windows setting?

  • Time Machine backup file corrupted and locked

    This morning when I switch on my Mac there was a dialogue box telling me that my Time Machine backup file was corrupted and that Time Machine would have to create a new backup file.
    I am backing up my Macs to a disk connected to my Airport Extreme. It's been working for months without any problems. Other than this morning. Time Machine buddy had the following message:
    +Starting standard backup+
    +Attempting to mount network destination using URL: afp://[email protected]/MyBookHome+
    +Mounted network destination using URL: afp://[email protected]/MyBookHome+
    +QUICKCHECK ONLY; FILESYSTEM DIRTY+
    +Runtime corruption detected on /Volumes/MyBookHome/iMac27.sparsebundle (fsck_hfs -q termination status: 3)+
    +Attempting to mount network destination using URL: afp://[email protected]/MyBookHome+
    +Mounted network destination using URL: afp://[email protected]/MyBookHome+
    +Backup verification failed for image /Volumes/MyBookHome-2/iMac27.sparsebundle!+
    +Moved previous backup image to /Volumes/MyBookHome-2/iMac27_2010-11-01-032949.sparsebundle+
    +Recovery backup declined by user.+
    +Backup canceled.+
    +Ejected Time Machine network volume.+
    Has anybody seen something like this before?
    I now have a locked and renamed sparsebundle on my disk and backups are not working anymore.

    aschmid wrote:
    Yes you are right, I know it isn't supported - as so many other things but they work!
    This one is notorious for working for a while, then . . . not.
    In addition to the problems above I got a pop-up from Time Machine saying the backup file is broken and it needs to create a new one. I told it to go ahead and what happened is that it actually proceeded to DELETE the old backup file before creating a new one - there goes my several months of backup history!
    Yes, just as it says in the message. See #C13 in [Time Machine - Troubleshooting|http://web.me.com/pondini/Time_Machine/Troubleshooting.html] (or use the link in *User Tips* at the top of this forum).
    All I can say do now is connect my drive directly to my iMac and figure out a way how I can backup my other iMac and the MacBook I have. On the AE this just worked remotely.
    Yeah. Until it didn't.
    Really not much options here to backup a home with 3 Macs!?!
    Sure there is. Back the others up to the same drive, over your network, via sharing. See #22 in [Time Machine - Frequently Asked Questions|http://web.me.com/pondini/Time_Machine/FAQ.html] (or use the link in *User Tips* at the top of this forum), for details and setup instructions.

Maybe you are looking for

  • Incoming payment for incoming payment, credit memo, journal entry &invoice

    The message subject is expression of my f**king confusing. Suppose, we received payment on account 120 Ringgit, invoice amount 210 Ringgit, JE transaction amount 10 Ringgit and credit memo amount (without copied from a certain invoice) 5 Ringgit. In

  • Airport Express and Flashing Yellow - Please Help!

    I just purchased an Airport Express and cannot get anything the status indicator to flash anything other than a yellow. I am working on a Win 7 64 bit platform and my router is Netgear N600 (model WNDR3700). The only changes I made to the router is v

  • Split one salesorder item into two items in delivery

    We want to split one salesorder item into two different items in the same delivery. This is because we will pick the material from two different storage locations. Any user-exit to use for solving this? Best regards, Terje

  • Error start SOA Suite(J2EE Server)

    Usually J2EE Server successfully start and works. But sometimes server cannot start, and shows a following error: ================================================== ias-component: default_group process-type: home process-set: default_group Error Mess

  • Any known issues with TLF in AIR 2 from Flash CS5?

    Hi, We're creating an AIR 2 application in Flash CS5. Virtually all text is TLF text. It's a CPU and RAM hog. Saving the file as CS4, opening it in Flash CS5 and then generating an AIR 2 file works great, although, of course, we've lost all the TLF a