Home » RDBMS Server » Server Utilities » load XML file in oracle table using SQL*LOADER
load XML file in oracle table using SQL*LOADER [message #135305] Tue, 30 August 2005 19:05 Go to next message
orackle
Messages: 4
Registered: July 2005
Junior Member
Hi All,

Can any of you have exmaples of loading XML file into oracle (version 8.1.7) table using SQLLDR tool. Please let me know. And thank you very much in advance. And also please let me know what shoud be the data type in the table in order to load XML file.

Thank You
Re: load XML file in oracle table using SQL*LOADER [message #135446 is a reply to message #135305] Wed, 31 August 2005 10:59 Go to previous message
Mahesh Rajendran
Messages: 10707
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator
Check the link
http://www.orafaq.com/faq/sql_loader

Almost the same method applies.
But i am not sure about 8i ( I dont have one around, else i can test it).
You may need to do only one change in that example shown in the link
This is example
FIELDS TERMINATED BY ','
(
 image_id   INTEGER(5),
 file_name  CHAR(30),
 image_data LOBFILE (file_name) TERMINATED BY EOF
)

This the changed one
FIELDS TERMINATED BY ','
(
 image_id   INTEGER(5),
 file_name  filler char,
 image_data LOBFILE (file_name) TERMINATED BY EOF
)


>> And also please let me know what shoud be the data type in the table in order to load XML file.

XMLTYPE
Previous Topic: how to import .dmp into oracle 9i
Next Topic: using sql loader from Form9i
Goto Forum:
  


Current Time: Thu Jul 04 06:39:07 CDT 2024