dbms_scheduler.file_watch shoot only in files with t/s > = last run...

Hello
I may be missing something easy, but instead of spinning my wheels, I'll ask.

I am new to the use of the file_watcher in the dbms_scheduler so I followed the instructions posted in this link:
http://AWADs.NET/WP/2011/03/29/did-you-know-about-file-watchers/

Now it works, I can process the file.
But the file_watcher WILL ONLY Pull files that are changed/created AFTER the last race.

Since I'm not running in parallel, which means that any file not picked up in the initial round will simply sit outside here aging.


Am I missing something? I understand that maybe it's a desired behavior to only pick up new files, but our process moves files out of the directory after they are. It seems strange that if you do not run it at the same time, the file will be ignored for ever more.

Am I missing a setting?
--Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
 BEGIN
      DBMS_SCHEDULER.create_program (
         program_name          => 'FILE_INGEST',
         program_type          => 'STORED_PROCEDURE',
         program_action        => 'Package.Procedure',
         number_of_arguments   => 1,
         enabled               => FALSE);

      DBMS_SCHEDULER.define_metadata_argument (
         program_name         => 'FILE_INGEST',
         metadata_attribute   => 'event_message',
         argument_position    => 1);
      DBMS_SCHEDULER.enable ('FILE_INGEST');

      DBMS_SCHEDULER.create_file_watcher (
         file_watcher_name   => 'watcher_fw',
         directory_path      => '/mydiriwanttowatch',
         file_name           => '*',
         credential_name     => 'sys.cred' , 
         destination         => NULL,
         enabled             => FALSE );

      DBMS_SCHEDULER.create_job (
         job_name          => 'FILE_INGEST_WATCHER',
         program_name      => 'FILE_INGEST',
         queue_spec        => 'watcher_fw',
         auto_drop         => FALSE,
         enabled           => FALSE);

    DBMS_SCHEDULER.enable ('watcher_fw,FILE_INGEST_WATCHER');
END;
/

Hey Harrison,

It's logical. Looks like what you want exactly is to set parallel_instances to true - things do work when you do this?

With parallel_instances set to FALSE, when three events are received at the same time, 2 will be ignored because no parallel work will work that once both and events received during a performance of the work will be ignored.

With parallel_instances set to TRUE, when three events happen at the same time, 3 instances of the task will be executed even if their routes overlap. That looks like what you want - three different instances running for each of the three separate files.

Is there a reason you don't want to parallel_instances the true value?

Thank you
Ravi.

Tags: Database

