Can Oracle SQL*Loader process XML?

前端 未结 2 1865
误落风尘
误落风尘 2021-01-16 08:10

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

2条回答
  •  Happy的楠姐
    2021-01-16 08:49

    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.

提交回复
热议问题