Are there any ways to get sequence number other than getting it for each re

are there any ways to get sequence number other than getting it for each record

CACHE is the number of values Oracle stores in memory. So the first call to NEXTVAL Oracle grabs x numbers; subsequent calls to NEXTVAL are served from memory until they're all gone and them another bunch is grabbed. The attached sql*plus output demonstrates this behaviour.
Note that normally unused numbers in the cache are returned to the data dictionary but in exceptional circumstances (DB crash) they may be lost.
Cheers, APC
SQL> create sequence seq cache 3
  2  /
Sequence created.
SQL> select last_number from user_sequences
  2  where sequence_name = 'SEQ'
  3  /
LAST_NUMBER
          1
SQL> select seq.nextval from dual
  2  /
   NEXTVAL
         1
SQL> select last_number from user_sequences
  2  where sequence_name = 'SEQ'
  3  /
LAST_NUMBER
          4
SQL> select seq.nextval from dual
  2  /
   NEXTVAL
         2
SQL> select last_number from user_sequences
  2  where sequence_name = 'SEQ'
  3  /
LAST_NUMBER
          4
SQL> select seq.nextval from dual
  2  /
   NEXTVAL
         3
SQL> select last_number from user_sequences
  2  where sequence_name = 'SEQ'
  3  /
LAST_NUMBER
          4
SQL> select seq.nextval from dual
  2  /
   NEXTVAL
         4
SQL> select last_number from user_sequences
  2  where sequence_name = 'SEQ'
  3  /
LAST_NUMBER
          7
SQL>

