Oracle Error ORA-39252: Importing a SecureFile LOB with metadata or archived SecureFile LOB into a BasicFile LOB is not allowed

Oracle Error Message

ORA-39252: Importing a SecureFile LOB with metadata or archived SecureFile LOB into a BasicFile LOB is not allowed

Reason for the Error

An attempt was made to import a SecureFile LOB that contained metadata or was archived at the time of export into a BasicFile LOB.

Solution

Perform the import into a different table, perform DBMS_LOB.ARCHIVE_GET on any archived SecureFile LOBs, and then use INSERT AS SELECT to migrate the SecureFile LOB data to the BasicFile LOB.