61 DBMS_DNFS

The DBMS_DNFS package provides an interface to assists in creating a database using files in the backup set.

This chapter contains the following topics:

61.1 DBMS_DNFS Security Model

This package has to be executed by users with SYSDBA privileges.

61.2 Summary of DBMS_DNFS Subprograms

The DBMS_DNFS package includes the CLONEDB_RENAMEFILE procedure.

Table 61-1 DBMS_DNFS Package Subprograms

Subprogram Description

CLONEDB_RENAMEFILE Procedure

Renames datafiles that were pointing to the backup set to the actual file name in cloned database.

61.2.1 CLONEDB_RENAMEFILE Procedure

This procedure is used to rename datafiles that were pointing to the backup set to the actual file name in cloned database.

The srcfile is the file name that represents the data file in the backup image copy or a read-only storage snapshot. The destfile destination file path must point to a NFS volume where cloneDB datafiles will be created. When the procedure is run successfully, the control file record is updated with the new datafile name.

Syntax

DBMS_DNFS.CLONEDB_RENAMEFILE (
   srcfile        IN         VARCHAR2,
   destfile       IN         VARCHAR2);

Parameters

Table 61-2 CLONEDB_RENAMEFILE Procedure Parameters

Parameter Description

srcfile

Source datafile name in the control file

destfile

New datafile name