My Oracle Support Banner

Is There a Way to Prevent the Directory Scanner from Processing a File in OAG until the Process that is Writing the File Has Finished with It? (Doc ID 2067829.1)

Last updated on OCTOBER 20, 2022

Applies to:

Oracle API Gateway - Version 11.1.2.1.0 and later
Information in this document applies to any platform.

Goal

There is an external application that uploads files to the OAG file system.  The intention is to use a Directory Scanner to pull these files into OAG for processing and onward transfer. 

Is there anything in the Directory Scanner that will prevent the file from being picked up by OAG before it is fully written by the external application?  Will OAG continue to read the file until it receives the EOF marker?
 
Is there something that would suggest that the file would be ignored until it had stabilized in some way before OAG started processing it, for example file size not changing.  The documentation states that the files are moved to a working directory for processing.  What happens if OAG moves the file before the application that is writing the file has finished writing it?
 
 

Solution

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Goal
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.