Delays on first daily use after opening an application

For the past month or so there's a longish delay the first time I use an application. For example, I have no problem opening Mail and getting messages, but the first time I want to send a message there's exactly a 28 seconds delay before it lets me type anything, and no delay for any further messages (until I close Mail and reopen it, where the delay reappears). There's a 23 seconds delay the first time I send something to be printed, 20 seconds the first time I save a file in Illustrator or Photoshop (both CS4), etc., but again, no delay afterward. It feels like the action is being checked once and then okayed; the length of the delay is always the same for a particular action.
Any idea what could be doing this? I've added a few things lately on my G5: Growl, 1Password, Fiwi, Sneak Peek Pro, Delicious Library, Default Folder X, and Drop Box. I've removed them all and put them back one by one with no change.
It almost feel like a virus of some kind...

Carolyn,
Thanks for your reply. I have over 20 years experience using a Mac for publishing, and the last time a slowdown similar to this one happened was due to a virus (yeah, rare; I think it had something to do with Quicktime and some automatic action). Hence, my wondering about some benign virus slowing down specific actions.
The HD I work from (different from the HD with the OS) has a capacity of 75G, with only 13G being used. All my HDs (or partitions, 6 of them in total) have between 35G and 90G of free space.
As mentioned before, the slowdowns are very specific, and happen one time only until I close the application and open it again. I can't pinpoint exactly when it started: right after a system update, after installing a shareware...
Has anybody else experienced something similar? I'd like to try different solutions before reinstalling the OS in the hope that it cures the problem.

Similar Messages

  • I am using iphoto 6.0.6 and after opening the application it drops below the dock.  I can see it when I use expose to reveal all open windows but once selected it drops below the dock.

    I am using iphoto 6.0.6 and after opening the application it drops below the dock.  I can see it when I use expose to reveal all open windows but once selected it drops below the dock.

    Try trash the com.apple.iPhoto.plist file from the HD/Users/ Your Name / library / preferences folder.
    (On 10.7: Hold the option (or alt) key while clicking on the Go menu in Finder to access the User Library)
    (Remember you'll need to reset your User options afterwards. These include minor settings like the window colour and so on. Note: If you've moved your library you'll need to point iPhoto at it again.)
    What's the plist file?
    For new users: Every application on your Mac has an accompanying plist file. It records certain User choices. For instance, in your favourite Word Processor it remembers your choice of Default Font, on your Web Browser is remembers things like your choice of Home Page. It even recalls what windows you had open last if your app allows you to pick up from where you left off last. The iPhoto plist file remembers things like the location of the Library, your choice of background colour, whether you are running a Referenced or Managed Library, what preferences you have for autosplitting events and so on. Trashing the plist file forces the app to generate a new one on the next launch, and this restores things to the Factory Defaults. Hence, if you've changed any of these things you'll need to reset them. If you haven't, then no bother. Trashing the plist file is Mac troubleshooting 101.

  • Why the bottom of the screen of my ipod can not be used to open the application but the application could be to shift

    why the bottom of the screen of my ipod can not be used to open the application but the application could be to shift, please help me

    Try:
    - Reset the iOS device. Nothing will be lost      
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Restore from backup. See:                                               
    iOS: Back up and restore your iOS device with iCloud or iTunes
    - Restore to factory settings/new iOS device.                       
    If still problem, make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
    Apple Retail Store - Genius Bar                                                              

  • My MacBook Pro freezes after opening any application or trying to update

    HELP!
    I haven't used my mac for a while and when I booted it up, I did all my usual things when I didn't use my mac for a long time, like opening software update. But software update froze after trying to download a firmware and iTunes update. I thought this was bad luck so I did a hard shut down and restarted the computer after 5 min. When I got back on I reran software update and the same thing happened. I did another hard restart and didn't run software update, but with every other application it froze as well!
    I ran extended hardware tests that didn't come up with anything. I took my Mac to be serviced but they couldn't detect the problem. I reinstalled OSX from the disc and didn't work either.
    When it freezes all animations are not stopped, like the progress bar animation. But the dock doesn't magnify when I hover over it, nor does the toolbar at the top work. It just does the spinning cursor when I move the mouse over the desktop.
    Now I can't even open the settings and change something without it freezing, nor could I use it for more than 3 minutes.
    Help will be greatly appreciated!

    HELP!
    I haven't used my mac for a while and when I booted it up, I did all my usual things when I didn't use my mac for a long time, like opening software update. But software update froze after trying to download a firmware and iTunes update. I thought this was bad luck so I did a hard shut down and restarted the computer after 5 min. When I got back on I reran software update and the same thing happened. I did another hard restart and didn't run software update, but with every other application it froze as well!
    I ran extended hardware tests that didn't come up with anything. I took my Mac to be serviced but they couldn't detect the problem. I reinstalled OSX from the disc and didn't work either.
    When it freezes all animations are not stopped, like the progress bar animation. But the dock doesn't magnify when I hover over it, nor does the toolbar at the top work. It just does the spinning cursor when I move the mouse over the desktop.
    Now I can't even open the settings and change something without it freezing, nor could I use it for more than 3 minutes.
    Help will be greatly appreciated!

  • Mantain a Session in one application after opening another application

    Hi
    My Requirements is like this..
    I have one ear apllication running in one place.. We we click a link on this applcation it has to open up a third party application in another widow., and session in the current application has be maintained until third party application is explicitly ask's or time out or expires...
    Thanks
    Venky

    Interesting! The question then is, how would you know whether the third-party application has timed out? Is it possible to have some kind of contract with the third-party application? If you can, you can use AJAX to keep polling the server with some dummy request in the parent window to keep its session alive until a variable is reset, which will be done by the child window when a timeout is detected. This is one option that I can think of..
    Edited by: ganeshmb on Jun 20, 2008 10:43 PM

  • Open the application multiple times in the same instance

    Hello,
    we are creating a swing application, using the following standard code:
    SwingUtilities.invokeLater(new Runnable() {
    public void run() {
    createAndShowGUI();
    Every time we call our program, it opens a new application. If we call it twice, 2 applications will be opened.
    We want to avoid that.
    That is, we call first our program, it opens the application once.
    Then everytime we call our program again, it opens it in the same previously opened application.
    Do you know how to do that?
    Thanks a lot,

    If we call it twiceWhy you should call it twice?

  • Hi I'm RIC MOJICA from philippines, i just have to update my iphone 4 but suddenly after s update it was written that i need to log-in my first account that i used to open my phone but suddenly i borrowed to my sis but she ddnt remember?

    hi I'm RIC MOJICA from philippines, i just have to update my iphone 4 after i update it was written that i need to log-in my first account that i used to open my phone before but suddenly 3 years ago from now, how can i remember my account and one of my problem is I borrowed my sis account to open my phone but after that i change and make 1 for me...how can i use my phone if always need account to activate my iphone 4,
    PLEASE NEED HELP...
    ric mojica

    You can't activate any GSM iPhone without a valid sim card installed in the phone.
    So, yes, you need to get a sim card.

  • I'm using acrobat pro in my project after debuging the project and after opening a certain number of PDF files I receive the message: the maximum number of files opened has been reached, you have to close some files to continu.even doing that, I steel rec

    I'm using acrobat pro in my project after debuging the project and after opening a certain number of PDF files I receive the message: the maximum number of files opened has been reached, you have to close some files to continu.even doing that, I steel receive the same message.Some one can tel what to do please? Thanks

    Hi Memalyn
    Essentially, the bare issue is that you have a 500GB hard drive with only 10GB free. That is not sufficient to run the system properly. The two options you have are to move/remove files to another location, or to install a larger hard drive (eg 2TB). Drive space has nothing to do with SMC firmware, and usually large media files are to blame.
    My first recommendation is this: download and run the free OmniDiskSweeper. This will identify the exact size of all your folders - you can drill down into the subfolders and figure out where your largest culprits are. For example, you might find that your Pictures folder contains both an iPhoto Library and copies that you've brought in from a camera but are outside the iPhoto Library structure. Or perhaps you have a lot of purchased video content in iTunes.
    If you find files that you KNOW you do not need, you can delete them. Don't delete them just because you have a backup, since if the backup fails, you will lose all your copies.
    Don't worry about "cleaners" for now - they don't save much space and can actually cause problems. Deal with the large file situation first and see how you get on.
    Let us know what you find out, and if you manage to get your space back.
    Matt

  • The buttons in main the vi get locked after opening a vi reference in a subpanel and using buttons within the subpanel.

    I am trying to open a reference to a vi in the subpanel of the main vi. However after the vi opens in the subpanel and after pressing a few buttons in the subpanel the buttons in the main vi get locked, i.e. I can't even close the main vi or control anything else. Is there any way how I can avoid this happening?

    > The buttons in main the vi get locked after opening a vi reference in
    > a subpanel and using buttons within the subpanel.
    >
    > I am trying to open a reference to a vi in the subpanel of the main
    > vi. However after the vi opens in the subpanel and after pressing a
    > few buttons in the subpanel the buttons in the main vi get locked,
    > i.e. I can't even close the main vi or control anything else. Is there
    > any way how I can avoid this happening?
    This is most likely happening because in either the top or sub panel,
    there is an event structure that is queuing events, and is set to lock
    the panel until the events are handled, and because of the logic in the
    diagram, the events aren't being pulled from the queue.
    So, you have a deadlock. You are waiting
    on the panel. The panel is
    waiting on the diagram. And the diagram is waiting on something else.
    So, if there are indeed event structures involved, determine where in
    the diagram things are delaying. Also, if you do not need the panel to
    lock until the event is handled, you can change the setting in the
    events dialog on the structure. But the events will still be queued
    until the diagram starts executing.
    Greg McKaskle

  • After I updated iOS 5 can´t use the "open with" for mail attachments.

    After I updated iOS 5 on my iPad 2, I can not use the "open with" for mail attachments. The option is not appearing.
    For example, when I try to open an .wmv attachment the iOS 5 doesn´t show "open with". Before update, I was able to open with "AZUL" software.
    Can anyone help me?

    You did say that the option does not appear at all in mail no matter which file type you want to open correct? I can only assume that something went corrupt in the update that affected your settings and that's why this option no longer appears. For experimental purposes, you could try emailing a PDF to yourself and see if that will allow you to use the Open in function in the mail app.
    If nobody else jumps into this discussion with a different idea, then maybe you should try restoring your iPad. The best way to do so is - first backup the device - and then restore to factory settings and then you can try restoring from a backup at the end of the process.
    However, if one of your settings is corrupt, the backup will be corrupt as well. It may be that you will have to restore to factory settings and then start all over again - adding your apps and content back to the device to get the best results. I would certainly use this process as a last resort. Restoring from a backup maybe all that you need to do.

  • Delay the first dot1x authentication message after a port comes up

    Cisco ISE: 1.2
    Switch IOS: 15.0.2.EX4
    Hello,
    I have configured the APs to authenticate with 802.1X via the switch.
    When I shut the port on which the AP is connected and then no shut it, the port comes up a few seconds later and the switch sends a dot1x authentication.
    I feel that the AP has not finished to boot and that's why it fails because the AP doesn't answer that authentication request.
    I was wondering if it's possible to delay the first authentication message the switch sends just after a port comes up ?
    When I use debug commands I see
    %DOT1X-5-FAIL: Authentication failed for client (Unknown MAC) on Interface Gi3/0/18 AuditSessionID 00000000000006567DDB81C9
    %AUTHMGR-7-RESULT: Authentication result 'no-response' from 'dot1x' for client (Unknown MAC) on Interface Gi3/0/18 AuditSessionID 00000000000006567DDB81C9
    %AUTHMGR-7-FAILOVER: Failing over from 'dot1x' for client (Unknown MAC) on Interface Gi3/0/18 AuditSessionID 00000000000006567DDB81C9
    %AUTHMGR-7-NOMOREMETHODS: Exhausted all authentication methods for client (Unknown MAC) on Interface Gi3/0/18 AuditSessionID 00000000000006567DDB81C9
    %AUTHMGR-5-FAIL: Authorization failed or unapplied for client (Unknown MAC) on Interface Gi3/0/18 AuditSessionID 00000000000006567DDB81C9
    NB: you'll see exhausted all authentication methods because I only configured dot1x on the port (no mab or anything else)
    Thank you for all answers

    Hello,
    Thank you for your reply. That document is very interesting.
    I've just read the chapter regarding the profiling with APs so far and got them working properly the way they showed it.
    However I'm not a big fan of MAB and profiling. Because ISE retieves CDP informations collected through SNMP.
    - You need CDP (or LLDP) enabled and you might not want that for different reasons (Security, Interoperability...)
    - A machine could lie about its identity and pretend through CDP that it's a controller, an AP, a printer and so on.
    That's why the best option, in my opinion would be that the AP sends its credentials and ISE accept it or reject is.
    It's possible to do this with the Cisco APs
    http://www.cisco.com/c/en/us/support/docs/wireless/4400-series-wireless-lan-controllers/99791-eapfast-wlc-rad-config.html
    I'm wondering why Cisco chooses a different EAP method for each of their devices (EAP-MD5 -> Cisco Phones, EAP-FAST -> AP)
    So in my humble opinion, the mab/profiling solution is good but not optimal.

  • Downloads used to open after download. NOw they just end up in the download folder and I have to go to the folder to find it and open it. I did not change seettings, maybe an update changed it? I cannot find a way to change this in settings.

    Downloads used to open after download. NOw they just end up in the download folder and I have to go to the folder to find it and open it. I did not change seettings, maybe an update changed it? I cannot find a way to change this in settings.
    == This happened ==
    Every time Firefox opened
    == A week or two ago. Not sure if result of most recent update.

    Downloads used to open after download. NOw they just end up in the download folder and I have to go to the folder to find it and open it. I did not change seettings, maybe an update changed it? I cannot find a way to change this in settings.
    == This happened ==
    Every time Firefox opened
    == A week or two ago. Not sure if result of most recent update.

  • Why does my entire computer freeze while opening or using After Effects or Premiere Pro CS5?

    Just built a computer to meet all requirements for Adobe, Autodesk 3ds Max, and UDK, for school.
    Specs;
    Motherboard - ASRock X79 Extreme 4-M, Socket 2011 - Micro ATX - 4 DDR3 1600/1333/1066/800 - 3 PCI-E 3.0 x 16 - 7.1 CH HD Audio - PCIE GLAN - 3 SATA3 - eSATA3 - 4 SATA2 - 4 USB 3.0 - 10 USB 2.0
    Processor - Intel Core i7 Processor - i7-3820 LGA 2011
    Processor fan - Intel Thermal Solution RTS2011 AC
    RAM - Ballistix by Crucial - 2x  8GB Tactical PC3 - 12800 CL8 1.5 VW/XMP = 16GB RAM
    SSD - Crucial M4 SSD 128GB - Comptatibility with 6Gb/s & backward compatible with SATA 3Gb/s
    HDD - Seagate Barracuda 1TB - 7200 RPM up to 32mb cache
    Power Supply - Cooler Master Extreme Power Plus 700W
    Graphics Card - EVGA - NVIDIA GeForce GTX480 - DirectX11 - CUDA - OpenCL Support - PhysX Technology - OpenGL 4.1 (so says the box it came in; but if I'm not mistaken I think the command prompt had shown OpenGL 3 or 3.2)
    Disc Driver - LG DVD/CD RW... It is an OEM, Windows claims it is updated.
    I use an external component - USB Microsoft Wireless Mouse & Keyboard 2000.
    I have, as far as software goes...
    Windows 7 64-bit SP1
    Adobe Creative Suite 5, student version or what have you.
         - I do have several plugins installed as well for After Effects only.
    Autodesk 3ds Max 2012
         -I have several maxscripts as well as a couple plugins for 3ds Max.
    UDK 2-2012 & 3-2012
    NVIDIA PhysX Lab 1.1
    NVIDIA Texture Tools 2
    NVIDIA plugin for Photoshop
    xNormal
    ConTEXT
    UnCodeX
    Quicktime
    AVG Free
    Malwarebytes
    7-Zip
    Java
    Sculptris
    As for anything else giving me issues I haven't noticed anything besides a previous Graphics Card wasn't supported very well at all with 3ds Max, it would freeze while using the material editor which was fixed with replacing a GTX550 ti with a more compatible GTX480. Thought maybe the upgrade would also solve the fact that almost everytime I go to start up and/or use After Effects or Premiere Pro CS5 my whole system freezes. Whether or not I'm doing anything, it occasionally happened during "Scrubbing" the timeline, but also during the splash load up screen. Would take the time to wait for several minutes but nothing would change. Hard reboot was needed. After countless hours of searching online I stumbled upon what is called an "Unlock" for Premiere Pro/After Effects to allow accelerated GPU and CUDA cores. Simple procedure, seems as if things go faster... When it is working. But still, I encounter freezes on my entire system. It isn't a crash back to Windows or anytihng. Just a complete freeze on the entire system. I have not extensively used other Adobe programs besides Photoshop quite briefly just so I could open menus and force a freeze within 5 minutes and noticed nothing wrong. Which in AE & PP just running through any of the menu windows can quickly cause a sudden freeze.
    note* I have alternated shutting off and turning on OpenGL as well as multiprocessing. Doesn't matter, it really doesn't seem to change much of anything.
    Alas, I am absolutely sure, after checking and re-checking 80+ hours over the past 2 weeks that yes, everything is updated as far as each individual program, software or hardware will allow me to update them. I have reinstalled Windows as well as each program up to 3 times, and 1 system (restore?) I had Windows dump everything, started from scratch, backed up nothing. To reinstall everything from scratch, while not installed several "Utilities" or software components from stuff like the Motherboard and its XFAST USB/LAN or whatever, thinking maybe it was cluttering up anything.
    Please, if anyone has any ideas upon this and could give me advice, whether you notice any other incompatibilities or anything. Any and all advice would be greatly appreciated. Thank you.
    note* I do not have a wired Keyboard or mouse to disable the USB plugin and attempt that route.. at least not yet, its on my list of things to do. Also, I did run Memtest86+ during a boot and it claims that everything there had passed 100%. I am not "overclocking" anything either. I just wanted something I could work smoothly on, that would have decent rendering capabilities. I used to use my girls' laptop which was an HP with 3GB RAM and never experienced crashes or freezes and I could use AE, PPro, 3ds Max with some lag but not any issues. Rendering took forever on it, but I usually avoided that 'cuz it would start heating up pretty fierce. Saved my rendering for school computers where I could. But either way, now I have this expensive piece and it is getting frustrating that I cannot work on it.
    note* Also, incase it does help, I have Windows as well as any major components installed onto the C: drive (aka SSD for my system) while all my secondary software, such as Adobe, Autodesk, etc. are all installed directly to my D: drive (or HDD) And everything is set up to go through Windows Firewall as well.

    Thanks all. I have just tried a few things, installing them onto the C drive as you all specified as not being one of them. I can understand it, but at the same time i have a classmate who has their software on a seperate drive and it runs smoothe. I'm on my second GPU in 2 weeks, unless I have terrible luck it seems doubtful being that I can run games and a majority of the software no problem. Through further testing around with a corded mouse and keyboard I've noticed the following...
    The computer freezes entirely only when I'm performing a "scrubbing" action or using a mouse. Left clicking, scrolling, or moving it around. Otherwise if I do not use the mouse and I make all my actions, such as "scrubbing" in AE via "Page Up & Down" keys, there's no freeze and it preloads the preview no problem.
    "Scrubbing" does not load a preview (the green bar doesn't load at all while scrubbing). But, also noticed no matter how smoothe everything is running in 3ds Max as well as PPro, once I start performing a "scrubbing" action with whatever timeline I use, it will definately freeze my whole computer, Windows and all. Hard reboot is neeed.
    With having gone through 2 GPU's, done a full memtest via Windows 7 and Memtest86+, there seems to be no issue with my memory or GPU. Like I said, I've run UDK without an issue. Whether the editor or game. The USB doesn't seem like it's the cause, I've used both wireless as well as wired keyboards/mouse. Still freezes, but now only when using a mouse to "Scrub".
    Is it possible my motherboard could be incompatible somewhere? I mean, really.. everything is brand new but 2 weeks of troubleshooting.
    And I do plan on trying to run my software off the C drive, I just wanted to make sure it wasn't something else, like I said, I've seen and used a computer where it all runs off the D drive and it runs perfectly, actually better on his computer than off the C drive at my schools. So if it is an issue would it lie within the fact that I'm using an Nvidia GPU? Considering my classmate is using a AMD/ATI Radeon or something like that.
    Again, to those who replied, your shared knowledge is greatly appreciated, thank you.

  • After opening Firefox & getting my info, I go into another application but am unable to open Firefox without Quitting it first. I have the latest update of Firefox. How can I get back into firefox without quitting Firefox?

    After opening Firefox, I was always able to in & out of it till I shut down my computer. Now, after opening Firefox, I go to another application then back to Firefox, I have to "Quit" Firefox and reopen. How can eliminate the back & forth of starting & quitting Firefox before I shutdown my computer?

    uninstalled firefox ....deleted all files still remaining under mozilla firefox directory in program files ... to avoid having to reprogram all my settings, reisntall all addons as well .. I did not remove anything from mozilla firefox that is stored in either appdata or under the windows users directory (if any)
    ... the as suggested reinstalled the latest version of the firefox browser using the link you provided in the email ..; tested and several issues still remain present and unresolved ....
    so please this is urgent or I will have to jump browsers and start using chrome .. because we work 14 hours a day 6 (sometimes 7) days a week, to get ready for the launch of our newest venture and we cannot lose that much days on browser related issues ... so please instead of putting me through week long step process .. of do this .. do that .. can you please actually look into the issue from your end .. I use firefox for so many, many years thta I deserve this kind of support .. thnx Robert

  • Help: I want to auto schedule a load using file watcher but it runs only once for the first time and after that it is not running at all

    Hi All,
    I am trying  to execute the below code as provided from one of the blogs. i am able to run the job only once based on a file watcher object(i.e. for very first time) and after that the job is not running at all and if  i schedule the job to run automatically based on interval of 10 or more minutes it is executing properly). Please let me know or guide me if i have missed any step or configuration.that is needed.
    Version of Oracle 11.2.0.1.0
    OS : Windows 7 Prof
    Given all the necessary privileges
    BEGIN
      DBMS_SCHEDULER.CREATE_CREDENTIAL(
         credential_name => 'cred',
         username        => 'XXXX',
         password        => 'XXXX');
    END;
    CREATE TABLE ZZZZ (WHEN timestamp, file_name varchar2(100),
       file_size number, processed char(1));
    CREATE OR REPLACE PROCEDURE YYYY
      (payload IN sys.scheduler_filewatcher_result) AS
    BEGIN
      INSERT INTO ZZZZ VALUES
         (payload.file_timestamp,
          payload.directory_path || '/' || payload.actual_file_name,
          payload.file_size,
          'N');
    END;
    BEGIN
      DBMS_SCHEDULER.CREATE_PROGRAM(
        program_name        => 'prog1',
        program_type        => 'stored_procedure',
        program_action      => 'YYYY',
        number_of_arguments => 1,
        enabled             => FALSE);
      DBMS_SCHEDULER.DEFINE_METADATA_ARGUMENT(
        program_name        => 'prog1',
        metadata_attribute  => 'event_message',
        argument_position   => 1);
      DBMS_SCHEDULER.ENABLE('prog1');
    END;
    BEGIN
      DBMS_SCHEDULER.CREATE_FILE_WATCHER(
        file_watcher_name => 'file_watcher1',
        directory_path    => 'D:\AAAA',
        file_name         => '*.txt',
        credential_name   => 'cred',
        destination       => NULL,
        enabled           => FALSE);
    END;
    BEGIN
      DBMS_SCHEDULER.CREATE_JOB(
        job_name        => 'job1',
        program_name    => 'prog1',
        queue_spec      => 'file_watcher1',
        auto_drop       => FALSE,
        enabled         => FALSE);
      DBMS_SCHEDULER.SET_ATTRIBUTE('job1','PARALLEL_INSTANCES',TRUE);
    END;
    EXEC DBMS_SCHEDULER.ENABLE('file_watcher1,job1');
    Regards,
    kumar.

    Please post a copy and paste of a complete run of a test case, similar to what I have shown below.
    SCOTT@orcl12c> SELECT banner FROM v$version
      2  /
    BANNER
    Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 - 64bit Production
    PL/SQL Release 12.1.0.1.0 - Production
    CORE    12.1.0.1.0    Production
    TNS for 64-bit Windows: Version 12.1.0.1.0 - Production
    NLSRTL Version 12.1.0.1.0 - Production
    5 rows selected.
    SCOTT@orcl12c> CONN / AS SYSDBA
    Connected.
    SYS@orcl12c> -- set file watcher interval to one minute:
    SYS@orcl12c> BEGIN
      2    DBMS_SCHEDULER.SET_ATTRIBUTE
      3       ('file_watcher_schedule',
      4        'repeat_interval',
      5        'freq=minutely; interval=1');
      6  END;
      7  /
    PL/SQL procedure successfully completed.
    SYS@orcl12c> CONNECT scott/tiger
    Connected.
    SCOTT@orcl12c> BEGIN
      2    -- create credential using operating system user and password (fill in your own):
      3    DBMS_SCHEDULER.CREATE_CREDENTIAL
      4       (credential_name     => 'cred',
      5        username          => '...',
      6        password          => '...');
      7  END;
      8  /
    PL/SQL procedure successfully completed.
    SCOTT@orcl12c> -- create table to insert results into:
    SCOTT@orcl12c> CREATE TABLE ZZZZ
      2    (WHEN      timestamp,
      3      file_name varchar2(100),
      4      file_size number,
      5      processed char(1))
      6  /
    Table created.
    SCOTT@orcl12c> -- create procedure to insert results:
    SCOTT@orcl12c> CREATE OR REPLACE PROCEDURE YYYY
      2    (payload IN sys.scheduler_filewatcher_result)
      3  AS
      4  BEGIN
      5    INSERT INTO ZZZZ VALUES
      6        (payload.file_timestamp,
      7         payload.directory_path || '/' || payload.actual_file_name,
      8         payload.file_size,
      9         'N');
    10  END;
    11  /
    Procedure created.
    SCOTT@orcl12c> -- create program, define metadata, and enable:
    SCOTT@orcl12c> BEGIN
      2    DBMS_SCHEDULER.CREATE_PROGRAM
      3       (program_name          => 'prog1',
      4        program_type          => 'stored_procedure',
      5        program_action      => 'YYYY',
      6        number_of_arguments => 1,
      7        enabled          => FALSE);
      8    DBMS_SCHEDULER.DEFINE_METADATA_ARGUMENT(
      9       program_name         => 'prog1',
    10       metadata_attribute  => 'event_message',
    11       argument_position   => 1);
    12    DBMS_SCHEDULER.ENABLE ('prog1');
    13  END;
    14  /
    PL/SQL procedure successfully completed.
    SCOTT@orcl12c> BEGIN
      2    -- create file watcher:
      3    DBMS_SCHEDULER.CREATE_FILE_WATCHER
      4       (file_watcher_name   => 'file_watcher1',
      5        directory_path      => 'c:\my_oracle_files',
      6        file_name          => 'f*.txt',
      7        credential_name     => 'cred',
      8        destination          => NULL,
      9        enabled          => FALSE);
    10  END;
    11  /
    PL/SQL procedure successfully completed.
    SCOTT@orcl12c> BEGIN
      2    -- create job:
      3    DBMS_SCHEDULER.CREATE_JOB
      4       (job_name          => 'job1',
      5        program_name          => 'prog1',
      6        queue_spec          => 'file_watcher1',
      7        auto_drop          => FALSE,
      8        enabled          => FALSE);
      9    -- set attributes:
    10    DBMS_SCHEDULER.SET_ATTRIBUTE ('job1', 'PARALLEL_INSTANCES', TRUE);
    11  END;
    12  /
    PL/SQL procedure successfully completed.
    SCOTT@orcl12c> -- enable:
    SCOTT@orcl12c> EXEC DBMS_SCHEDULER.enable ('file_watcher1, job1');
    PL/SQL procedure successfully completed.
    SCOTT@orcl12c> -- write file (file must not exist previously):
    SCOTT@orcl12c> CREATE OR REPLACE DIRECTORY upncommon_dir AS 'c:\my_oracle_files'
      2  /
    Directory created.
    SCOTT@orcl12c> declare
      2    filtyp utl_file.file_type;
      3  begin
      4    filtyp := utl_file.fopen ('UPNCOMMON_DIR', 'file1.txt', 'W', NULL);
      5    utl_file.put_line (filtyp, 'File has arrived ' || SYSTIMESTAMP, TRUE);
      6    utl_file.fclose (filtyp);
      7  end;
      8  /
    PL/SQL procedure successfully completed.
    SCOTT@orcl12c> -- wait long enough (may take more than one minute) for job to run:
    SCOTT@orcl12c> EXEC DBMS_LOCK.SLEEP (100)
    PL/SQL procedure successfully completed.
    SCOTT@orcl12c> -- check for results:
    SCOTT@orcl12c> SELECT * FROM zzzz
      2  /
    WHEN
    FILE_NAME
    FILE_SIZE P
    22-OCT-13 10.12.28.309000 PM
    c:\my_oracle_files/file1.txt
            57 N
    1 row selected.
    SCOTT@orcl12c> declare
      2    filtyp utl_file.file_type;
      3  begin
      4    filtyp := utl_file.fopen ('UPNCOMMON_DIR', 'file2.txt', 'W', NULL);
      5    utl_file.put_line (filtyp, 'File has arrived ' || SYSTIMESTAMP, TRUE);
      6    utl_file.fclose (filtyp);
      7  end;
      8  /
    PL/SQL procedure successfully completed.
    SCOTT@orcl12c> -- wait long enough (may take more than one minute) for job to run:
    SCOTT@orcl12c> EXEC DBMS_LOCK.SLEEP (100)
    PL/SQL procedure successfully completed.
    SCOTT@orcl12c> -- check for results:
    SCOTT@orcl12c> SELECT * FROM zzzz
      2  /
    WHEN
    FILE_NAME
    FILE_SIZE P
    22-OCT-13 10.12.28.309000 PM
    c:\my_oracle_files/file1.txt
            57 N
    22-OCT-13 10.14.08.580000 PM
    c:\my_oracle_files/file2.txt
            57 N
    2 rows selected.

Maybe you are looking for

  • I can no longer find iTunes on my PC

    I can no longer find iTunes on my PC and can't find where to download a new copy.  I used to be able to sync with my computer, but since the introduction of icloud I no longer get the itunes app for syncing when I plug my phone into my PC.  I only ha

  • How can I take away the 1x1 transparent gif on my slideshows in muse?

    How can I take away the 1x1 transparent gif on my slideshows in muse?  It's showing up as a SEO error only on the pages that include slideshows. 

  • BPM 11g (11.1.1.4) Workspace loading slow

    Hi, I have the following configuration on my local machine; Oracle 10g XE DB Weblogic 10.3.4 64-bit Sun Java 6.0 update 24 (64-bit) SOA Suite 11.1.1.4 While working on BPM workspace for considerable amount of time (say 1 hr), the BPM workspace is res

  • Purchase Information Records - Transfer to APO

    Hi APO Gurus, We are trying to figure out how we can prevent the indicator "Take Planned Delivery Time Into Account" from being selected after we transfer over a new PIR or change a PIR and then re-transfer it back over to APO. Right now, it appears

  • Service products and Warranties

    Hi all,   Service products and warranties are created in CRM via transaction 'commpr01' . I got to know that Service materials and warranties could also be created in R/3 system.  If so which is the transaction to create service materials and warrant