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

Similar Messages

  • 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

  • Vold Manager never detects the cd rom and any other removable media

    Hi,
    I have installed solaris 10(i86pc i386 i86pc) on my PC through Oracle Virtual box but I am stucked in a problem that the vold manager never detects the cd rom and any other removable media devices. I have tried many documented methods but could not get solution to this problem. I also stopped the volume manager (vold) and tried to mount the cd rom manually but still could not mount the cd rom.
    I don't know how to configure solaris in such a way that it could detect cd rom and any other removable media.
    Any help in this regard will be highly appreciated.
    Regards,
    Anees

    Is it an IDE or SCSI CD-ROM? Can you post back the output of the following command?
    ls -l /dev/dsk/c*

  • I have an iMac5,1 with an intel processor.  For the last month or so, whenever I play a video from an outside source - e.g. YouTube, the picture jumps and breaks-up.  All of my software is up-to-date.  Any thoughts on how to fix this problem?

    I have an iMac5,1 with an intel processor.  For the last month or so, whenever I play a video from an outside source - e.g. YouTube, the picture jumps and breaks-up.  All of my software is up-to-date.  Any thoughts on how to fix this problem?

    You're welcome. As to checking speed go to http://speedtest.net/ and it will choose the closest server for you. BTW, whatever you do, don't click on the robot icon that says "Start Scan" or MacKeeper below that. Only use the speed test in the middle that has the button BEGIN TEST on it. It will run a download speed test first and then an upload speed test. The download test will give a much faster response.

  • Hi, I'm having a problem retrieving my missed calls. When I press the recents button it goes back to home screen. But when I press mail button and any other application the button works. I have tried restore but to no avail. Please help.

    Hi, I'm having a problem retrieving my missed calls. When I press the recents button it goes back to home screen. But when I press mail button and any other application the button works. I have tried restore but to no avail. Please help.

    I have exactly the same problem, happy a few days ago. Did you find a solution?

  • ITunes 10.6.3 Mac running 10.7.3 not responding I have deleted iTunes and reinstall iTunes and it keeps happening I also scanned the computer for any trojans and any other possible viruses but the pc is running perfect waft do I do ? Please help me ?

    I need help iTunes 10.6.3 Mac running 10.7.3 not responding I have deleted iTunes and reinstall iTunes and it keeps happening I also scanned the computer for any trojans and any other possible viruses but the pc is running perfect waft do I do ? Please help me ?

    Hey thanks for replying.
    Here's what I did:
    First I tried the Winsock reset in the Command prompt. Nothing changed.
    Next, I tried the instructions on http://http://support.apple.com/kb/TS4123. The only other program that came up on the 'Winsock Providers' tab on the program was 2 Windows Live applications, which I can do without. So I deleted all Windows Live Applications.
    I did the Winsock reset in the Command Prompt again and rebooted my comp.
    Unfortunately, nothing has changed. iTunes keeps freezing at various stages of the sync, then shows the candy cane-striped bar with either the words 'Finishing sync' or 'Cancelling sync', before showing the Apple logo.
    Sometimes, iTunes gets to the syncing stage - "Copying # of ####" - where it will trudge through the first, second and third tracks before flashing "Copying 4 of ####" for a split second and I catch "Cancelling sync" briefly before the Apple logo appears.
    Again, I've repeated the steps I mentioned in my previous post. Does ANYONE know when the new version of iTunes is set to be released?! This one is driving me INSANE, to say the least!!

  • Changed AppleID p-word and now can't login to icloud on mac mini. I use correct password and I get spinning grey wheel. I know it's the correct password cause any other p-word gets error message. Also, my time capsule is blinking amber.

    Changed AppleID p-word and now can't login to icloud on mac mini. I use correct password and I get spinning grey wheel. I know it's the correct password cause any other p-word gets error message. Also, my time capsule is blinking amber. I've reset my password a few times and it doesn't help. Also have shut down completely and unplugged everything to no avail.

    Hey jamesarm97 & diegofoto,
    On August 21st, some users may have been unable to access iCloud services for a short period of time. Apple worked quickly to resolve these issues, however you two may have experienced them. To check the current status of these systems please see:
    Apple - Support - System Status
    http://www.apple.com/support/systemstatus/
    If either of you are still experiencing issues, you may want to troubleshoot with the following articles:
    iCloud: Troubleshooting web browser issues with iCloud.com
    http://support.apple.com/kb/TS4050
    iCloud: Account troubleshooting
    http://support.apple.com/kb/TS3988
    Thanks,
    Matt M.

  • Experiencing trouble syncing with the 10.3 version of iTunes on my Windows Vista machine. Have uninstalled all Apple software twice, reinstalled and continue to get an error 7 message in connection with the Photo Processor. Any other ideas to try?

    Experiencing trouble syncing with the 10.3 version of iTunes on my Windows Vista machine. Have uninstalled all Apple software twice, reinstalled and continue to get an error 7 message in connection with the Photo Processor. Any other ideas to try?

    Hi,
    got it fixed! My Son had both files on his Win7 iTunes installation. Never mind he had no issues whith ths iTunes and iPhone Sync. So I checked my other Win XP PC, where I don't have this problem syncing my ipad, and surprise. Both files do NOT show up on this PC. So I renamed the iTunesPhotoProcessor.exe I found under c:\program file\iTunes and synced again my iPhone and it went through without any error. So the problem might be and unremoved iTunesPhotoProcessor.exe or the missing iTunesPhotoProcessor.dll under the iTunes install root folder and this even if I had checked that the folder was completely removed during iTunes unistall.
    Please try yourselve and just rename the iTunesPhotoProcessor.exe to iTunesPhotoProcessor.exe_ under c:\program file\iTunes or get a copy of the missing iTunesPhotoProcessor.dll and cp to c:\program file\iTunes.

  • HT5577 Hi, I can access my account, i have my username and password . But I forget my answer of the security question. And I lost the reset email. Any other way I can reset the reset email? I still have my redeemed gift card money in there.

    Hi, I can access my account, i have my username and password . But I forget my answer of the security question. And I lost the reset email. Any other way I can reset the reset email? I still have my redeemed gift card money in there.

    You need to contact Apple. Click here, phone them, and ask for the Account Security team, or fill out and submit this form.
    (93082)

  • I cannot install adobe flash onto my mac, whenever the installation box appears it asks for a password! I have entered my apple ID password and any other password I use, but still no joy! Any advice?

    I cannot install adobe flash onto my mac, whenever the installation box appears it asks for a password! I have entered my apple ID password and any other password I use, but still no joy! Any advice?

    Exactly where are you getting your Flash from? It is quite free from the maker, no password needed.
    http://get.adobe.com/flashplayer/
    However, if you fell for a trap and were lured into a fake site to rob you of your Apple ID credentials, I suggest you change your passwords immediately.

  • Music I already have on my computer will not pull up in itunes. I dragged the files, copied the files,  and even tried adding the files but nothing works. The songs play on any other program except for itunes. What do I do??

    Music I already have on my computer will not pull up in itunes. I dragged the files, copied the files,  and even tried adding the files but nothing works. The songs play on any other program except for itunes. What do I do??

    OMG......THANK YOU THANK YOU......I been reading articles after articles and nothing was working......tryed the Crtl+S and there it was. I can not thank you enough......I appricate it    Can not believe it was that simple. I am one happy person again.....

  • I have an i phone 4 and my screen is locked and i cant remember the password is there any other way to unlock it

    I have an i phone 4 and my screen is locked I can't remember the code is ther any other way to unlock it

    I think you can fix by plugging it in and restore plus back up. Go to apple.com to see if there would be another way.

  • If Firefox is set as the default browser, and any application attempts to open a new window, this fails and I get the error "Firefox is already running..."

    Here is what I am running:
    Microsoft Windows 7, Service Pack 1, Fully updated to 4/10/2012
    Fresh Install of Firefox 11. No add-ons enabled as a result of troubleshooting.
    I am a user with administrator rights
    UAS is disabled.
    To begin, this has been going on Since Firefox 10 or so. A few months now.
    I am able to open Firefox. My add-ons worked (ABP, Flashblock, ABP Element Hiding Helper, IETAB2, Downthemall, Greasemonkey, 4chan extension) had no problems. Firefox is set and has been set for the last two years as my default web browser.
    However Since approximately Firefox 10 or so, maybe before that, If I have a Firefox session open, and any other application attempts to open a session in a new window, I get the Firefox is already running, but not responding error."
    I attempted to follow troubleshooting advice already posted (look for parent.lock files left behind [none present], multiple sessionstore.js files [none present], create a new user profile, attempted to clear out the "read-only" permission in windows 7, however as soon as it is cleared, the read only permission returns.)
    As a last resort, I deleted the Firefox folder, the %APPDATA%/Mozilla directory in its entirety, then utilized CCleaner to remove any and all references to Firefox in the windows registry, then did a full re-install, no extensions installed right now.
    I checked preferences and have the option "open new windows in a new tab" checked off. The problem persists regardless if this option is checked on or off. This problem persists in or out of safe mode, even with the brand new install.
    Test Cases:
    All cases:
    Firefox is selected as the default browser for windows 7
    Case 1: Open a firefox session. Utilize any other program that attempts to open a link to their website in a new browser window or new browser session. Experience "Firefox is already running" error
    Case 2: Open a firefox session. Right click on Firefox on the task bar. Select "open in new window". Experience "Firefox is already running" error
    Case 3: Open a firefox session. Select the Firefox Menu > New tab > New Window. A new window will actually open.
    This is the only method of opening a new window in the same browser session or profile that actually works on my system. Attempting to open a browser session from the task bar "open new window dialog" or opening a new window while a current window/session is running will not open firefox in a new window or a new tab in the current session. The "Firefox is already running, but is not responding" error will occur every time.

    Cor-el's suggestion resolved my problem. Apparently the MOZ_NO_REMOTE variable was set to 1 on my system variables. I never made it, and really have no idea how it got there, but deleting this variable and restarting firefox has resolved the issue. Thanks Cor-el!
    Marking case: Solved
    Solution: Verify the MOZ_NO_REMOTE variable is NOT set to 1. This can be achieved by simply deleting this variable.

  • Is there anyway to open a mobi format book on ipad without installing the kindle app but any other app

    Is there anyway to open a mobi format book on ipad without installing the kindle app but any other app

    Have you tried GoodReader? It claims to handle very large file sizes and it's very good for annotations. It's my PDF reader of choice on the iPad
    From the GoodReader manual:
    File types to view in GoodReader
    There are two types of viewing engines - the ones that we've written ourselves, and the built-in device's standard viewing engine. Our own engines provide great flexibility and many additional features not found in the built-in engine (for example, opening very large files). The built-in engine is very powerful and knows many file formats, but has many limitations and no additional features.
    Files of very big size (our own viewing engine):
    very large PDF files (including password-protected). File size is not the limit. Revolutionary PDF Reflow (Extract Pure Text) mode. See Viewing PDF Files for details.
    very large TXT files. See Viewing TXT Files for details.
    high-resolution pictures and other graphic files (including slideshow viewing mode). See Viewing Pictures for details.
    And as a free bonus - files of normal size (iOS standard viewing engine):
    all file formats supported by Safari engine: Microsoft Office files - Word, Excel, PowerPoint, HTML files and Safariwebarchives
    iWork'08/09 files - Pages, Numbers, Keynote (files must be saved with Include Preview option)
    .ai files saved with PDF Compatible option
    audio files (natively supported by iOS)
    video files (natively supported by iOS)

  • Having trouble udating to 10.4.6 and any other software

    I'm having trouble installing 10.4.6, and any other software upgrade for that matter. I've tried to upgrade software on another program I use this week. Both the other app's and 10.4.6 updaters will start the install and then give me an error that says something like, "There were errors during installation. Please try installing again later."
    Don't know what kind of errors...just "errors." Very un-mac like.
    My system seems to be running fine otherwise. My apps work fine...it's just when I run a software updater. I've repaired permissions and Disk First Aid says there are no repairs necessary to my drive.
    Any ideas?
    It's a Powermac.G5 1.6ghz running 10.4.5.
    Thanks,
    TimR>

    I started to update from 10.4.5 on my brand new Mac G5 Quadra and the updater showed no drives in the drive window where you choose where to install. I tried both the Combo and the Delta, so then I went to disk utility to see if something was wrong, still no drives. Tried unhooking all peripherals. Booted from orig CD and got to disk utility, said had boot tree problem, repaired it. Tried to update again, still no drives. Even tried an fsck-y in Linux, said everything was fine. Still no drives. Tried Drive 10 and Tech tool ---said no problems. I called Apple help, I'd done everything he recommended...so he said to take it to the nearest Apple store. Not exactly the solution I was hoping for.
    Help!!!
    I run Disk Utility once a month just to keep things running smoothly. So far the rest of the machine is working fine...but My Mac is my business..without it I'm in big trouble. I'm worried. Any ideas out there?
    Mac G5 Quadra   Mac OS X (10.4.5)  
    Mac G5 Quadra   Mac OS X (10.4.5)  

