is it possible to put a timer in PL/SQL statemens?

Let's take an example:
Now I want to insert data from va_table into tmp_table, however, perhaps that the select query statement will have a time to run.

insert into tmp_table
Select * from va_table;

so is it possible to set a timer in PL/SQL statemens, when running too long, the procedure or instruction may interrupt ongoing and dedicated to the next instruction?

Thanks in advance.

use the dbms_sleep procedure

Create procedure my_sleep (SLEEP_TIME in NUMBER)
as
Start

because me in 1... trunc (SLEEP_TIME/600)
loop
DBMS_LOCK. Sleep (600);
end loop;
DBMS_LOCK. Sleep (SLEEP_TIME-trunc(SLEEP_TIME/600) * 600);

end;

Published by: user647181 on Sep 8, 2008 03:22 (added example)

Tags: Database

Similar Questions

  • Can someone tell me if it is possible to put a "time now" on my site of muse?  Thank you

    I need to have the month of the date of the day and year display and I can't find a way to do it. I'm a novice, thought it might be a widget or a process to achieve.

    Hello

    You can click on the link below and generate the HTMl code for the desired format.

    http://www.timeanddate.com/clocks/free.html

    Once you get the code, please insert in Muse of object > insert HTML code.

    Code would look like the code below:

    Concerning

    Vivek

  • Is it possible to put a server on the DMZ SQL

    Hi all

    He would ask about the deployment of PIX. Is it possible to put a server on DMZ SQL (or one of 5 exclusion inside the interface interfaces) and simply define a NAT to allow inside the user access to the DMZ? Also without allowing the outside user access to SQL server. We intend to set a SQL on a DMZ server, such that unathourized internal users will not be able to know the actual address of the SQL Server.

    Are there problems which should be considered on this deployment?

    Thanks in advance,

    udimpas

    Hi Udimpas,

    Yes, your scenario is possible. You can put SQL Server on the DMZ network and allow access to inside users. at the same time, you can also block the access from the outside.

    Let's say, your sql IP address is 192.168.1.10 & your home LAN is 10.1.1.0/24. You can do the following:

    NAT (inside) 0 access-list sheep

    access-list allowed sheep ip 10.1.1.0 255.255.255.0 host 192.168.1.10

    by doing this, you have not nat all traffic from your inside sql server. In case you have defined everything inside your network access lists, you must open port 1433.

    list of access within permit udp 10.1.1.0 255.255.255.0 host 192.168.1.10 eq 1433

    You should not add the ACL above, if you have no restrictions from the inside, from now.

    I hope this helps... all the best...

    REDA

  • Is it possible to put a password that would prevent the program turn accidentally closed?

    We have a person in our laboratory which is spirit very scatter. Several times he wanted to reduce Labview program running, but doesn't actually not paid attention and accidentally closed it by clicking X instead of _, thus negating the whole experience. When the program was closed he didn't ask if he wanted to save or if he didn't know that he wanted to close it. Is it possible to put a password that would prevent the program turn accidentally closed?

    You have two options.

    1. You can hide the X in total in the properties of VI.  Go to the appearance of the window, click Customize, and then uncheck the option to allow the user to close the window.  You would need another method, for example a file-> Quit or exit option button.
    2. If you use a version higher than the Base, you can use a structure of the event to capture the narrow window? event.  This will allow you to ask the user to confirm to get out and do something else required.  If the user cancels, or you need to cancel, you have the abaility to cancel the event.
  • Therefore, it is possible to put pictures in group conversations?

    I noticed that you can not set a picture for new group conversations, however it is still possible to put them for much older groups.

    http://community.Skype.com/T5/Mac/I-can-t-change-the-profile-picture-of-my-group-chat/m-p/3188002#M6...

  • Is it possible to put 2 GB of memory in the Portege R500-11 b?

    Hello.
    is it possible to put 2 GB memory in toshiba R500-11 b?
    because by default, there is 1 GB of RAM?

    Thanks in advance!

    Hey!

    Normally, it can be upgraded up to 2 GB memory. Therefore, you need DDR2-667 modules with 200pins.

    You can buy it from each computer store or an authorized service provider. Upgrading RAM is also fairly easy. ;)

  • Is it possible to keep the timer "always on top"?

    When you use the timer I like to keep the timer of disappearing from the screen saver, but I didn't understand how to do... If that's possible.  After the timer starts, he goes down to a few seconds and the clock face appears again.  To check the time remaining on the timer, you must click to the home screen and select new application timer... which, in few seconds again goes to the background and the face of the clock reappears, again he must open the clock app to see the remaining time.  If there is a way to keep the timer "on-top" without having to repeatedly touch the screen during execution of the timer, I have not discovered.  I would also add the timer to my eyes so I can toggle to him as well.  Of course, I can do it on my iPhone, but the Watch has not yet this ability.  Apple engineers could make sure with the timer and the timer if they see the need.  Are there others who want that ability as well?  I think so.

    Hello

    It is not currently possible to add Timer looks. However, your watch can be configured for more convenient use of the application of the timer:

    • Set your watch to return to the last app used to raise your wrist:
      • On your iPhone, in the application of the watch, go to: Watch My > General > wrist Detection - turn on.
      • On your iPhone, in the application of the watch, go to: Watch My > General > screen Wake:
        • Raise the topic on the wrist, select RESUME last activity.

    After you start a timer by opening the timer app, your watch will return to timer (for as long it remains the last app used) when you then lift your wrist.

    • Add a Timer to your dial of the watch as a complication. When you view the time on your watch:
      • Firmly press the display > drag left / right to the face of the watch you want to customize (not to slip if you want to customize the current face of the watch).
      • Press the Customize button.
      • Some watch faces offers more than one screen customization options > move left until you reach the last screen to select (if available) complications.
      • Tap a complication to customize what is shown in this place.
      • Turn the digital Crown to scroll through available there complications until you reach Timer.
      • Press the digital Crown, then press the dial to return.

    To start the timer directly from your watch dial, press the complication. Once started, the remaining time will be then showed complication on your watch until the end of the timer dial, when the application opens for you to make them disappear.

  • When I put the time, she can use the internet, she changes the time on the computer and returns on the internet. What can I do?

    When I put the time, she can use the internet, she changes the time on the computer and returns on the internet.  What can I do?

    Not enough information.  You have provided no context.  You don't say what version of Windows you are using and you don't really describe the situation in many details.  Reading between the lines, it looks like you have a child who has time on the Internet you want to limit.  You do not tell us what tools you use to control this limit online, so it is difficult to recommend the right forum for your post.  Please update your message with a more detailed description of what is happening and what you want to do.

    One thing that comes to mind is using Live Parental control with a Netgear router.  See http://www.netgear.com/lpc.  LPC uses the service OpenDNS (http://www.opendns.com/)

  • Is it possible to put any kind of 'stop' on a netbook stolen to make it unusable by microsoft, or any other way?

    Is it possible to put any kind of 'stop' on a netbook stolen to make it unusable by microsoft, or any other way?

    Since this forum is not for questions about stolen laptops, you don't ask in the right place.

    Unless you load something like LoJack or TrueCrypt beforehand, there is nothing you can do to turn off a laptop flew.  Well, I hope that there is no personal data, like numbers of bank account on this PC.

  • Is it possible to change the timer increment?

    The timer is changing in increments of 100 milliseconds. Is it possible to decrease it to 1 millisecond? For my application, I need to know when the waveform is a multiple of a number specified, for example, 7 millisecond. I have a Boolean indicator, and I would that he true to see the ot whenever the time is a multiple of this value.

    Is is possible to change the timer for this increment? Or y at - it a better way to reach my goal?

    Your problem of synchronization is the express VI simulate Signal.  You say it take value of 100ms of data.  So your loop will run through the 100ms.  If you want your loop to go to the 1ms (good luck with Windows), tell the express VI to collect only 1ms to a data value.  In your case, it would be 360 samples instead of 36 samples k.

  • Is it possible to put in place a wake-up call to the PC/computer Windows Vista laptop? Then, he can wake up in the morning.

    Is it possible to put in place a wake-up call to the PC/computer Windows Vista laptop? Then, he can wake up in the morning.

    Hello Xltdnbl,

    Thank you for using the Microsoft Windows Vista Forums.  In Windows Vista, there is not a revival on the operating system, but you can add a.  The site below has different types of alarms that can be added.  You can set the alarm to wake up with the sidebar.

    http://Gallery.live.com/liveItemDetail.aspx?Li=354455a7-0b97-42d7-adb1-09aeebee0c46&BT=1

    Please let me know if this was helpful, or if you're still having problems. Engineer James Microsoft Support answers visit our Microsoft answers feedback Forum and let us know what you think.

  • I made a new music video for a song, and the music is not in time with the film, how I put in time?

    I made a new music video for a song, and the music is not in time with the film, how I put in time?
    Oh and I'm using WIndows Movie Maker. One.

    Please repost in Windows Live Solution Center.
    Forum on Windows Live Movie maker:
    http://windowslivehelp.com/forums.aspx?ProductID=5

  • Is it possible to put a video during running on the app or an image?

    Is it possible to put a video during running on the app or an image?

    You can't put a video instead of the boot image.

  • Is it possible to put photoshop on a flash drive?

    Is it possible to put Photoshop or software adobe on a flash drive and run it with the ability to save files? If this is the case, wouldn't be Adobe againist service conditions and my plan would be violated? I speak especially if I want to get some work and my primary configuration is a desk top that is not portable. I could run the software on a library computer or a friends laptop?

    I speak especially if I want to get some work and my primary configuration is a desk top that is not portable. I could run the software on a library computer or a friends laptop?

    To run it on the computer of someone else (library or a friend), the only is to install with administrator rights and a compatible operating system as you would on your own computer and activate.

  • Hello, I have a question. I want to buy a new macbook pro. On my old macbook is photoshop CS6 and Lightroom 6. When I put the time machine on my new macbook. Does PS and LR?

    Hello, I have a question. I want to buy a new macbook pro. On my old macbook is photoshop CS6 and Lightroom 6. When I put the time machine on my new macbook. Does PS and LR?

    We do not recommend installation from a backup, time machine, or migration of files. All programs must be installed from the installation files.

    Please try to install from here: Download produced CS6

    After downloading the installation files, see these instructions to extract the files and install your product.

    And lightroom from here: Download Photoshop Lightroom

    Moving to download, installation, setting up

Maybe you are looking for