Oracle: export a table with blobs to an .sql file that can be imported again

前端 未结 5 519
终归单人心
终归单人心 2020-12-16 00:40

I have a table \"Images\" with two fields:

  • Name VARCHAR2
  • Data BLOB

I would like to export that table to a .sql file which I could impor

5条回答
  •  不思量自难忘°
    2020-12-16 01:16

    This is definitely possible in SQL developer.

    • First you need to export the table in the source location choosing appropriate table(s).

    Tools > Database Export

    • Select output format as loader rather than insert , excel which we normally use.

    Following these steps would create sqlldr control files and data files and also the create table ddl if you chose the option.You can use them to import(sqlldr) data in the destination.

    This is a better solution and is portable in terms of extraction and distribution . It gives the flexibility of delivering components to be deployed through code repositories.

    Here is a link that explains it step by step.

    Exporting Multiple BLOBs with Oracle SQL Developer

提交回复
热议问题