This discussion is archived
0 Replies Latest reply: Dec 17, 2012 1:10 AM by 980251 RSS

Looking for a way to move a rejected xml file after loading it

980251 Newbie
Currently Being Moderated
Hi all,

I'm currently looking for a solution to do the following:

I've loaded multiple xml files into an external table and after firing a few queries on that external table, I've moved the xml data into a normal oracle table
depending on a few values which need to be met (e.g. last two digits of column a need to be the same as the last two digits of column b)

All of this works fine, but I'd like to be able to move the xml files which don't meet these requirements to another folder on the filesystem named e.g. 'rejected'
now, my shell script just moves all the xml files to a processed folder after loading them into an external table.

I've looked at utl_file.frename but I need to be able to automatically move more than one file if neccesary instead of filling in one filename in the frename statement.
(maybe the filenames need to be entered into a separate table?)

Thanks in advance and your help is much appreciated!

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points