Similar Questions

  • Limit the search to only the files with the exact search term

    I have Windows 7 Home Premium SP1 and I hate this search feature.  Is it at all possible to restrict it to precisely the name of the file I'm looking for?  Say, for example, I'm looking for a folder called "the gate".  Is it possible to continue the research to return each file with the words or door in it?  I don't mind if it returns the file formats different but 732 files returned by the word or door.  Help would be greatly appreciated.

    If you mean that you are looking for a name of file exactly and not only a phrase without worrying, you can get what you want if you use a special syntax, and include the file name extension:

    name: = "door.txt.

    Note that we have no ability to distinguish between upper and lower case sensitive in Windows 7 search.

    If you want to match the name regardless of their file extension, you need a wildcard character, the asterisk.  However, the "equal" sign does not accept wildcards, but the tilde then otherwise as equal to sign for correspondence.

    name: ~ "the door.*.

  • Can I collaborate using only PrPro files with a colleague in London?

    Hello

    I am in the USA and have a colleague in London.  I would like to collaborate with her on the final changes to my film and DVD conversion.

    Can I Exchange files PrPro with her via YouSendIt or something like that?  I'm afraid that such a process may not include all of the necessary "pointers".

    Thanks for your help.

    Matt Dubuque

    If I send him the PrPro file that will contain ALL the assets it would need to make additional changes

    No it won't.  The only 'active' content in the project file is Premiere Pro titles.  All other assets - video, audio, images - will be sent in addition the project file.

  • an exe file with VB 2008 studio runs on Windows 98 Second Edition

    Hello

    I did a small file EXE with Visual Studio 2008 and it runs great on my Vista and windows XP PC, but will not work on Windows 98 Second Edition.

    Is that what I can do to get it runs on Windows 98 Second Edition?

    The program was written for this computer that monitors my surveillance system.

    Thank you for taking the time.

    Lyle

    Hello

    The question you posted would be better suited to the MSDN Community. Please visit the link below to find a community that will provide the best support.

    http://social.msdn.Microsoft.com/forums/en-us/category/VisualStudio

  • How to force the Explorer search to show ONLY the files that match the search target?

    I frequently need to search for files with brackets in the name of the file.    However, a bug in the Search Explorer means that search results will fill up with a lot of waste that does not match my search target.

    Example:

    At a command prompt "dir/s * (abc) *.» ' * ' usually works: the name of each file found will contain "(abc)".   (The only time that a search for the command line fails is when the version 8.3 of the name of the file matches the search target, but the name of the actual file does not work.)

    However, in Solution Explorer, look for "* (abc) *.» "*" returns all files with 'abc' in the name, and provides no way to filter the results so that I only see files with '(abc)' in the name of the file.

    This search bug means that you want "* (de) *.» ' * ' at the command prompt returns 72 hits, while searching with Explorer returns 7381 hits!

    Cancellation: Another inconvenience of Windows is when I work at a command prompt I get often unexpected results because the wildcard matching is done against both the full name of the file or folder and the name of 8.3.   Is there a way to force cmd.exe to restrict the wildcard matches only the complete names of the files and folders?  That is to say, is there a way to force cmd.exe to never, ever, use the 8.3 names?

    Hi Rob,

    In order to quickly provide a solution, please answer this question:

    Did you do changes on the computer before the show?

    Follow the steps below to solve the problem:

    Method 1: If you have problems of location of the files, folders, or other items on your computer, try using the search and indexing of troubleshooting to solve the problem. It ensures that the Windows Search service is running and checks if you have the correct permissions to search all the directories on your computer.

    See the article below for additional information and steps.

    Open the troubleshooter for search and indexing

    http://Windows.Microsoft.com/en-us/Windows7/open-the-search-and-indexing-Troubleshooter

     

    Method 2: I also suggest you to re - index files, then check. Follow the article below for the procedure.

    Change advanced indexing options

     http://Windows.Microsoft.com/en-us/Windows7/change-advanced-indexing-options

    See also:

    Improve Windows searches using the index: frequently asked questions

    http://Windows.Microsoft.com/en-us/Windows7/improve-Windows-searches-using-the-index-frequently-asked-questions

    Hope this information helps. Pleave get back if you need help, will be happy to help you.

  • Hi, I just upgraded from 6.1 to 6.4 LR LR. When importing new files LR6.4 cannot rename my files with a specific date format (import uses only the original name).

    Hello

    No problem with the LR 6.1, but now (LR6.4), it seems impossible to rename my files with a specific format (yyyy-dd-hhmmss and a suffix) importing memory cards. LR imports only files with names of origin. And I have a lot of files to rename...

    I hope that someone knows what's going on.

    Jean

    Jean,

    We found a similar question which is being implemented. If you shoot images at once in the first and jpg format and then import them using the option of renaming, the question is in place.

    Could you please check if you use the option "make a second copy? If so, please it deselect. It should solve the problem.

    The issue is addressed in Lightroom.

    Thank you

    Sunil

  • I have just updated to Windows Media Player 11. I have a .avi file that only plays sound with no video.

    Media Player

    I have just updated to Windows Media Player 11. I have a .avi file that only plays sound with no video. I'll see a message asking me to information center to display information about the file being played. Thank you

    Download codecs here: -.
    http://www.DivX.com/en/software/DivX-plus/Codec-Pack

    Otherwise, you can download and install VLC: -.
    http://www.videolan.org/VLC/download-Windows.html

  • Back up only files with windows photo gallery

    Original title: windows on windows vista backup

    When I recently did a backup of windows, I finished the backup. The problem is when I checked these backup files, they are available with windows photo gallery. I did a lot of backup on windows vista and have had no problems until the last backup. Could someone help me with this problem with my backup files onto the windows vista backup files. MEI of the running computer is a windows vista base. These backup files will be opened only on the windows photo gallery

    what I just discovered this problem I've had a number of viruses on my computer.

    has taken my computer repair and solved my problem to backup windows.

  • How can I select the files in a folder with the help of a list with the files you want and after that rename only the files using another list with desired new names?

    How can I select the files in a folder with the help of a list with the files you want and after that rename only the files using another list with desired new names?

    I have only:
    D: / images (where are necessary + not need files)
    -a list with only the necessary files
    -a list with new names for the files needed
    Thank you.

    Hi Pustiu,

    Thanks for posting in the Microsoft Community.

    You want to know how to select the files in a folder using a list with the files you want and after that rename only the files using another list with desired new names.

    I would have you post your query in the TechNet forums because it caters to an audience of it professionals.

    Your query will be better addressed there.

    Check out the link-

    http://social.technet.Microsoft.com/forums/en-us/w7itprogeneral/threads

    We know if you need help. We will be happy to help you. We, at tender Microsoft to excellence.

    Thank you.

  • I used to open all files including media files with a simple click of the mouse. Recently, I have reinstalled my OS. Now my files open only after double click

    I used to open all files including media files with a simple click of the mouse. Recently, I have reinstalled my OS. Now, my files open only after double click. Please someone guide me to set my mouse to open all my files with a single click.

    E-mail address is removed from the privacy *.

    Open Explorer

    organize

    folder and search options

    Click on "single click to open an item.

    and

    (I think that ;-)) )

  • I shoot in the NAVE with a Nikon D5300 but Lightroom 6.1 says that it can't read my files. How can I fix?

    I shoot in the NAVE with a Nikon D5300 but Lightroom 6.1 says that it can't read my files. How can I fix?

    I just tried again and this time I have not had any problems - very strange. But thanks for your quick response.

  • Hello, I accidentally opened an old file Ircat... and now can't figure out how to return to my only current.  With the help of Mac Yosemite, Lightroom CC

    Hello, I accidentally opened an old file Ircat... and now can't figure out how to return to my only current.  With the help of Mac Yosemite, Lightroom CC

    Thank you!

    File-> open recent. Lists the catalogs you have opened and will allow you to choose one of the previous catalogues.

  • Querying a file with several records in the only positional line

    Hello

    I'm trying to interview a positional file with reading. It works very well with single single-line record. But how to solve the problem when there are multiple records with the single line? How to delimit records?

    Hello

    It's a little difficult to achieve...

    In your xsd translator remove this attribute * nxsd:cellSeparatedBy = "${eol}."

    and replace with this * nxsd:arrayTerminatedBy = "${eof}."

    It worked for me. Let me know if you need a more complete example.

    See you soon,.
    Vlad

    * Give points - this is the right label to reward an answering machine (5 - useful; 10 - correct) points for their position if they answer your question. If you think it's useful, please consider points *.

  • Only certain files and folders appear in the homegroup

    I use Win7 Pro and I have my setup homegroup to share my videos and photos.

    I record TV on the same PC and access these recordings via DLNA on my Samsung TV (I have two different Samsung TVs). The PC is just an entry on TVs.

    The issue I'm having is that when I sail (on TV) to the folder (on the PC) which contains files, * the * files appear in this folder, some do not. For example, currently, there are 5 files in my folder of DVR, all thanks to the homegroup (I added the domain 'Shared with' in Windows Explorer so I can easily see). Of these 5 files, only 3 appear when you browse the files on the PC of the TVs. The same 3 files appear on both PC, aren't the same 2. All 5 files have been saved by the same Application, and all have the same shared parameters.

    In the past, I was able to remedy this problem by moving the files, and then back into the folder. Then they show up. Now, however, this trick does not worlk. I have run the shooter-t several times, rebooted several times etc. Nothing works anymore. I see the same thing in two TV.

    If I shared the DVR record thanks to the homegroup, why only some files appear?

    Anyone has an idea why I see this?

    Thank you

    -Steve

    Hi ryderse,

    Please take a look at this thread similar here with a solution as possible.

    Hope that helps!

  • Skype ask again me what to open a file with.

    I recently acquired 10 Windows on my desktop, but whenever I open a picture on Skype it says "How do you want to open this file? She does whenever I open a photo and it starts to get boring. I only want to open the files on the regular Photos app. No one knows how to do stop asking?

    This isn't an option in Skype, but a matter of configuration of the Associations of files on your computer. Search your computer any image file with the .jpgfile extension. Right-click on this file and select Open with. Select the appropriate program in the list, or select Choose default program .

    http://community.Skype.com/T5/Windows-desktop-client/how-to-change-where-a-picture-opens/m-p/4060101...

Maybe you are looking for

  • Satellite 1800-700 someone updated for windows XP?

    I want to upgrade to XP so that I can use my ipod software. Has anyone tried this before? If so, were there problems?

  • Blocked contacts can see that they are blocked

    It happens with everyone? If I block someone from my contact list, they can see that showing me in their list of contacts as that user with a question mark instead of a regular icon. Is it possible to fix it?

  • The use of recovery with satellite Pro 300 disks?

    HelloI have a 300 satellite with recovery disc Pro, I want to give this to my daughter I copied all I need her and want to wipe it.would be very grateful if you could give me instructions step by step how use the recovery disc. Thank you

  • Is the DAQ Assistant compatible with LabView7?

    I am equipped with a LabView7 and a NI DAQ - 6015 Pad and am trying to monitor the temperature with two thermocouples. I searched some tutorials online, but most suggest using assistant DAQ, which is not listed in the section of my functions palette

  • Windows Vista Mail - cannot display emails

    When I try to open an email in Windows Vista Mail Inbox I get this message: SysFader: Bad Image, C:\Windows\system32\mshtml.dll WinMail.exe is not designed to run on Windows or it contains an error.  (he suggests then reinstall Windows Mail from the