Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to load a list of XML files by external table

User_RFKSXOct 7 2020

Hi,
I've always loaded a list of XML files into a table by using SQL Loader.
On the server UNIX first I created a file containing a list of path where I have N XML files and then I run some CTL like this:

load data
infile ".../list.dat" stream
badfile ".../list.bad"
append
into MYTABLE
fields terminated by ','
trailing nullcols
(id sequence(max,1),
file_name char(150),
file_xml lobfile(file_name) terminated by eof
)

Could someone tell me how to get that by using an external table?

Thanks in advance!
Mark

Comments
Post Details
Added on Oct 7 2020
2 comments
729 views