Maybe you are looking for

  • Safari crashes when I want to open it the 1st time of the day!!!!

    Hello, Since about 3 months, everytime I want to open Safari the 1st time of the day, it crashes! Then I have to retry it and then it works. Can you help me? I get the following message: Process: Safari [843] Path: /Applications/Safari.app/Contents/M

  • MSS and ADS

    We are installing the MSS version of web dynpro.  We have a straightforward environment thus far with a portal server (J2EE WAS) and an R/3 server (ABAP WAS).   Accordingly we have installed the ESS and MSS java componenets on the portal server.  ESS

  • Get max value with other fields

    Hi All, I have a table as below Name Value A1     5 A3 10 A2 7 A2 9 A1 10 What I would like to get is the max(Value) and with grouping of its name Name     Value A2 16 Thanks Alex Edited by: user8606416 on 01-Jun-2011 10:17 Edited by: user8606416 on

  • New mac + new hp printer won't sync up w/usb...yet old printer connects

    about 2 months ago i got a new imac and a new hp printer and when i hooked it up with my usb from my old hp printer it wouldn't connect (the mac wasn't reading that anything was connected) so i called hp and they tried to do what they could, but came

  • How do I turn off the ANNOYING text hover in the flash builder 4 editor

    I love Flash Builder 4, but one thing really bugs me about it: the hover tool tip that pops up when you hover over a class in your code. I am climbing the walls trying to find a way to disable this content assist text hover. I don't need it and it is