Similar Messages

  • Are there any way to copy or delete more than one url at a time

    i have a lot of url and i want to copy them to another folder, for now i do it one at a time, so i am wondering can i highlight and cope more than one at a time, and i also want to do this in delete.

    If i ever win a grammy. ill thank u...ok one last thing...is there a way to sort of consolidate tracks? sometimes there are a few...quite a few and some stuff could be on one but i need it to not cut out any of the other parts

  • Is there any way to 'recover' RAM usage (other than restarting)?

    Hi everyone,
    I just upgraded my White Macbook 4,1 to 4GB of RAM and when I first boot the system, Activity Monitor shows that over 3GB is free.
    After several hours of usage (Mail, Safari 4 Beta, iTunes, iCal, iPhoto, Time Machine, Address Book, and yes...Activity Monitor!) it shows just over 2GB free.
    Now the part that puzzles me is that even after quitting all these applications, the RAM usage does recover somewhat, but never reaches it's original >3GB of availability.
    A reboot certainly does the job. But is there any other way that Leopard can recover this memory? Is this normal? If I simply leave the system idle for some time without any open applications will Leopard eventually reclaim the lost memory?
    Thanks!
    Message was edited by: Michael271

    There's no need for any "ram" recovery. It's all handled by the memory manager. You must be coming from the world of XP. See the following:
    About OS X Memory Management and Usage
    Reading system memory usage in Activity Monitor
    Memory Management in Mac OS X
    Performance Guidelines- Memory Management in Mac OS X
    A detailed look at memory usage in OS X
    Understanding top output in the Terminal
    The amount of available RAM for applications is the sum of Free RAM and Inactive RAM. This will change as applications are opened and closed or change from active to inactive status. The Swap figure represents an estimate of the total amount of swap space required for VM if used, but does not necessarily indicate the actual size of the existing swap file. If you are really in need of more RAM that would be indicated by how frequently the system uses VM. If you open the Terminal and run the top command at the prompt you will find information reported on Pageins () and Pageouts (). Pageouts () is the important figure. If the value in the parentheses is 0 (zero) then OS X is not making instantaneous use of VM which means you have adequate physical RAM for the system with the applications you have loaded. If the figure in parentheses is running positive and your hard drive is constantly being used (thrashing) then you need more physical RAM.

  • Is there any way to transmit live video other than RTP

    hi
    since RTP will be blocked by firewalls in many org/places, is there any other way to transmit live video in an efficient way.
    if so plz help me
    rgds
    -venkat

    I have no idea to make out
    transmit live video with RTP
    who have the code of RTP?
    thanks
    My email is [email protected]

  • Are there any solutions to an error 8008 other than the one given online?

    the download always stops at exactly 280.0 MB, if that helps.

    Well, you could trade it in for a white one! 
    First, try a system reset.  It cures many ills and it's quick, easy and harmless...
    Hold down the on/off switch and the Home button simultaneously until the screen blacks out or you see the Apple logo.  Ignore the "Slide to power off" text if it appears.  You will not lose any apps, data, music, movies, settings, etc.
    If the Reset doesn't work, try a Restore.  Note that it's nowhere near as quick as a Reset.  From iTunes, select the iPad/iPod and then select the Summary tab.  Follow directions for Restore and be sure to say "yes" to the backup.  You will be warned that all data (apps, music, movies, etc.) will be erased but, as the Restore finishes, you will be asked if you wish the contents of the backup to be copied to the iPad/iPod.  Again, say "yes."

  • I bought an iphone 5 in December. However my iPhone does not support 1700 HSPA . The current iphone 5 does. Is there any way I can trade my iPhone to get the current iPhone since they are both iphone 5?

    I bought an iphone 5 in December. However my iPhone does not support 1700 HSPA . The current iphone 5 does. Is there any way I can trade my iPhone to get the current iPhone since they are both iphone 5?

    No, you have to sell yours and buy the new iPhone 5 with the proceeds.
    Please do not double post. Asking many times does not change the answer.
    Message was edited by: ckuan

  • Is there any way to force iPhoto to present faces by folder for identification rather than randomly?  Would provide better context for identification especially if a huge number of images is involved.

    Before I commit the time and energy required to load and tag faces in 25,000 images within iPhoto, I need some questions answered;
    Is there any way to force iPhoto to present faces by folder for tagging rather than randomly?  When so many images need tagging, over many years, the context of a folder helps with the identification. The work around is to load the images into iPhoto one folder at a time and do the tagging then.
    How do I get iPhoto to present the tagged faces by last name rather than first name? When so many faces will be identified, it is much easier to find people by surname, particularly when I share the library within the family. The work around is to enter names as last name and first name.  Being able to toggle the sort is much more desireable.
    Is there a way to export a portion of the library including faces?  I want to pass on portions of this huge 125 GB library to my family members.
    Since my family members will need an Apple computer to view the images and faces, they will likely have their own photo library.  So is there any way to combine two libraries and merge the faces?
    About 2/3 of my images have been scanned, so the date of creation is the scanned date rather than the date the photo was taken.  Will this mess up any sequencing or the retrieval of faces?

    If I want to carve off part of a library, I presume the way to do this is to make a copy of the library using PLM then go into iPhoto and delete what I don't want.  The result is the carved off portion.
    You don't need Library Manager to delete the portion you don't want.
    As a general rule: when deleting photos do them in batches of about 100 at a time. iPhoto can baulk at trashing large numbers at one go.
    If I want to merge two libraries, PLM implies that it will do this but will the Faces be merged too?
    I believe so.

  • Is there any way to limit the number of Threads running in Application(JVM)

    Hello all,
    is there any way to limit the number of Threads running in Application(JVM)?
    how to ensure that only 100 Threads are running in an Application?
    Thanks
    Mohamed Javeed

    You should definitely use a thread pool for this. You can specify maximum number of threads that can be run. Be note that the thread pool will only limit the number of threads that are submitted to it. So donot call "Thread"s start() method to start thread on your own. Submit it to the pool. To know more, study about executor service and thread pool creation. Actually it will not be more than 20 line code for a class and you might need maximum of 2 such classes, one for threadPool and other one for rejection handler (if you want).
    Just choose the queue used carefully, you just have to pass it as a parameter to the pool.
    You should use "Bounded" queue for limiting threads, but also be careful in using queues like SynchronizedQueue as the queue will execute immediately the threads submitted to it if maximum number of threads have not been running. Otherwise it will reject it and you should use rejection handler. So if your pool has a synchronized queue of size 100, if you submit 101th thread, it will be rejected and is not executed.
    If you want some kind of waiting mechanism, use something like LinkedBlockingQueue. What this will do is even if you want 100 threads, you can specify the queue's size to be 1000, so that you can submit 1000 threads, only 100 will run at a time and the remaining will wait in the queue. They will be executed when each thread already executing will complete. Rejection occurs only when the queue oveflows.

  • Hi everyone! ive been stolen my ipad mini 15 days ago, i did set up pass code but ididnt turn on Find my Iphone, are there any ways to track my ipad mini locate?thanks 4 ur help?

    hi everyone! ive been stolen my ipad mini 15 days ago, i did set up pass code but ididnt turn on Find my Iphone, are there any ways to track my ipad mini locate?thanks 4 ur help?

    No.
    What To Do If Your iDevice or Computer Is Lost Or Stolen
    iPhone, iPod Touch, and iPad
    If you activated Find My Phone before it was lost or stolen, you can track it only if Wi-Fi is enabled on the device. What you cannot do is track your device using a serial number or other identifying number. You cannot expect Apple or anyone else to find your device for you. You cannot recover your loss unless you insure your device for such loss. It is not covered by your warranty.
    If your iPhone, iPod, iPod Touch, or iPad is lost or stolen what do you do? There are things you should have done in advance - before you lost it or it was stolen - and some things to do after the fact. Here are some suggestions:
    This link, Re: Help! I misplaced / lost my iPhone 5 today morning in delta Chelsea hotel downtown an I am not able to track it. Please help!, has some good advice regarding your options when your iDevice is lost or stolen.
      1. Reporting a lost or stolen Apple product
      2. Find my lost iPod Touch
      3. AT&T. Sprint, and Verizon can block stolen phones/tablets
      4. What-To-Do-When-Iphone-Is-Stolen
      5. What to do if your iOS device is lost or stolen
      6. 6 Ways to Track and Recover Your Lost/Stolen iPhone
      7. Find My iPhone
      8. Report Stolen iPad | Stolen Lost Found Online
    It pays to be proactive by following the advice on using Find My Phone before you lose your device:
      1. Find My iPhone
      2. Setup your iDevice on iCloud
      3. OS X Lion/Mountain Lion- About Find My Mac
      4. How To Set Up Free Find Your iPhone (Even on Unsupported Devices)
    Mac Computer
           Find My Mac can be used from Find My Phone at iCloud.com and via Find
           My Phone on your iDevice.
          The following is third-party anti-theft software:
               1.  STEM 2.1
               2.  MacPhoneHome 3.5
               3.  MacTrack 7.5.0
               4.  VUWER 1.7
               5.  Sneaky Bastar* 0.2.0
               6.  Undercover 5.1.1
               7.  LoJack for Laptops
               8. Hidden 2.0
               9. Prey 0.6.2

  • Is there any way to link page number with the reference page number within text in InDesign CC and CS6?

    Is there any way to link page number with the reference page number within text in InDesign CC and CS6?

    You should ask in InDesign
    The Cloud forum is not about using individual programs
    The Cloud forum is about the Cloud as a delivery & install process
    If you will start at the Forums Index https://forums.adobe.com/welcome
    You will be able to select a forum for the specific Adobe product(s) you use
    Click the "down arrow" symbol on the right (where it says All communities) to open the drop down list and scroll

  • Is there any way I could undo the restore or get my pictures back?

    I backed up my old iPhone to my computer so I could get my old pictures and when I restored my new iPhone all of the pictures I had taken on my new phone were gone. Is there any way I could undo the restore or get my pictures back?

    Restore the new iPhone from backup of old phone.
    -> http://support.apple.com/kb/ht2109

  • I just downloaded a video in HD, but I found out after the download was over my computer doesn't play HD videos. Is there any way I can return the video and get the SD version, or upgrade my computer so it will play the HD video?

    I just downloaded a video in HD, but I found out after the download was over my computer doesn't play HD videos. Is there any way I can return the video and get the SD version, or upgrade my computer so it will play the HD video?

    From http://support.apple.com/kb/HT3209
    When you purchase an HD video on a supported device or computer, only HD video will be downloaded. To download the SD version, you need to download the video again from your Purchased page. Conversely, if you purchase an HD video on an unsupported device, the SD version will be downloaded. Then, you will need to download the HD version from your Purchased page. Learn more about downloading previous purchases.

  • Someone had my apple id password and bought a game from the App Store. I've changed my password but is there any way to find he number it was downloaded to?

    Someone had my apple id password and bought a game from the App Store. I've changed my password but is there any way to find he number it was downloaded to?

    Contact iTunes support

  • Are there any ways to make sure FCPX saves the project before quitting?

    The other day when I was working on a project, Final Cut Pro did not save any changes I made for the last 3 hours. I lost all of my work. I understand that FCP is supposed to autosave  projects, but it didn't. Are there any ways to make sure that it saves before quitting? I am currently running the trial version 10.0.8, and I plan to upgrade to the full version, soon, provided there aren't too many bugs.

    It turns out it was a corrupted project. All other projects autosave before quitting, but that one always displays the same last modified time. I solved it by creating a brand new project.

  • ARE THERE ANY WAYS BY WHICH I CAN FIND THE Appln Servlet Container Memory

    ARE THERE ANY WAYS BY WHICH I CAN FIND THE Appln Servlet Container Memory .

    You can check out Tomcat memory usage using Tomcat Manger
    and clicking server status.
    It gives the information like this
    Free memory: 489.80 MB Total memory: 508.12 MB Max memory: 1016.12 MB
    For specific application stats, i think there are some profilers which u have to search in google.

Maybe you are looking for