The ORACLE_DATAPUMP access driver can be used to unload LONG and LONGRAW columns, but that data can only be loaded back into LOB fields. The steps in the following extended example demonstrate the unloading of LONG and LONGRAW data types.
If a table to be unloaded contains a LONG or LONGRAW column, then define the corresponding columns in the external table as CLOB for LONG columns or BLOB for LONGRAW columns.
Now, an external table can be created that contains a CLOB column to contain the data from the LONG column. Note that when loading the external table, the TO_LOB operator is used to convert the LONG column into a CLOB.
The data in the external table can be used to create another table exactly like the one that was unloaded except the new table will contain a LOB column instead of a LONG column.
SQL> CREATE TABLE lob_tab
2 AS SELECT * from long_tab_xt;
Table created.
Verify that the table was created correctly.
SQL> SELECT * FROM lob_tab;
KEY DESCRIPTION
----------------------------------------------------------------------------
1 Description Text