Search code examples
oracle-databasebcp

Is there a bulk unload utility in Oracle


I am trying to unload a large oracle table as a JSON file. Is there a BCP utility similar to what we have in SQL Server?

Thanks


Solution

  • Using SQL*Plus or SQLcl to spool to a file is one option (methods to generate CSV would work similarly for JSON):

    You could also use PL/SQL functions and write to a file using UTL_FILE:

    Or use ROracle:

    There are most likely several other ways, too.