Does Oracle offer a standardized upload of XML formatted files?
I thought that the canonical format that is used for XML output, structure = ROWSET/ROW/columname
, could be uploaded back into the table again, by just running sqlldr with appropriate control file contents.
But I cannot find anything about this anywhere on the web, and error messages after trials seem to indicate that it is only possible to upload XML into XML-type formatted tables, where I just want to upload data in a plain table but supply the data in XML format.
相关问题
- Illegal to have multiple roots (start tag in epilo
- Newtonsoft DeserializeXNode expands internal array
- how to use special characters like '<'
- XML - XSLT - document() function inside count() fu
- Can I skip certificate verification oracle utl_htt
相关文章
- node连接远程oracle报错
- oracle 11g expdp导出作业调用失败,提示丢包。
- Creating XML Elements without namespace declaratio
- Get Attribute Value From Simple XML Using JQuery /
- 执行一复杂的SQL语句效率高,还是执行多少简单的语句效率高
- Oracle equivalent of PostgreSQL INSERT…RETURNING *
- Directly signing an Office Word document using XML
- When sending XML to JMS should I use TextMessage o
No, SQL*Loader can only process "flat" files.
One option is to write an XSLT transformation that turns the
ROWSET/ROW/column
format into a text file and then import that into the target table.Another option is to import the XML into a single row, and then use Oracle's XML functions to select a relational result from that staging table and insert it into the real table.
There isn't a standardised option, but with this specific format you can do it. If you have a table:
And your records in a
test_tab.xml
file:And a control file
test_tab.ctl
:You can do:
You could also create an external table from the same file, if you put in a directory Oracle can see: