Converting Data Between Platforms Using the DBMS_FILE_TRANSFER Package
You can use the GET_FILE or PUT_FILE procedure of the DBMS_FILE_TRANSFER package to convert data between platforms during a data file transfer.
When you use one of these procedures to move data files between the source platform and the target platform, each block in each data file is converted to the target platform's endianness.
This section uses an example to describe how to use the
DBMS_FILE_TRANSFER package to convert a data file to a different
platform. The example makes the following assumptions:
-
The
GET_FILEprocedure will transfer the data file. -
The
mytable.342.123456789data file is being transferred to a different platform. -
The endianness of the source platform is different from the endianness of the target platform.
-
The global name of the source database is
dbsa.example.com. -
Both the source database and the target database use Oracle Automatic Storage Management (Oracle ASM).
Note:
You can also use the DBMS_FILE_TRANSFER package to transfer
data files between platforms with the same endianness.
Complete the following steps to convert the data file by transferring it with
the GET_FILE procedure:
Note:
In this example, the destination data file name is mytable. Oracle ASM does not allow a fully qualified file name form in the destination_file_name parameter of the GET_FILE procedure.
Related Topics