0% found this document useful (0 votes)
682 views

What Is The Snapshot Control File

The snapshot controlfile is a copy of the controlfile that RMAN uses during long-running operations like backups. It allows RMAN to have a read-consistent view of the controlfile without locking it. By default, the snapshot controlfile is created in $ORACLE_HOME/dbs, but its location can be configured. The SHOW and CONFIGURE commands can be used to view and set the snapshot controlfile location.

Uploaded by

Amar Jit
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
682 views

What Is The Snapshot Control File

The snapshot controlfile is a copy of the controlfile that RMAN uses during long-running operations like backups. It allows RMAN to have a read-consistent view of the controlfile without locking it. By default, the snapshot controlfile is created in $ORACLE_HOME/dbs, but its location can be configured. The SHOW and CONFIGURE commands can be used to view and set the snapshot controlfile location.

Uploaded by

Amar Jit
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

What is the snapshot controlfile?

You may have noticed when reviewing the RMAN configuration parameters that
there is the option to rename the snapshot controlfile. The snapshot controlfile is
a copy of the controlfile that RMAN utilizes during long-running operations (such
as backup). RMAN needs a read-consistent view of the controlfile for the backup
operation, but by its nature the controlfile is extremely volatile. Instead of putting
a lock on the controlfile and causing all kinds of database enqueue problems,
RMAN makes a copy of the cfile called the snapshot controlfile, and uses it
instead of the actual controlfile. The snapshot is refreshed at the beginning of
every backup. You can relocate the snapshot if it makes sense in your
environment (such as making it accessible to all nodes in a RAC cluster), but for
the most part it does no harm to leave it in the $ORACLE_HOME/dbs directory.

Configuring the Snapshot Control File Location

When RMAN needs to resynchronize the recovery catalog with a read-consistent version
of the control file, it creates a temporary snapshot control file. RMAN needs a snapshot
control file when resynchronizing with the recovery catalog or when making a backup of
the current control file.

The default location for the snapshot control file is platform-specific and depends on the
Oracle home of each target database. For example, the default filename on some Linux
platforms is $ORACLE_HOME/dbs/[email protected]. If a flash recovery area is configured for a
target database, then the default location for the snapshot control file is not the flash
recovery area.

Viewing the Configured Location of the Snapshot Control File

You can see the current snapshot location by running the SHOW command. This example
shows a snapshot location that is determined by the default rule:

RMAN> SHOW SNAPSHOT CONTROLFILE NAME;


CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/oracle/dbs/snapcf_trgt.f'; # default
This example shows a snapshot control file that has a nondefault filename:

RMAN> SHOW SNAPSHOT CONTROLFILE NAME;


CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/oracle/oradata/trgt/snap_trgt.ctl';

Setting the Location of the Snapshot Control File

Use the CONFIGURE SNAPSHOT CONTROLFILE NAME TO 'filename' command to change the name


of the snapshot control file. Subsequent snapshot control files that RMAN creates use
the specified filename.

For example, start RMAN and then enter:

CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/oracle/oradata/trgt/snap_trgt.ctl';

You can also set the snapshot control file name to a raw device.

To reset the snapshot control file location to the default, run


the CONFIGURE SNAPSHOT CONTROLFILE LOCATION CLEAR command.

You might also like