17 Loading External Data

Load external data from Excel, XML, JSON, or CSV files using declarative pages, page processes, or PL/SQL APIs.

Create a Data Load Definition to set up a profile that describes how external data in Excel, XML, JSON, or CSV files should be loaded. Use it to load external data into a table or collection:
  • declaratively – using the native Data Load page process, or
  • programmatically – with the LOAD_DATA function in the APEX_DATA_LOADING package.

Pair the file profile it represents with APEX_DATA_PARSER.PARSE to preview data or process it in custom ways. The same function can also infer a file profile at runtime to visualize or process external data with an unknown structure.

Create a Data Loading page using the wizard that lets users upload an external data file, preview the data, and load it. It combines all of the above features. When necessary, the APEX_ZIP package lets you process the contents of a compressed archive for bulk data loading use cases.