Write to file, send to email and pause...

I have a procedure that writes to a file and sends as an email attachment.
This procedure uses FOR LOOP, the goal is to get the distinct EMP ID, LOOP and his REFERENCE NUMBER, LOOPS again gets all his record on table and WRITES to file and SEND to EMAIL.
I have a total of 1,700 files to send to each EMP, however our Email Administrator told me they could not accomodate to send emails that much, they were afraid our email server would crash.
So I have to rewrite my procedure and use a DELAY option.. Is that possible to put the DELAY option on my code? Let say send 100 email and pause for 10 mins and so on..
Is this possible to write on the query?

Would it be possible to use the DBMS_LOCK.SLEEP procedure?
From the Oracle documentation...
SLEEP Procedure
This procedure suspends the session for a given period of time.
Syntax
DBMS_LOCK.SLEEP (
seconds IN NUMBER);
Reference:
http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_lock.htm#i997212
J.Hill

Similar Messages

  • I have tried a lot to find an app or some way in email to attach multiple of pdf files in one email. I could not find anything that sends multiple pdf file in one email and still keeping the file in simple pdf format for the recipient.

    I have tried a lot to find an app or some way in email to attach multiple of pdf files in one email. I could not find anything that sends multiple pdf file in one email and still keeping the file in simple pdf format for the recipient.

    I am not aware of a way except for photos that allows you to select multiple files in an email. I even checked settings in the Adobe Reader app, and it does not show that ability.

  • TS3276 How do I send an email and get a receipt that they opened it? I have seen this before, but don't know what setting to go to.

    How do I send an email and get a recipt that they opened it?

    Additionally, even if Mail supported it, the recipient would have to allow/consent to sending you the receipt - if I were the recipient, I would certainly not allow it. If you are sending legal or other very important files, use the "return receipt required" feature of US Mail - you will get a receipt that it was accepted with a signature.

  • Send an email and a pager message via modem

    I would like to send an email and pager message through modem using RS 232 Serial port. How should I do that? Example codes would be appreciated.

    Suna,
    Here is a link to NI Developer Zone examples showing how to use the serial port on an FP-20XX module to control a modem and do file transfers. It includes the LabVIEW code for both the PC and the FP-20XX.
    http://zone.ni.com/devzone/conceptd.nsf/webmain/4B5DC1F4481A33F286256B4A007D0216?OpenDocument
    Regards,
    Aaron

  • When I am sending an email and add a recipient, and then go to add another recipient, my contact book will start at "A". How do I change it so that it will leave me at the place I left off at in my contacts?

    When I am sending an email and add a recipient, and then go to add another recipient, my contact book will start at "A". How do I change it so that it will leave me at the place I left off at in my contacts?

    When I am sending an email and add a recipient, and then go to add another recipient, my contact book will start at "A". How do I change it so that it will leave me at the place I left off at in my contacts?

  • Hi, i purchased a 2 dvd digital set. i cant just download it straight to my ipad. they said i have to down load it to my i tunes, then can transfer to i pad. im not seeing how to click the files from my email, and get them into the i tunes acct... ugh.

    hi, i purchased a 2 dvd digital set. i cant just download it straight to my ipad. they said i have to down load it to my i tunes, then can transfer to i pad. im not seeing how to click the files from my email, and get them into the i tunes acct... ugh.
    i do not have a mac home pc. just a regular pc

    I had the same problem after I gave my old iPad to my parents and tried to install Netflix. This is what you have to do:  Open iTunes on your computer, the one you sync your iPad to. Then go to iTunes Store and search for and download Netflix app. After you download it, if your iPad is set to download new purchases it may start downloading on your iPad. If so, tap and hold to delete the app (because it is trying to install the new version on the iPad) Next step, go to the App Store on your iPad and find Netflix and it should say install since you already purchased it on the computer. Tap to install, and it will say the version is not compatible, tap to download a previous version. Click that and it will install the older version!    One more thing, if and when you sync to your computer again it will say something like " Unable to install Netflix on your iPad" Just click the box to never remind you again, because it's trying to sync the newer Netflix app to your iPad, but it doesn't work so it displays the message. The old app will remain on the ipad. Hope this helps, good luck

  • I m trying to send a email and sms alert using php and it works fine on all systems except on Iphone,the problem is swedish charcters doesn't show on iphones used by people in sweden but works absolutely fine on iphones in india. plz help

    I m trying to send a email and sms alert to people and it works fine on all systems expect on Iphone,the problem is swedish charcters doesn't show on iphones used by people in sweden but works absolutely fine on iphones in india.
    the code i m using is right below,plz have a look and not into the problem as problem is a bit strange.
    $headers = "MIME-Version: 1.0\n" ;
                $headers .= "Content-Type: text/plain; charset=\"UTF-8\"\n";
                $headers .= "X-Priority: 1 (Highest)\n";
                $headers .= "X-MSMail-Priority: High\n";
                $headers .= "Importance: High\n";
                // Additional headers
                $headers .= 'From: Rakesh <[email protected]>' . "\r\n";
                foreach($disemail as $email)
                    $to = $email;
                    $subject = $succMessage['email_subject'];
                    $message = $smsText;
                    mail($to,'=?UTF-8?B?'.base64_encode($subject).'?=',$message,$header);
            if (stripos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== FALSE) {
            $smsText = utf8_encode($smsText);

    i have tried this new charset combination specifically for iphone and i m waiting for response from sweden alliance.....i hope this works fine as iso works great for 8-bit characters.
    would like to have your thoughts though.
    $headers .= "Content-Type:text/plain; charset=\"iso-8859-1\"\n  format=flowed Content-Transfer-Encoding: quoted-printable";

  • Pc is not recognising PDF file ( icon ) in emails and to open these it is loading a 3rd party program on the web. I have installed Adobe several times. To open my files I need to drag them to my Adobe program. any ideas??

    Pc is not recognize PDF file ( icon ) in emails and to open these it is loading a 3rd party program on the web. I have installed Adobe several times. To open my files I need to drag them to my Adobe program. any ideas??

    Hi aadeshs
    This problem is on my laptop  running Vista ( Business) on Adobe 10.0  ,   for many years I did NOT have a problem with this . No forum Pages on this. 
    Also i would like to know how screen readers can better interact with PDF as my wife has difficultys on some email attachments on her laptop , again there seems no easy avenue for someone in her situation surfing websites and forums  for Hours maybe ok ok for sighted people, but not if you are blind & use a screenreader.  No Support Help from Adobe is available.
    thanks
    oliver654837

  • I need to send group email and forward group email?

    I need to send group emails and forward group emails and dont find that capability with ipad or iphone

    There are quite a few group emailing apps available, but most will not allow you to forward an email, as they can only send new emails written within their own app.
    MailShot Pro, uniquely, adds group email to your device so you can send to your groups directly from the standard Mail app. This allows you to forward an email, with any attachments intact, right from Mail.
    Find out why quarter of a milllion users are now using our MailShot apps at jo.my/mailshot (iTunes link). A free version is also available to try, limited to a few small groups of contacts.
    Peter
    Soluble
    Disclosure: I am the developer of MailShot, and may receive benefit from any sales.

  • I tried to send an email and attach a photo and color wheel has been spinning forever

    I tried to send an email and attach a photo and color wheel has been spinning forever. Clearly it is still trying to send the message and it's been 45 minutes. I can't use my mail anymore.

    First off, did you check your internet conection? Your network connection might not be very strong. Try powering your device and turning it on again, see if that works.

  • Is there a way to send an email and prevent it from being forwarded

    Is there a way to send an email and prevent it from being forwarded

    Not with the most common email systems - webmail, POP, SMTP or IMAP. 
    The only email system I know of that can prevent forwarding (or copying or printing) is Lotus Notes (now called IBM Notes).  I believe it can technically be done within an MS Exchange environment, but I have never actually seen it implemented in one.

  • I try sending an email and Firefox disrupts the connection and I have to reload the page. Also, cannot attach any documents to emails.

    I try sending an email and Firefox disrupts the connection and I always have to re-load the page. Also, I cannot attach any documents to emails.

    Try one or more of the following:
    > Restart Your Computer
    > Uninstall and Reinstall iTunes
    > Reset iPod (nothing will get deleted)
    > Look in My Computer (Windows 98, XP) OR Computer (Windows Vista or 7) and see if your iPod is in there.
    In some cases (and this happened to me before) plug your iPod in and out your computer a few times. It should get it going. If not, then I strongly recommend starting your computer.

  • When I attach a JPG file in my email and send it to a Windows friend they get the message "The file type being saved or retrieved has been blocked when they try to open it." Anyone know why and how to fix this problem?

    When I attach a JPG file in my email message and send it to a Windows friend they get the message "The file type being saved or retrieved has been blocked when they try to open it so that they can save it." Anyone know why and how to fix this problem?

    Your Windows friend should ask in a Windows forum why his email client won't open attached jpg files. We have no idea what email client he is using or how his Windows security is configured.

  • Workflow to attach given file to new email and send to specified recipient

    I am new to (and excited about) Automator. My first aim is to create a workflow that creates a new email to be sent to a client, attaches a given file to that e-mail, and sends the email (need to do this for 35, and eventually 100 clients; hence the need for automation). The workflow I have, so far consists of:
    1 New Mail Message
    2 Get Specified Finder Items
    3 Add Attachments to Front Message
    4 Send Outgoing Message
    Steps 1-3 seem to work, but the message, is not sent. Can anyone explain why?
    Steven
    Powerbook G4   Mac OS X (10.4.5)  

    I'm not sure why the mail message isn't getting sent in this workflow, could be a bug? If you're okay with using AppleScript, we've hashed together a neat script on this forum before:
    http://discussions.apple.com/message.jspa?messageID=1220736
    It'll let you do a bunch of other stuff too like put the filenames in your subject line and add a form letter addressed to the recipient.

  • I have a jpeg signature for a signature in Mail account. When I attach another file to the email and se nd it to a Windows -operated recipient, my signature becomes an attachment as well and only the body of the email message is left.

    I have a jpeg I have added for a profeesional look to my signature in my Mail acount. When I attach other files to the message and send the message to a Widows-user recipient, the signature is no no seen as a signature and simply becomes an attachment with the email.
    What can I do to stop this happening. Thanks

    File menu "Attach Files..." then Tick off "Windows-friendly Attachment".

Maybe you are looking for