Oracle Consulting Oracle Training Development

Remote DBA

Remote DBA Plans  

Remote DBA Service

Remote DBA RAC

   
Remote DBA Oracle Home
Remote DBA Oracle Training
Remote DBA SQL Tuning Consulting
Remote DBA Oracle Tuning Consulting
Remote DBA Data Warehouse Consulting
Remote DBA Oracle Project Management
Remote DBA Oracle Security Assessment
Remote DBA Unix Consulting
Burleson Books
Burleson Articles
Burleson Web Courses
Burleson Qualifications
Oracle Links
Remote DBA Oracle Monitoring
Remote DBA Support Benefits
Remote DBA Plans & Prices
Our Automation Strategy
What We Monitor
Oracle Apps Support
Print Our Brochure
Contact Us (e-mail)
Oracle Job Opportunities
Oracle Consulting Prices





   

 

 

 

Remote DBA services

Remote DBA Support

Remote DBA RAC

Remote DBA Reasons

Remote Oracle Tuning

Remote DBA Links

Oracle DBA Support

Oracle DBA Forum

Oracle Disaster

Oracle Training

Oracle Tuning

Oracle Training

 Remote DBA SQL Server

Remote MSSQL Consulting

Oracle DBA Hosting

Oracle License Negotiation

 

 


 

 

 

        
 

 Oracle DBMS_FILE_TRANSFER
Oracle Tips by Burleson Consulting

Advanced Oracle Utilities: The Definitive Reference by Rampant TechPress is written by four of the top Oracle database experts (Bert Scalzo, Donald Burleson, and Steve Callan).  The following is an excerpt from the book.

The dbms_file_transfer package, available in 10g and later, supports copying via the local file system or an ASM (Automated Storage Management) disk group as both the source and target for a binary file transfer between databases servers. An example of using this package would be to copy BFILE objects across databases. Remember, the database stores just the BFILE attributes – the data resides outside the database. So use dbms_file_transfer to copy the actual BFILE data and not just the attributes held within the database. However, there are some limitations:

  • Maximum of 2 TB file size

  • File size must be multiple of 512 bytes

The process is very simple. First create a database directory to read from on the source and another one on the target for the write. Then make sure that both databases have grants on the directories and the dbms_file_transfer package for the schemas used to perform the task. Then use one of the following three procedures.

 

Copy_file reads a file from the local database directory and copies it to another local database directory. The DBA is able to copy any type file when working with local file systems, but ASM supports only moving database files since that is all that can be held within ASM.

 

Argument

Type

In / Out

Default Value

SOURCE_DIRECTORY_OBJECT

VARCHAR2

IN

 

SOURCE_FILE_NAME

VARCHAR2

IN

 

DESTINATION_ DIRECTORY_OBJECT

VARCHAR2

IN

 

DESTINATION_FILE_NAME

VARCHAR2

IN

 

Table 6.136:  Copy_file Parameters

Get_file reads a file from the remote database directory and copies it to the source local database directory. The DBA can copy any type file when working with local file systems, but ASM supports only moving database files since that is all that can be held within ASM.

 

Argument

Type

In / Out

Default Value

SOURCE_DIRECTORY_OBJECT

VARCHAR2

IN

 

SOURCE_FILE_NAME

VARCHAR2

IN

 

SOURCE_DATABASE

VARCHAR2

IN

 

DESTINATION_ DIRECTORY_OBJECT

VARCHAR2

IN

 

DESTINATION_FILE_NAME

VARCHAR2

IN

 

Table 6.137:  Get_file Parameters

Put_file reads a file from the local database directory and copies it to the target remote database directory.

  

Argument

Type

In / Out

Default Value

SOURCE_DIRECTORY_OBJECT

VARCHAR2

IN

 

SOURCE_FILE_NAME

VARCHAR2

IN

 

DESTINATION_ DIRECTORY_OBJECT

VARCHAR2

IN

 

DESTINATION_FILE_NAME

VARCHAR2

IN

 

DESTINATION_DATABASE

VARCHAR2

IN

 

Table 6.138:  Put_file Parameters

     


Fo
r more details on Oracle utilities, see the book "Advanced Oracle Utilities" by Bert Scalzo, Donald K. Burleson, and Steve Callan.

You can buy it direct from the publisher for 30% off directly from Rampant TechPress.

Remote DBA Service
 

Oracle Tuning Book

 

Advance SQL Tuning Book 

BC Oracle support

Oracle books by Rampant

Oracle monitoring software

 

 

 

 

 

 

 

 

 

BC Remote Oracle Support

Remote DBA

Remote DBA Services

Copyright © 1996 -  2013 by Burleson. All rights reserved.

Oracle® is the registered trademark of Oracle Corporation.