【恩墨学院】DBMS_FILE_TRANSFER为ASM的文件传输提供了新的选择
DBMS_FILE_TRANSFER provides a new choice for ASM file transfer
Oracle released a new package in version 12.1 called DBMS_FILE_TRANSFER, which provides an alternative method of transferring files between ASM disk groups and non-ASM file systems. This package is part of the Oracle Database File System (DBFS), a feature that allows the use of database storage as a file system. DBFS provides a unified interface for managing files stored in the database and on file systems.
DBMS_FILE_TRANSFER is designed to provide a simple way of transferring files between ASM and non-ASM file systems that bypasses traditional file transfer tools. Previously, transferring files between ASM and non-ASM file systems required the use of third-party tools or custom scripts that used operating system commands to transfer files. This was a cumbersome process that could be error-prone and difficult to manage.
The new DBMS_FILE_TRANSFER package simplifies the process of transferring files between ASM disk groups and file systems. The package provides two procedures, PUT_FILE and GET_FILE, that can be used to upload and download files respectively. These procedures require only a few parameters, such as the source and destination file names, and the ASM disk group and non-ASM file system paths. The package takes care of the rest and can transfer files in either direction.
One of the key advantages of using DBMS_FILE_TRANSFER is that it provides a secure way of transferring files without exposing ASM disk groups to the outside world. This is particularly useful in situations where the ASM disk groups contain sensitive data or applications that should not be accessible from the network. By using DBMS_FILE_TRANSFER, files can be transferred securely between the ASM disk groups and non-ASM file systems without the need for additional firewall rules or other network security measures.
Another advantage of using DBMS_FILE_TRANSFER is that it simplifies the management of ASM disk groups. With traditional file transfer tools, it can be difficult to keep track of which files have been transferred, which files need to be updated, and which files have been deleted. With DBMS_FILE_TRANSFER, all of these tasks are handled automatically, making it easier to manage ASM disk groups and keep them in sync with non-ASM file systems.
In conclusion, the new DBMS_FILE_TRANSFER package provides a simple and secure way of transferring files between ASM disk groups and non-ASM file systems. By using this package, administrators can simplify the management of ASM disk groups and keep them in sync with non-ASM file systems. This is an important step in the evolution of ASM as a storage solution and makes it even more attractive for enterprise customers.
