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_FILE
procedure will transfer the data file. -
The
mytable.342.123456789
data 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.
See Also:
-
Oracle Database PL/SQL Packages and Types Reference for more information about using the
DBMS_FILE_TRANSFER
package -
Oracle Automatic Storage Management Administrator's Guide for information about fully qualified file name forms in ASM
-
Oracle Database SQL Language Reference for information about how to create a database link