Professional Documents
Culture Documents
To XML in Oracle
To XML in Oracle
To XML in Oracle
Convert .xls to .csv. Open .xls in MS Excel. Delete any Column Headers. Go to "File, "Save As"
and change "Type" to .csv format. Provide a new path and name and click "Save."
2
Create the Control File. Open Notepad. Type the following and save as "...\filename.ctl."
LOAD DATA
INFILE '...\filename.csv'
TRAILING NULLCOLS
Tablename is the name of your Oracle table, "....\" represented by the fully qualified path where
your files reside, "filename_load.log" is the log file to confirm success or indicate processing
errors and "FIELDS1...x" are the names of the .csv columns in order from left to right.
3
Create an Oracle table, if necessary. At the Oracle SQL prompt, type or execute a file containing:
4