OCILIB Tutorials v5.0.0
Advanced

Checkpoint 7 — the bulk loader

You should now be able to batch DML with array binds, ingest at max speed with direct path, and administer the instance.

The exercise — bulkload

A CSV importer for employees with two engines:

  1. --mode=array — parse CSV into OCI_Int32/otext/OCI_Double arrays, OCI_StatementBind*Array, BindArraySetSize, one Execute, one Commit.
  2. --mode=dirpath — TypeInfoGet(employees) → DirPathCreate → SetColumn per column → Prepare → SetEntry loop → Convert/Load → Finish.

Add flags: --rows N, --no-log (DirPathSetNoLog), --onerror continue (report GetErrorRow/GetErrorColumn and keep going).

Measure & compare

Acceptance checks

What it exercises

Skill Pages
Array binds 810
DirectPath cycle + errors 815
Error handling 080
Prepared executes 260

Part 8 done. Final stretch: Part 9 — sharding, SODA, capstone.