Advanced - Oracle SnapProtect Backup

Table of contents

Configuring Offline Backup

Configuring Log Backup

Pruning the Logs After Backup Using RMAN

Configuring Selective Online Full Backup

Configuring Table Backups

Configuring an ASM Instance

Scheduling a Backup

Disabling Verification of Datafiles During SnapProtect Backup

Configuring SnapProtect Operations Using Command Line

NFS SnapProtect for Oracle

Configuring Oracle RAC Database SnapProtect Operations

Configuring SnapProtect Operations Using a Single Node

Configuring Online Backups for SnapProtect Subclients

Configuring RMAN Backup Copy for SnapProtect Operations

Disabling SP File Backup during Backup Copy Operations

Managing Snapshots

List Snapshots

Mount Snapshots

Delete Snapshots

Revert a Snapshot

Snap Reconciliation

Restoring data From a SnapProtect Backup

Restore Data from Snapshot Using RMAN

Restore Data from Snapshot Using a Proxy Computer

Restoring and Recovering an Entire Database to the Same Host

Reverting an Entire Database to the Same Host

Restoring and Recovering an Entire Database to a Previous Point-in-Time

Restoring and Recovering an Entire Database to a new host

Restoring Individual Datafiles/Tablespaces

Restoring Archive Logs

Restoring Database Tables to the Source Database

Restoring Tables to a Different Database on the Same Host

Setting up the Auxiliary Instance

Using a User-defined Auxiliary Instance

Disabling Clean-up of Auxiliary Instance after Restore

Restoring Tables with Non-English Characters

Exporting Table Objects

Selecting/De-Selecting Dependent/Referenced Tables

Including all Dependencies to the Dependent/Referenced Tables

Deleting Existing Tables during a Restore

Automatically Switching the Database Mode before a Restore

Setting the Database Incarnation

Enhancing Restore Performance

Restoring from a SnapProtect and RMAN Mixed Environment

Backup Copy Operations

File System

RMAN

Restoring Data from Backup Copy

Using File System

Using RMAN

Oracle Multi Instance Snap Optimization

Configuring Multiple Instances using a Shared Storage On a Client

SnapProtect Backup for Multiple Instances

Restoring a database or datafiles /table spaces from a database

Revert from a SnapProtect Job

Backup Copy for Multiple Instances Using a Shared Storage on a Client

Supported Volume Managers

Options not applicable for Oracle SnapProtect

Options not applicable for Oracle Snap Restore

Additional Options

Configuring Offline Backup

Offline backups can be performed when the database is in offline or online mode. If the database is online, it shuts down the database, performs the backup and then brings up the database back.

  1. From the CommCell Browser, navigate to <Client> | Oracle.
  2. Right-click the <Instance> and click All Tasks | New Subclient.
  3. In the Subclient Name box, type a name.
  4. Click the Content tab.
  5. Select the Offline Database checkbox.
  6. Click the Storage Device tab.
  7. In the Data Storage Policy box, select a storage policy name.
  8. Click the SnapProtect Operations tab.
  9. Click SnapProtect to enable SnapProtect backup for the selected subclient.
  10. Select the storage array from the Available Snap Engine drop-down list.
  11. From the Use Proxy list, select the MediaAgent where SnapProtect and backup copy operations will be performed.

    When performing SnapProtect backup using proxy, ensure that the operating system of the proxy server is either same or higher version than the client computer.

  12. Click OK.

configuring Log Backups

Once you perform a SnapProtect backup, perform a log backup. You will need to create a separate subclient for log backups. By default, the system will use data storage policy for SnapProtect backups and backup copy. If you create a log specific subclient, the log specific storage policy is used for SnapProtect backups and backup copies.

Use the following steps to configure log backups.

  1. From the CommCell Browser, navigate to <Client> | Oracle.
  2. Right-click the <Instance> and click All Tasks | New Subclient.
  3. In the Subclient Name box, type a name.
  4. Click the Content tab.
  5. Click to clear the Data checkbox.
  6. Select the Backup Archive Log checkbox.
  7. If you have multiple log locations, click Log Destinations tab.
  8. Select Log Destinations for Backup and click Add.
  9. Type the path to the log files to be backed up.
  10. Click OK.

Pruning the Logs After Backup Using RMAN

You can customize the pruning of archive logs after the backup using RMAN Scripts. If applicable, you will also need to specify the connect target string and connect string for a recover catalog for a full RMAN script.

File System Movement to Tape

RMAN will not know which archive logs have been backed up for file system movement to tape. Hence, we need to prune all the backed up archive logs. Use the following command to prune the logs for file system movement to tape:

connect target sys/****@oracledb

connect catalog catuser/****@catalog

DELETE NOPROMPT ARCHIVELOG ALL COMPLETED BEFORE ‘SYSDATE-XX’

rman cmdfile</path/to/rman.script>

Example:

connect target sys/syspw@oracledb

connect catalog catuser/syspw@catalog

DELETE NOPROMPT ARCHIVELOG ALL COMPLETED BEFORE ‘SYSDATE-2’

rman cmdfile</path/to/rman.script>

If you run the command in the above example, RMAN will remove all archive logs on the disk that are older than 2 days.

RMAN Movement to Tape

You can use the same command used for file system movement to tape to prune all archive logs. In addition, you can also use the following command to delete the archive logs that have been backed up multiple times, if you are saving multiple copies of archive logs to optimize your database recovery:

connect target sys/****@oracledb

connect catalog catuser/****@catalog

DELETE NOPROMPT ARCHIVELOG ALL BACKED UP XX TIMES TO DEVICE TYPE sbt;

rman cmdfile</path/to/rman.script>

Example:

connect target sys/****@oracledb

connect catalog catuser/****@catalog

DELETE NOPROMPT ARCHIVELOG ALL BACKED UP 2 TIMES TO DEVICE TYPE sbt;

rman cmdfile</path/to/rman.script>

If you run the command in the above example, RMAN will remove all archive logs that have been backed up at least 2 times to device type ‘sbt’.

Configuring Selective Online Full Backup

Selective Online Full backup is a full backup taken when Oracle database is online, and the backup data is copied to a selective copy (during an auxiliary copy operation) from which it can be restored.

  1. From the CommCell Browser, navigate to <Client> | Oracle.
  2. Right-click the <Instance> and click All Tasks | New Subclient.
  3. In the Subclient Name box, type a name.
  4. Click the Content tab.
  5. Select the Selective Online Full checkbox.
  6. A message indicating that you need to use a separate Storage Policy for Selective Online Full backups is displayed. Click OK.
  7. Click the Storage Device tab.
  8. In the Data Storage Policy box, select a storage policy name.
  9. Click the SnapProtect Operations tab.
  10. Click SnapProtect to enable SnapProtect backup for the selected subclient.
  11. Select the storage array from the Available Snap Engine drop-down list.
  12. From the Use Proxy list, select the MediaAgent where SnapProtect and backup copy operations will be performed.

    When performing SnapProtect backup using proxy, ensure that the operating system of the proxy server is either same or higher version than the client computer.

  13. Click OK.

Configuring Table Backups

When a table backup is performed, all database tables are gathered in order to present the backup data in a table view during a browse operation.

Use the following steps to configure table backups:

  1. From the CommCell Browser, navigate to <Client> | Oracle | <Instance>.
  2. Right-click the subclient and click Properties.
  3. Click the Backup Arguments | Options tab.
  4. Click the Enable Table Browse option.
  5. Click OK.

After running a SnapProtect backup with table browse enabled on the subclient, you can restore database tables.

Configuring an ASM Instance

If Oracle home of ASM instance and RDBMS instance are different, then make sure to separately configure ASM instance on the CommCell Console in additions to RDBMS instance.

Make sure that the kfed utility resides under <Oracle ASM Home>/bin location. If the kfed utility do not exist, then build the kfed utility as shown in the following example:

Ensure that the ASM disk string is not empty. Use the following steps to configure the ASM instance:

  1. From the CommCell Browser, navigate to Client Computers | <Client>
  2. Right-click Oracle, point to All Tasks and then click Discover Instance.
  3. Click Yes.

    If your +ASM instance and RDBMS instance is not discovered automatically, you may have to manually add the instance.

  1. From the CommCell Browser, navigate to Client Computers |< Client >.
  2. Right-click Oracle, point to All Tasks, and then click New Instance (ORACLE SID).
  3. In the Instance (ORACLE SID) box, type the Instance name.
  4. In the User Account box, type the login credentials to access the Oracle client.
  5. In the ORACLE HOME box, type the Oracle application install path.
  6. In the Storage Policy used for the data of default subclient box, select a storage policy name.
  7. Click the Storage Device tab.
  8. In the Storage Policy used for user command backup of data box, select a storage policy.
  9. Click the Log Backup tab.
  10. In the Storage Policy used for all Archive Log backups box, select a storage policy name.
  11. Click OK.

  1. Click the Details tab.
  2. In the Connect String box, type the credentials to access the Oracle database. For example, sys/pwd12@orcl4.
  3. Click the Storage Device tab.
  4. In the Storage Policy used for user command backup of data box, select a storage policy.
  5. In the Storage Policy used for all Archive Log backups box, select a storage policy name.
  6. Click OK. You can now create a subclient and perform SnapProtect jobs.

If the ASM disks are from persistent snap engine, then you need to disable the snap integrity. Refer Disabling Verification of Datafiles during SnapProtect Backup for more information.

Scheduling a Backup

Use the following steps to schedule a backup. When scheduling backups, ensure that you schedule the log backups soon after a SnapProtect backup.

1.
  • From the CommCell Console, navigate to <Client> | Oracle | <Instance>.
  • Right-click the Subclient and click Backup.
2.
  • Select the Backup type.
  • Click Schedule to schedule the backup for a specific time.
  • Click Configure to set the schedule for the backup job. The Schedule Details dialog displays.
3. Select the appropriate scheduling options.  For example:
  • Click Weekly.
  • Check the days you want the run the backup job.
  • Change the Start Time to 9:00 PM.
  • Click OK to close the Schedule Details dialog.
  • Click OK to close the Backup Options dialog.

The backup job will execute as per the schedule.

Disabling Verification of Datafiles during SnapProtect Backup

The following steps are performed automatically when you perform a SnapProtect backup:

  1. The database is placed in a quiesced state.
  2. A snapshot is created for data volumes.
  3. The database is placed in a unquiesced state.
  4. The snapshot is mounted on source and cataloging of datafiles is performed from mounted snapshot.
  5. The snapshot is created for log volumes
  6. The snapshot is mounted on source and cataloging is performed for mounted log files.

Cataloging is performed to verify whether all the datafiles are properly captured during a SnapProtect backup. RMAN catalog datafilecopy will check the datafile header and verify its authenticity before cataloging it.

Use the following steps to disable the cataloging operation:

  1. From the CommCell Browser, navigate to Client Computers.
  2. Right-click the <Client>, and then click Properties.
  3. Click the Registry Key Settings tab.
  4. Click Add.
  5. In the Name box, type sNOSNAPINTEGRITYCHECK.
  6. In the Location box, select or type OracleAgent from the list.
  7. In the Type box, select Value.
  8. In the Value box, type Y, and then click OK.
  1. Click OK.

Configuring SnapProtect Operations Using Command Line

Enabling SnapProtect Backup

  1. Download the update_sc.xml file and save it on the computer from where the command will be executed.
  2. Execute the following command from the <Software_Installation_Directory>/Base folder after substituting the parameter values.

    qoperation execute -af update_sc.xml -clientName <clientname> -instanceName <oraclesid> -subclientName <subclientname> -storagePolicyName <storagepolicyname> -isSnapBackupEnabled true

Selecting Snap Engine

  1. Download the update_sc.xml file and save it on the computer from where the command will be executed.
  2. Execute the following command from the <Software_Installation_Directory>/Base folder after substituting the parameter values.

    qoperation execute -af update_sc.xml -clientName <clientname> -instanceName <oraclesid> -subclientName <subclientname> -storagePolicyName <storagepolicyname> -isSnapBackupEnabled true -snapShotEngineName <Snapshot engine>

Selecting a Proxy Client for Movement to Tape:

  1. Download the update_sc.xml file and save it on the computer from where the command will be executed.
  2. Execute the following command from the <Software_Installation_Directory>/Base folder after substituting the parameter values.

    qoperation execute -af update_sc.xml -clientName <clientname> -instanceName <oraclesid> -subclientName <subclientname> -storagePolicyName <storagepolicyname> -isSnapBackupEnabled true -snapShotEngineName <Snapshot engine> -snapToTapeProxyToUse/clientName <proxy client>

Selecting RMAN Backup Copy

  1. Download the update_sc.xml file and save it on the computer from where the command will be executed.
  2. Execute the following command from the <Software_Installation_Directory>/Base folder after substituting the parameter values.

    If you select RMAN for backup copy, you should install the Oracle iDataAgent and the oracle instance configured in CommCell browser should be identical to the instance in the source computer.

    qoperation execute -af update_sc.xml -clientName <clientname> -instanceName <oraclesid> -subclientName <subclientname> -storagePolicyName <storagepolicyname> -isSnapBackupEnabled true -snapShotEngineName <Snapshot engine> -snapToTapeProxyToUse/clientName <proxy client> -isRMANEnableForTapeMovement true

Disabling SnapProtect Backup

  1. Download the update_sc.xml file and save it on the computer from where the command will be executed.
  2. Execute the following command from the <Software_Installation_Directory>/Base folder after substituting the parameter values.

    You must perform a full backup job after enabling/disabling SnapProtect backup.

    qoperation execute -af update_sc.xml -clientName <clientname> -instanceName <oraclesid> -subclientName <subclientname> -storagePolicyName <storagepolicyname> -isSnapBackupEnabled false

Available Parameters for SnapProtect Operations

The following table displays all the parameters you can use with the commands mentioned in the above sections. To add a parameter to your command, use the following syntax: (A example is provided at the end of the table.)

qoperation execute -af <template XML file> -<parameter name> <value>

Parameter Description of Parameter Values
clientName Name of the client computer, as displayed in the CommCell Browser
instanceName Name of the oracle instance
subclientName Name of the Subclient used for SnapProtect operations
storagePolicyName Name of the storage policy used for SnapProtect operations
isSnapBackupEnabled (true/false) To enable/disable a SnapProtect backup
snapShotEngineName To define the engine to be used for a SnapProtect backup
snapToTapeProxyToUseSource (true/false) To enable/disable using source if proxy is unreachable
snapToTapeProxyToUse clientName="client_name" To define proxy client to be used of backup copy operations.
isRMANEnableForTapeMovement(true/false) To enable/disable using RMAN for backup copy

Examples

The following example shows how to add a parameter for a command:

Enabling SnapProtect Backup Enable SnapProtect backup for instance name under client brahmani64.

./qoperation execute -af update_sc.xml -clientName brahmani64 -instanceName dctmdb -subclientName command_test1 -storagePolicyName 9815 -isSnapBackupEnabled true

Selecting Snap Engine Select a Snap engine for instance name dctmdb under client brahmani64 and subclient name command_test1.

./qoperation execute -af update_sc.xml -clientName brahmani64 -instanceName dctmdb -subclientName command_test1 -storagePolicyName 9815 -isSnapBackupEnabled true -snapShotEngineName <Snapshot engine>

Selecting A Proxy Client For Movement To Tape Select a proxy client for brahmani64 for movement to tape.

./qoperation execute -af update_sc.xml -clientName brahmani64 -instanceName dctmdb -subclientName command_test1 -storagePolicyName 9815 -isSnapBackupEnabled true -snapShotEngineName <Snapshot engine> -snapToTapeProxyToUse/clientName <proxy client>

Selecting RMAN Backup Copy Select a Snap engine for instance name dctmdb under client brahmani64 and subclient name command_test1.

./qoperation execute -af update_sc.xml -clientName brahmani64 -instanceName dctmdb -subclientName command_test1 -storagePolicyName 9815 -isSnapBackupEnabled true -snapShotEngineName <Snapshot engine> -snapToTapeProxyToUse/clientName <proxy client> -isRMANEnableForTapeMovement true

Disabling SnapProtect Backup Disable SnapProtect operation for instance name dctmdb under client brahmani64.

./qoperation execute -af update_sc.xml -clientName brahmani64 -instanceName dctmdb -subclientName command_test1 -storagePolicyName 9815 -isSnapBackupEnabled false

NFS SnapProtect for Oracle

You can perform a SnapProtect backup for Oracle when the database is on a NFS Volume. However, you will require a root access in the storage device's NFS configuration to be able to read and write on the accessible Oracle files i.e., the host on which the NFS Volume is mounted.

You can also perform SnapProtect backups for Oracle if the database resides on a Direct NFS volume. SnapProtect backups supports volumes using the Oracle Direct NFS (dNFS) protocol.

File level reverts can also be performed when the database is on a NFS volume by using the sUSE_FILE_LEVEL_REVERT registry key. Do not perform the file level revert when the database resides on a NFS with regular LUNs.

Consider the following while performing a SnapProtect backup for data or databases that reside on a NFS Volume:

Configuring Oracle RAC Database SnapProtect Operations

You can perform SnapProtect operations for a single node Oracle RAC setup. When configuring the Oracle RAC components for a SnapProtect backup, ensure the following:

Configuring SnapProtect Operations Using a Single Node

You must select a physical client and a RAC instance under such physical client for scheduling SnapProtect operations. It is recommended to configure the RMAN catalog prior to performing a SnapProtect backup.

Use the following steps to configure a RAC instance for SnapProtect operations using a single node:

  1. From the CommCell Browser, navigate to Client Computers | <RAC Physical Client>.
  2. Right-click the <Oracle Agent>, point to All Tasks and then click New Instance (Oracle SID).
    • In the Instance (ORACLE SID) box, type the RAC Instance name.
    • In the ORACLE USER box, type the user account name for RAC Instance.
    • In the ORACLE HOME box, type the Oracle home path for RAC instance. Alternatively, you can click Browse to select the location.
    • Select the Storage Policy for the data of a default subclient from the list.
  3. Click the Details Tab.
  4. In the Connect String box, type the Connect String (SYS login): <sys>/<syspassword>@<Oracle service>

    Example: sys/password1@racdb1

  5. In the TNS_ADMIN Folder box, type the TNS ADMIN folder name. Alternatively, click Browse to select the location.
  6. Click the Storage Device tab.
  7. In the Storage Policy used for user command backup of data box, select a storage policy.
  8. Click the Log Backup tab.
  9. In the Storage Policy used for all Archive Log backups box, select a storage policy name.
  10. Click OK.

    Make sure that the kfed utility resides under the following location:

    <Oracle ASM Home>/bin

    If the kfed utility do not exist, build the kfed utility as shown in the example:

    cd <Oracle ASM Home>/rdbms/lib

    make –f ins_rdbms.mk ikfed
    You must configure an ASM instance since Oracle RAC SnapProtect operations support only ASM instances (In case of a first node, it is +ASM1).

Configuring Online Backups for SnapProtect Subclients

When you perform a SnapProtect backup for online databases, ensure you also backup the archive logs. The archive log destination should be shared among all RAC instances. If the log destination is not shared among all RAC instances, you need to separately schedule the archive log backups using a user-defined subclient.

When you backup archive logs, you can specify the location (archive log destinations) from where log backups should be performed. Oracle RAC database will be distributed across many physical clients. These physical clients may or may not share archive log destinations for all instances.

Use the following steps to configure backups for online databases if the archive log destination is shared among all RAC instances:

  1. From the CommCell Browser, navigate to <Client> | Oracle | Instance.
  2. Right-click the <Subclient> and click Properties.
  3. Click the Content tab.
  4. Select the Backup Archive Log checkbox. If you want the archive log files to be deleted after they are backed up, select the Archive Delete checkbox.
  5. If you have multiple log locations, click Log Destinations tab.
  6. Select Log Destinations for Backup and click Add.
  7. Type the path to the log files to be backed up.
  8. Select Log Destinations for Delete and click Add.
  9. Type the path to the log files to be deleted.
  10. Click OK.

Configuring RMAN Backup Copy for SnapProtect Operations

You can use RMAN for copying the data to the media in an Oracle RAC setup. When the data is moved to media, the RMAN backup interface is used for block level backup operations. Also, these backup operations are recorded on the RMAN catalog.

RMAN is required in the case of Automatic Storage Management (ASM) Oracle Databases, since ASM data is not available on the file system.

Prior to using RMAN for copying the data to the media, ensure the following:

  • The Oracle (non RAC) instance on the proxy computer should have the same name as that in the source computer.
  • For backups involving ASM instances, both ASM and the RDBMS instances have to be configured on the proxy computer.
  • You must configure the Oracle instance and corresponding ASM instances under the proxy client.
  • The Oracle user id/group id on the on the proxy computer should be identical to the user id/group id on the source computer
  • The catalog user and the catalog database must be the accessible by the source and the proxy Oracle instances. Catalog is mandatory for RMAN backups on proxy computer.
  • The Oracle database installed on the proxy and source machine should be compatible.
  • The proxy and source computer should have the same directory structure e.g. dump, diagnostic and data directories.
  • Oracle database requires the ASM to be registered with Oracle Cluster Registry (OCR). It will ensure the RMAN to successfully mount the disk group.
  • If multiple source client database instances are configured to run RMAN backup copy on the same proxy MediaAgent, the backup copy may fail due to instance and database name conflicts. The conflicting database and instances need to be moved to a different proxy MediaAgent in such cases.
  • By default, during RMAN backup copy the data snaps are mounted in the same location as source on proxy MediaAgents. In case of ASM databases, the ASM Disk Groups are not renamed during RMAN backup copy. This is to facilitate incremental RMAN backup copy where the datafile paths need to be in the same path as source.

    However, if you use the same proxy MediaAgent for multiple databases RMAN backup copy may fail if the file system mount points or ASM Disk Group names of different Oracle instances conflict with each other. In such cases, set the sRMANDATAFILECOPY registry key to make the data snaps to be mounted on a different path or in case of ASM databases, to rename the ASM Disk Groups uniquely.

If you plan to use RMAN for copying the data to the media on the proxy computer, copy the Oracle parameter file (pfile) from the client to the proxy computer's $ORACLE_HOME/dbs/ directory, and remove any parameter containing Oracle RAC related entries.

For example:

  • cluster_database_instances
  • cluster_database
  • <RAC Instance name>.thread
  • <RAC Instance name>.local_listener
  • <RAC Instance name>.instance_number

Use the following steps to configure the RMAN backup copy for Oracle RAC setup:

  1. From the CommCell Console, navigate to Client Computers | <Client> | Oracle RAC | <Instance>.
  2. Right-click the subclient and click Properties.
  3. Click the SnapProtect Operations tab.
  4. Click SnapProtect.
  5. Select the storage array from the Available Snap Engine drop-down list.
  6. Click Use RMAN for Tape Movement.
      The Use RMAN for Tape Movement option is not supported for software snapshots.
  7. Click OK.

Disabling SP File Backup during Backup Copy Operations

  1. From the CommCell Browser, navigate to Client Computers.
  2. Right-click the <Client>, and then click Properties.
  3. Click the Registry Key Settings tab.
  4. Click Add.
  5. In the Name box, type <ORACLE_SID>_sSKIPSPFILEFORBACKUPCOPY.

    For example, tsrst1_sSKIPSPFILEFORBACKUPCOPY.

  6. In the Location box, select or type OracleAgent from the list.
  7. In the Type box, select Value.
  8. In the Value box, type Y and then click OK.

Managing Snapshots

The snapshots of the data created by the SnapProtect backup are also available for various other operations like list, mount, unmount, delete, or revert.

List Snapshots

The browse operation provides the capability to see the snapshots created for an agent, job, or a snapshot copy. The list of the snapshots displayed is corresponding to the entity selected for the browse operation, for e.g., browsing the snapshots for an agent will display all the snapshots created for the selected agent. You can view volume or disk related information for the snapshots. Follow the steps given below to browse snapshots.
  1. From the CommCell Browser, navigate to Client Computers | <Client> | <Agent>.
  2. Right-click the subclient and click List Snaps.
  1. The Snaps created during SnapProtect operation dialog box displays a list of all the snapshots created for the selected subclient. It also displays important information about each snapshot, including the source month path, snap mount path, the storage array, and the source client.

    Click the Disk View tab to display the snapshot name, e.g. SP_2_79_1286222629.

You can also browse snapshots at the instance level of the Oracle Agent.

Mount Snapshots

You can mount any available snapshot to access the data included in the snapshot. It is recommended that you select the option to protect a snapshot when it is mounted, as this will ensure that the changes made to the snapshot when it is mounted are not retained when you unmount the snapshot and the snapshot is usable for data protection operations. Follow the steps given below to mount snapshots:

  1. From the CommCell Browser, navigate to Client Computers | <Client> | <Agent>.
  2. Right-click the subclient and click List Snaps.
  1. Right-click the snapshot that you wish to mount and click Mount.
  2. Click Yes.
  3. In the Mount Path dialog box, specify the destination client and the path on the client in the Destination Client and Destination Path fields.

    On a Windows platform, enter a CIFS Share Name for the Agent.

  4. If you do not wish to save any changes made to the mounted snapshot after the snapshot is unmounted, select Protect Snapshot during mount.
  5. Click OK.
If you do not select Protect Snapshot during mount, the changes made to snapshot when it is mounted will be retained after the snapshot is unmounted and the snapshot can no longer be used for restore.

Unmount Snapshots

Follow the steps given below to unmount snapshots:

  1. From the CommCell Browser, navigate to Client Computers | <Client> | <Agent>.
  2. Right-click the subclient and click List Snaps.
  1. Right-click the snapshot you wish to unmount and click Unmount.
  2. Click Yes when prompted if you want to continue.
If the snapshot does not get unmounted, select the Force Unmount option to mark the snapshot as unmounted.

Delete Snapshots

Snapshots can either be deleted using job-based pruning or from the list of displayed snapshots when browsing snapshots. Data Aging can also be used to define the retention rules and pruning of snapshots. Follow the steps given below to delete snapshots:

  • Manual deletion of snapshots is not recommended. When a snapshot is deleted, it is no longer possible to perform data recovery operations from the snapshot copy. However, if a backup copy was created from the snapshot, data recovery operations can be performed from the backup copy.
  • Ensure that the snapshot to be deleted is not mounted.
  1. From the CommCell Browser, navigate to Client Computers | <Client> | <Agent>.
  2. Right-click the subclient and click List Snaps.
  1. Right-click the snapshot you wish to delete.
    Ensure all snapshots with the same Job ID are selected for a successful deletion operation.
  2. Click Delete.
  3. Enter the confirmation text string, erase snapshots.
  4. Click OK.

Revert a Snapshot

You can use the revert operation to bring the data back to the point-in-time when the snapshot was taken. This operation overwrites any modifications to the data since the time when the snapshot was created. This option is available if the storage arrays that you are using supports revert. Revert operations are supported on NetApp File Servers but not from SnapVault or SnapMirror snapshots. You can either perform an application aware revert or a hardware specific revert.

Review the following before performing a revert operation:

  • It is recommended to verify the contents of the backup and ensure that you want to perform a revert operation as it is an irreversible operation.
  • If you plan to perform a revert operation, you will not be able to use the associated storage policy for further auxiliary copy operations.

Perform an Application Aware Revert

  1. From the CommCell Browser, right-click the entity that contains the data you want to restore, and click All Tasks | Browse Backup Data.
  2. From the Browse Options dialog box, click OK.
  3. Select the data you want to revert and click Recover All Selected.
  4. From the Restore Options dialog box, click Advanced.
  5. Select the Use hardware revert capability if available option.
  6. Click OK to confirm the revert operation.
  7. Click OK from the Advanced Restore Options dialog box.
  8. Click OK to start the revert.
    • An application aware revert operation reverts back all the volumes included in the backup.
    • For NetApp NFS configurations:
      • This operation reverts all data on the file server volume, not just the data that is associated with the application.
      • A volume revert deletes all snapshots that were created after the snapshot to which you are reverting.
      • If you perform a volume revert on the source for a SnapVault/SnapMirror copy, and the snapshot to which you are reverting was created before the most recent snap moved to the SnapVault/SnapMirror copy, then the SnapVault/SnapMirror copy operation no longer works.

Perform a Hardware Specific Revert

  1. From the CommCell Console, navigate to Client Computers | <Client>.
  2. Right-click the subclient and click List Snaps.
  3. Right-click the snapshot that you wish to delete and click Use hardware revert capability if available.
  4. Enter the confirmation text string, confirm.
  5. Click OK.
  • A hardware specific revert operation reverts back the volume included in the snapshot.
  • For NetApp NFS configurations:
    • This operation reverts all data on the file server volume, not just the data that is associated with the snapshot.
    • A volume revert deletes all snapshots that were created after the snapshot to which you are reverting.
    • If you perform a volume revert on the source for a SnapVault/SnapMirror copy, and the snapshot to which you are reverting was created before the most recent snap moved to the SnapVault/SnapMirror copy, then the SnapVault/SnapMirror copy operation no longer works.

 

Snap Reconciliation

Snapshots may be deleted from the array due to factors like low disk space on the array, number of snapshots exceeds the threshold etc., and the jobs corresponding to these deleted snapshots can no longer be used for any data recovery or backup copy operations. You can use the nRunSnapRecon registry key to start snap reconciliation to check for missing snapshots once in every 24 hours and marks jobs corresponding to the missing snapshots as invalid.

Restoring data From a SnapProtect Backup

When restoring data from a snapshot, note the following:

Snapshots are mounted on the destination client where the restore is performed. Hence, destination client should have access to the storage array/filer where snapshot was taken. If the destination client does not have access to storage device, then you should restore the data from snapshot using proxy computer. You can restore an oracle database on a ASM disk group using RMAN.

Restore Data From Snapshot Using RMAN

Use the following steps to restore data from a snapshot using RMAN scripts:

  1. From the CommCell Browser, navigate to Client Computers | <Client> | Oracle.
  2. Right-click the entity that contains the snapshots you want to restore, and point to All Tasks | Browse Backup Data.
      Restoring log data using RMAN is not supported.
  3. Click OK.
  4. From the Browse window, select the data you want to restore in the right pane and click Recover All Selected.
  5. From the Restore Options for All Selected Items window, select the Use Snap Restore checkbox.
  6. Click Advanced.
  7. Select the Use RMAN Restore checkbox.
  8. Click OK to save the settings and close the Advanced Restore Options window.
  9. Click OK to close the Restore Options window and initiate the restore job.

Restore Data from Snapshot Using a Proxy Computer

  1. From the CommCell Browser, navigate to Client Computers | <Client> | Oracle.
  2. Right-click the entity that contains the snapshots you want to restore, and point to All Tasks | Browse Backup Data.
  3. Click OK.
  4. From the Browse window, select the data you want to restore in the right pane and click Recover All Selected.
  5. From the Restore Options for All Selected Items window, select the Use Snap Restore checkbox.
  6. Click Advanced.
  7. Click the Data Path tab.
  8. From the Use Proxy box, select the server that you want to use as proxy.

    The oracle restore will use the file system restore from snap if this option is selected.

  9. Click OK to save the settings and close the Advanced Restore Options window.
  10. Click OK to close the Restore Options window and initiate the restore job.

Restoring and Recovering an Entire Database to the same host

When the database is corrupted or lost, you can restore and recover it from the latest offline or online full backup (depending on how the subclient was configured for backups).

By default, the database is restored to the same location from where it was backed up. Once the database is restored, it is recovered to the current time.

Use the following steps to restore and recover a database to the same host:

  1. From the CommCell Browser, navigate to Client Computers | <Client> | Oracle.
  2. Right-click the <Instance>, point to All Tasks and then click Restore.
  1. Verify that the Restore Data and Recover options are selected.
  2. Select the Restore Control File check box.
  3. Click OK.

Reverting an Entire Database to the Same Host

You can use the revert operation to bring the oracle database back to the point in time when the SnapProtect backup was taken. However, the log volume will not be reverted. Hence, you can use either the file system or RMAN to revert the logs after reverting the data volume.

  1. From the CommCell Browser, navigate to Client Computers | <Client> | Oracle.
  2. Right-click the <Instance>, point to All Tasks and select Browse Backup Data.
  3. From the Browse window, navigate and select the database to be restored and click Recover All Selected.
  4. From the Restore Options dialog box, click Advanced.
  5. Select the Use hardware revert capability if available option.
  6. Click OK to confirm the revert operation.

Restoring and Recovering an Entire Database To a Previous Point-in-Time

The point-in-time restore is useful in the following scenarios:

When you restore and recover an entire database to a previous point-in-time from an online backup or offline backup (depending on how the subclient was configured for backups) to the original host, it is recommended to use the control files.

When you perform a point-in-time restore for a database, the next scheduled backup for that database will automatically convert to a full backup.

Use the following steps to restore and recover a database to a previous point-in-time:

  1. From the CommCell Browser, navigate to Client Computers | <Client> | Oracle.
  2. Right-click the <Instance>, point to All Tasks and then click Restore.
  1. Select Restore Control File check box, if you want to restore the control file(s).
  2. Click Advanced.
  1. Click the Restore tab.
  2. Click To Point-In-Time  and select the data and time.
  1. Click the Recover tab.
  2. Click the Point-In-Time  and select the data and time.
  1. Click Ctrl&SP Files Tab, if you have selected to restore the control file(s).
  2. Select Restore From check box.
  3. Click the Point-In-Time  and select the data and time.

    You must restore the control files to a point-in-time later than or equal to the point-in-time set in the Restore tab.

  4. Click OK.

Restoring and Recovering an Entire Database to a new host

If the computer on which you hosted a database is damaged or destroyed, you can restore and recover the lost database with the same directory structure on to a new host.

By default, the database is restored in the ARCHIVELOG mode, You can also choose to restore the db in NOARCHIVELOG mode.

Use the following steps to restore and recover a database to a new host with the same directory structure:

Prerequisites

 
  1. Verify the following in both the source and destination computers:
  • The connection specifications (host, service name, port) in the tnsnames.ora file on both the source and destination computers should be different.
  • The <username> you use for the destination computer is different than the username for the source computer.
  • Sufficient disk space is available on the destination computer to accommodate the restored database.
  • Both the source and destination computers should have the following similar features:
    • Operating systems
    • Oracle version
    • ORACLE_SID
    • init <SID>.ora file
    • Processor (32-bit or 64-bit)
    • Datafile directory structures
 

Setting up the Source and Destination Hosts

 
  1. Create a new user account with recovery catalog owner permission within the Recovery Catalog for the destination computer. Use a different <username>

Example:

SQL>create user <username> identified by <password>

2>temporary tablespace <temp_tablespace_name>

3>default tablespace <default_tablespace_name>

4>quota unlimited on <default_tablespace_name>;

Statement processed.

SQL>grant connect, resource, recovery_catalog_owner to <username>;

Statement processed.

  1. Manually transfer the Oracle password file orapw<Oracle SID name> from the source computer to the destination computer. Usually, this file resides in ORACLE_HOME/dbs.
 
  1. Export the recovery catalog data for the catalog user.

    For example, if the user ID for the recovery catalog owner is user1, you need to export the database backup information for user1.

 
  1. Import the recovery catalog data to the new user account for the destination computer.
Example using IMPORT CATALOG Command:

RMAN>IMPORT CATALOG user1/user1@src;

  1. Copy the recovery catalog’s connect string entry in the tnsnames.ora file from the source host to the destination host.

<service_name> =

(DESCRIPTION =

(ADDRESS = (PROTOCOL = <protocol>)(HOST = <host>) (PORT = <##>))

(CONNECT_DATA = (SID = <Recovery Catalog database>)))

  1. Make sure that the ORACLE_SID and ORACLE_HOME are appropriately configured on the destination computer.

Example:

For Unix:

#export ORACLE_SID= <target database SID>

#export ORACLE_HOME= <Oracle home directory>

 

For Windows:

C:\set ORACLE_SID= <target database SID>

C:\set ORACLE_HOME= <Oracle home directory>

  1. Install the Oracle iDataAgent and configure it as client in the same CommServe in which the source computer resides.
 
  1. Create and configure a new Oracle instance, similar to the one existing in the source computer on the destination computer. Ensure that this instance is in NOMOUNT mode.
 

Restoring the Database

 
  1. From the CommCell Browser, navigate to Client Computers | <Client> | Oracle.
  2. Right-click the <Instance> point to All Tasks and then click Restore.
  3. Select the name of the client computer from the Destination Client list.
  4. Select Restore Control File check box.
  5. Click Advanced.
  1. Click the Options tab.
  2. If the database is in NOARCHIVELOG mode, then select No Redo Logs.
  3. Click OK.

Restoring Individual Datafiles/Tablespaces

In addition to restoring a database, you can also restore specific tablespaces or datafiles that were lost due to an error or corruption. By default, the selected tablespaces/datafiles are restored to the original location from the latest online backup.

Use the following steps to restore the datafile(s) or tablespace(s):

  1. From the CommCell Browser, navigate to Client Computers | <Client> | Oracle.
  2. Right-click the <Instance>, point to All Tasks and then click Browse Backup Data.
  3. Click OK.
  1. In the right pane of the Browse window, select the datafiles or tablespaces you want to restore and click Recover All Selected.
  1. Click OK.

Restoring Archive Logs

Archive logs can be restored separately or along with the database. If there is a database failure and you need to recover the database to the recent state, you will be able to restore all the logs along with the database.

Use the following steps to restore all the archived logs (note that this is the default option):

  1. From the CommCell Browser, navigate to Client Computers | <Client> | Oracle.
  2. Right-click the <Instance>, point to All Tasks and then click Restore.
  1. Select the Restore Archive Log check box.
  2. Click Advanced.
  1. In the Snap Restore Options, select the Use FileSystem Restore Check box
  2. Click OK.

Restoring Database Tables

Database tables can be restored from a SnapProtect backup using RMAN. In order to restore database tables, you need to perform a SnapProtect backup with table browse enabled.

Use the following steps to restore database tables:

  1. From the CommCell Browser, navigate to Client Computers | <Client> | Oracle.
  2. Right-click the <Instance> and click All Tasks | Browse Backup Data.
  3. Select the Table View checkbox.
  4. Click OK.
  5. In the Browse window, select the tables that you want to restore and click Recover All Selected.
  6. Click the Table Restore tab.
  7. Select the Auxiliary Instance checkbox if you want to specify an auxiliary instance for the restore.

    When specifying the auxiliary instance, ensure that the database is in NOMOUNT mode.

  8. In the Database Name text box, type the auxiliary database name.
  9. In the PFile textbox, type the path to the PFile. Alternatively, click Browse to locate the PFile.
  10. In the Database Client box, select the client for the auxiliary instance.

    When you provide an auxiliary instance, make sure that the temp.dbf file is removed from the operating system in the specified auxiliary instance datafile location.

  11. Click OK.

Restoring Tables to the Source Database

If some of the tables in the database are lost or corrupted, you can restore those tables back to the same database using the following steps:
  1. From the CommCell Browser, navigate to Client Computers | <Client> | Oracle.
  2. Right-click the <Instance>, point to All Tasks and select Browse Backup Data.
  3. Select the Table View check box and click OK.
  4. From the Browse window, navigate and select the tables to be restored and click Recover All Selected.
  1. Click the Table Restore tab.
  2. In the Staging Path box, click Browse and select the location where the auxiliary instance will be created.
  3. Click the Advanced Options tab.
  1. Select Import to Source DB.
  2. Click OK.

Restoring Tables to a Different Database on the Same Host

Use the following steps to restore tables to a different database on the same host:
  1. Add the destination instance name in the Listener.ora and Tnsnames.ora files.
  2. From the CommCell Browser, navigate to Client Computers | <Client> | Oracle.
  3. Right-click the <Instance>, point to All Tasks and select Browse Backup Data.
  4. Select the Table View check box and click OK.
  5. From the Browse window, navigate and select the tables to be restored and click Recover All Selected.
  6. Click the Table Restore tab.
  7. In the Staging Path box, type the location where the tables will be restored.
  8. Click the Advanced Options tab.
  9. Select Import to a Different DB.
  10. In the Enter Import Oracle Instance: box, type the destination instance name.
  11. In the Select a Client box, select the source client.
  12. Click OK.

Setting Up the Auxiliary Instance

By default, when you restore database tables to a target instance, the system automatically duplicates the source database to an auxiliary instance in a temporary staging location specified during the restore operation. The database will be automatically imported from this auxiliary instance after the restore.

Use the following steps to set up a specific database as an auxiliary instance. This is useful when you want to restore a table to a specific failure point.
1. Copy the init<SID>.ora file from the source database to the auxiliary database instance.  
2. Update the database name and the database file locations in the init<SID>.ora file for the auxiliary database instance.  
3. Add the DB_FILE_NAME_CONVERT and LOG_FILE_NAME_CONVERT parameters in the init<SID>.ora file. These parameters will redirect the datafiles, temp files, and log files to the auxiliary instance. Windows Clients:

DB_FILE_NAME_CONVERT=('sourcE_of_df_path/','dup_of_df_path/','source_of_temp_path/','dup_of_temp_path/',...)

LOG_FILE_NAME_CONVERT=('source_of_log_path/redo','dup_of_log_path/redo')

Unix Clients:

DB_FILE_NAME_CONVERT=(source_of_df_path/,dup_of_df_path/,source_of_temp_path/,dup_of_temp_path/,...)

LOG_FILE_NAME_CONVERT=(source_of_log_path/redo,dup_of_log_path/redo)

4. Add the log_archive_dest_1 parameter is added to the init<SID>.ora file on the auxiliary instance.  
5. Restart the Oracle Services, if using Windows clients.  
6. Add the destination instance name in the Listener.ora and Tnsnames.ora files. If using a different host, add the duplicate database instance name in the Listener.ora file on the destination host and Tnsnames.ora files on the destination and source hosts. Also, add the original database name in the Tnsnames.ora file on the destination host. DUPDB = (DESCRIPTION =

(ADDRESS = (PROTOCOL = TCP)(HOST = powerpc02)(PORT = 1521))

(CONNECT_DATA = (SERVER = DEDICATED)

(SERVICE_NAME = dupdb) (UR=A) ) )

7. Restart the Listener. $lsnrctl reload
8. Ensure that the auxiliary instance is in NOMOUNT mode. sql> startup nomount;

Restoring Tables using a User-defined Auxiliary Instance

By default, when you restore database tables to a target instance, the system automatically duplicates the source database to an auxiliary instance in the specified temporary staging location. Once the database is duplicated, you can import the tables to the target instance.

However, if required, you can also use an user-defined auxiliary instance for the restore operation. This is used when you want to restore a table to a specific failure point.
When restoring tables to a different host, if a user-defined auxiliary instance option is selected for the restore, you need to recover the database to a specified point-in-time or SCN number. You cannot recover the database to the current time using an user-defined auxiliary instance.

Setting Up the Auxiliary Instance

1. Copy the init<SID>.ora file from the source database to the auxiliary database instance.  
2. Update the database name and the database file locations in the init<SID>.ora file for the auxiliary database instance.  
3. Add the DB_FILE_NAME_CONVERT and LOG_FILE_NAME_CONVERT parameters in the init<SID>.ora file. These parameters will redirect the datafiles, temp files, and log files to the auxiliary instance. Windows Clients:

DB_FILE_NAME_CONVERT=('sourcE_of_df_path/','dup_of_df_path/','source_of_temp_path/','dup_of_temp_path/',...)

LOG_FILE_NAME_CONVERT=('source_of_log_path/redo','dup_of_log_path/redo')

Unix Clients:

DB_FILE_NAME_CONVERT=(source_of_df_path/,dup_of_df_path/,source_of_temp_path/,dup_of_temp_path/,...)

LOG_FILE_NAME_CONVERT=(source_of_log_path/redo,dup_of_log_path/redo)

4. Add the log_archive_dest_1 parameter is added to the init<SID>.ora file on the auxiliary instance.  
5. Restart the Oracle Services, if using Windows clients.  
6. Add the destination instance name in the Listener.ora and Tnsnames.ora files. If using a different host, add the duplicate database instance name in the Listener.ora file on the destination host and Tnsnames.ora files on the destination and source hosts. Also, add the original database name in the Tnsnames.ora file on the destination host. DUPDB = (DESCRIPTION =

(ADDRESS = (PROTOCOL = TCP)(HOST = powerpc02)(PORT = 1521))

(CONNECT_DATA = (SERVER = DEDICATED)

(SERVICE_NAME = dupdb) (UR=A) ) )

7. Restart the Listener. $lsnrctl reload
8. Ensure that the auxiliary instance is in NOMOUNT mode. sql> startup nomount;

Restoring the Tables using the Auxiliary Instance

  1. From the CommCell Browser, navigate to Client Computers | <Client> | Oracle.
  2. Right-click the <Instance>, point to All Tasks and select Browse Backup Data.
  3. Select the Table View check box and click OK.
  4. From the Browse window, navigate and select the tables to be restored and click Recover All Selected.
  5. Click the Table Restore tab.
  6. Select the Auxiliary Instance checkbox.
  7. In the Database Instance box, type the auxiliary instance name.
  8. In the Database Client box, select the destination client for the auxiliary instance.
  9. In the PFile box, type the path to the PFile of the auxiliary instance. Alternatively, click Browse to select the path.
  10. In the Staging Path box, type the location where the auxiliary instance will be created. Alternatively, click Browse to select the path.
  11. Click the Advanced Options tab.
  1. Select Import to a Different DB.
  2. In the Enter Import Oracle Instance: box, type the destination instance name.
  3. In the Select a Client box, select the destination client.
  4. Click Advanced.
  1. Select the Recover tab.
  2. Select Point-In-Time checkbox and specify the time range to which the the database need to be recovered.
  3. Click OK.

Disabling Clean-up of Auxiliary Instance after Restore

By default, the system generated auxiliary instance is deleted automatically once the  tables are imported to the destination instance.

Use the following steps to disable the clean-up of auxiliary instance after the restore:

  1. From the CommCell Browser, navigate to Client Computers | <Client> | Oracle.
  2. Right-click the <Instance>, point to All Tasks and select Browse Backup Data.
  3. Select the Table View check box and click OK.
  4. From the Browse window, navigate and select the tables to be restored and click Recover All Selected.
  5. Click the Table Restore tab.
  6. In the Staging Path box, type the location where the tables will be restored.
  7. Clear the Cleanup Auxiliary checkbox.
  8. Click OK.

Restoring Tables with Non-English Characters

By default, you can restore the tables with English characters. Use the following steps to restore the non-English characters in the tables:

  1. From the CommCell Browser, navigate to Client Computers.
  2. Right-click the <Client>, and then click Properties.
  3. Click the Registry Key Settings tab.
  4. Click Add.
  5. In the Name box, type <ORACLE_SID>_NLS_LANG. For example, tsrst119_NLS_LANG
  6. In the Location box, select or type OracleAgent from the list.
  7. In the Type box, select Value.
  8. In the Value box, set the database's character set as per your database's character set and then click OK.

    For example, if the database’s nls character set value is ZHS16GBK, you can set NLS_LANG registry key to AMERICAN_AMERICA.ZHS16GBK. By default this value is set to AMERICAN_AMERICA.US7ASCII.

  1. Click OK.

Exporting Table Objects

During table restores, the tables are exported from the auxiliary instance to the destination client and later imported to the target database. By default, the following data objects are exported along with the tables:

However, the stored procedures associated with the selected tables are not exported by default. Use the following steps to export the stored procedures and additional export parameters, such as (COMPRESS or PARALLEL):

Stored procedures are restored from the Schema level. Schema is the collection of data objects created by the user to contain or reference their data. Hence, if one of the table within the schema is selected for restore, all the stored procedures for that schema will also get restored.

When exporting the tables, the datapump export utility is used if it is supported by the Oracle application. The datapump utility facilitates the export of stored procedures. In oracle versions that do not support datapump export utility, you will not be able to include stored procedures during export.

  1. From the CommCell Browser, navigate to Client Computers | <Client> | Oracle.
  2. Right-click the <Instance>, point to All Tasks and select Browse Backup Data.
  3. Select the Table View check box and click OK.
  4. From the Browse window, navigate and select the tables to be restored and click Recover All Selected.
  5. Click the Table Restore tab.
  6. In the Staging Path box, type the location where the auxiliary instance will be restored.
  7. Click the Advanced Options tab.
  8. Select the Include Stored Procedures checkbox.
  9. Select Use additional export parameters checkbox and type the parameters to be exported.
  10. Click OK.

Selecting/De-selecting Dependent/Referenced Tables

When you browse using the table view, you can also view the dependent and referenced tables associated with the tables selected for the restore.

Dependent tables are the parent tables (containing the primary key) that the selected table (containing the foreign key) depends upon. Similarly, Referenced tables are the child tables (containing the foreign key) that references the selected table (containing the primary key).

By default, all the dependent and referenced tables will be included in the restore operation. Use the following steps to exclude the dependent/referenced tables:
  1. From the CommCell Browser, navigate to Client Computers | <Client> | Oracle.
  2. Right-click the <Instance>, point to All Tasks and select Browse Backup Data.
  3. Select the Table View check box and click OK.
  4. From the Browse window, navigate to the table to be restored.
  5. Right-click the <table> and click Select/Deselect All Dependent Tables to exclude all the dependent tables.

    Similarly, click Deselect All Referenced Tables to exclude all the referenced tables.

  6. Click Restore All Selected.
  7. Click the Table Restore tab.
  8. In the Staging Path box, type the location where the auxiliary instance will be restored.
  9. Click OK.

Including all Dependencies to the Dependent/Referenced Tables

When restoring tables, you can include recursive dependency relationship of all the dependent/referenced tables.

Use the following steps to include all the dependent/referenced tables recursively:

  1. From the CommCell Browser, navigate to Client Computers | <Client> | Oracle.
  2. Right-click the <Instance>, point to All Tasks and select Browse Backup Data.
  3. Select the Table View check box and click OK.
  4. From the Browse window, navigate to the table to be restored.
  5. Right-click the <table> and click Select All Dependent Tables Recursively to include recursive dependency of dependent tables.

    Similarly, click Deselect All Referenced Tables Recursively to to include recursive dependency of referenced tables.

  6. Click Restore All Selected.
  7. Click the Table Restore tab.
  8. In the Staging Path box, type the location where the auxiliary instance will be restored.
  9. Click OK.

Deleting Existing Tables during a Restore

By default, the restore operation will overwrite the existing tables in the destination database during the restore. You can also configure the restore operation to delete the existing tables before performing the restore.

Manually drop/delete the existing tables at the destination instance and then import the tables.

Use the following steps to automatically delete existing tables on the destination instance during restore. Note that you can also manually drop/delete the existing tables at the destination instance and perform the restore without enabling this option.

  1. From the CommCell Browser, navigate to Client Computers | <Client> | Oracle.
  2. Right-click the <Instance>, point to All Tasks and select Browse Backup Data.
  3. Select the Table View check box and click OK.
  4. From the Browse window, navigate and select the tables to be restored and click Recover All Selected.
  5. Click the Table Restore tab.
  6. In the Staging Path box, type the location where the tables will be restored.
  7. Click the Advanced Options tab.
  8. Select Import to Source DB.
  9. Click Drop Table for Import checkbox.
  10. Click OK.

Automatically Switching the Database Mode before a Restore

In order to perform a restore operation, the database should be in the MOUNT mode. If the database is not in mounted state, you are prompted to switch the database to the mounted state and then perform the restore.

Use the following steps to automatically switch the database to mount mode prior to restore:

  1. From the CommCell Browser, navigate to Client Computers | <Client> | Oracle.
  2. Right-click the <Instance>, point to All Tasks and then click Restore.
  3. Click Advanced.
  1. Click the Options tab.
  2. Select Switch Database mode for Restore.
  3. Click OK.

Setting the Database Incarnation

When you perform a point-in-time recovery of an Oracle database with RESETLOGS, a new incarnation of the database is created. All archive log files generated after resetting the logs will be associated to the new incarnation. However, in order to perform a point-in-time recovery from a backup of a previous incarnation, you need to reset the current incarnation to the previous incarnation value. Use the following steps to set the incarnation value:

  1. From the CommCell Browser, navigate to Client Computers | <Client> | Oracle.
  2. Right-click the <Instance>, point to All Tasks and then click Restore.
  3. Click Advanced.
  1. Click Options tab.
  2. Select the database incarnation value from Set DB Incarnation list.
  3. Click OK.

Enhancing Restore Performance

You can perform a restore operation faster when you set a maximum number of concurrent open datafiles for RMAN to read simultaneously. Use the following steps to enhance your restore operation:

  1. From the CommCell Browser, navigate to Client Computers | <Client> | Oracle.
  2. Right-click the <Instance>, point to All Tasks and then click Restore.
  3. Click Advanced.
  1. Click Options tab.
  2. Select the number of open files from Max Open Files list.
  3. Click OK.
  4. Click OK to start the restore.

Restoring from a snapProtect and rman mixed environment

When restoring from a SnapProtect and RMAN mixed environment, the data can be restored from a SnapProtect or RMAN backup jobs depending on the browse time and whether the database full backup is a SnapProtect or RMAN backup job.

Consider the following scenarios:

Scenario 1

The backup jobs are performed in the following sequence:

  1. Full SnapProtect backup job
  2. RMAN archive log job

In this scenario, when you restore a control file, SP file from autobackup or backup piece, the restore is always performed from the full SnapProtect backup job.

Similarly, when restoring only the archive logs, the logs are restored from the SnapProtect backup job instead of the latest archive log backup.

Scenario 2

The backup jobs are performed in the following sequence:

  1. Full SnapProtect backup job
  2. Full RMAN backup job
  3. RMAN archive log job

In this scenario, the restores are performed from the latest backup job (SnapProtect or RMAN) depending on the specified time.

If the SnapProtect full backup job and RMAN full backup job were executed in parallel, by default, the SnapProtect full backup job is used for the restore operation.

Enabling Restores from RMAN backups

In a SnapProtect and RMAN mixed environment, you can configure to restore certain database components, such as control file, SP file, or archive logs from RMAN backup jobs by creating the sSNAPRESTORE registry key on the CommServe using the following steps. Once the restore is complete, make sure to delete this key to enable restores from SnapProtect backups.

  1. From the CommCell Browser, right-click the <CommServe>, and then click Properties.
  2. Click the Registry Key Settings tab.
  3. Click Add.
  4. In the Name box, type sSNAPRESTORE.
  5. In the Location box, type or select CommServe from the list.
  6. In the Type box, select REG_SZ.

    On Unix clients, select Value.

  7. In the Value box, type N and then click OK.

Restore and Recover the Database to a point in time

In a mixed mode environment, you can restore and recover the database to a point in time using the following steps:

  1. Enable restores from RMAN backup by creating the sSNAPRESTORE registry key on the CommServe.
  2. Restore the Control File from Autobackup/Backup Piece or point in time
  3. Enable restores from SnapProtect backups by deleting the sSNAPRESTORE registry key.
  4. Restore and recover the database to a point in time from SnapProtect backup.

Backup Copy Operations

The following sections describe the additional modes of Backup Copy Operations:

File System

By default, the system will use the File System for copying the data to the media. The system will scan the file, generate and read the collect file, extract the file list and copies the data on to the tape using MediaAgent's data mover.

In order to perform the file system snap to tape copy on a proxy computer, ensure that the MediaAgent and File System iDataAgent are installed on the proxy computer.

  1. From the CommCell Console, navigate to Client Computers | <Client> | Oracle | <Instance>.
  2. Right-click the subclient and click Properties.
  3. Click SnapProtect Operations.
  4. Select SnapProtect.
  5. Click Available Snap Engines drop-down box and select the storage array.
  6. Click OK.

RMAN

You can also use RMAN for copying the data to the media.

When data is moved from snap to media, the RMAN backup interface is used for block level backup operations. Also, these backup operations are recorded on the RMAN catalog. RMAN is required in the case of Automatic Storage Management (ASM) Oracle Databases, since ASM data is not available on the file system. You can also run RMAN restores/reports from these backups.

Prior to using RMAN for copying the data to the media, ensure the following:

  • The Oracle iDataAgent must be installed on the proxy computer.
  • The Oracle instance on the proxy computer should have the same name as that in the source computer.
  • The Oracle database installed on the proxy and source computers should be compatible.
  • For backups involving ASM instances, both ASM and the RDBMS instances have to be configured on the proxy computer.
  • The catalog user and the catalog database must be the accessible by the source and the proxy Oracle instances.
  • The proxy and source computer should have the same directory structure e.g. dump, diagnostic and data directories.
  • Oracle database requires the ASM to be registered with Oracle Cluster Registry (OCR), since the ASM instance is a resource in CRS repository. It will ensure the RMAN to successfully mount the disk group.
  • If multiple source client database instances are configured to run RMAN backup copy on the same proxy MediaAgent, the backup copy may fail due to instance and database name conflicts. The conflicting database and instances need to be moved to a different proxy MediaAgent in such cases.
  1. From the CommCell Console, navigate to Client Computers | <Client> | Oracle | <Instance>.
  2. Right-click the subclient and click Properties.
  3. Click SnapProtect Operations.
  4. Select SnapProtect.
  5. Select the storage array from the Available Snap Engine drop-down list.
  6. Select Use RMAN for Tape Movement.
      The Use RMAN for Tape Movement option is not supported for software snapshots.
  7. Click OK.

RMAN Incremental Backup Copy

Oracle RMAN incremental backup copy can be performed on a proxy server.

Prior to performing the RMAN incremental backup copy, ensure the following:

  • The database physical schema is the same in both the snap and the current backup (i.e. no addition or deletion of tablespaces between time of snap and current backup).
  • The Oracle user ID/group ID on source and proxy should be the same otherwise the RMAN backup copy will fail due to permission issues.
  1. Copy the Oracle parameter file (pfile) and password file from the source to the proxy computer's $ORACLE_HOME/dbs/ directory.
  2. Create the bdump, udump, adump, cdump and diagnostic_dest directories. Ensure that the directories are in the same location as the source.
  3. Create the DB_CREATE_FILE_DEST and LOG_ARCHIVE_DEST directories. If there are multiple archive destinations, then create the directories for each of the archivelog destinations.
  4. Copy the catalog connection information from the source to the proxy in the tnsnames.ora.
  5. Startup the proxy instance in NOMOUNT mode.
  6. Configure the proxy Oracle Instance on the CommCell Console.
  7. Click Use Proxy drop-down box and select the configured proxy from the dropdown list.
  8. Select Use RMAN for Tape Movement and click OK.
  9. The Incremental option is now available for backup.

 

Preventing RMAN Backup Copy Failures due to Mount Point/ ASM Disk group Name Conflicts on a Proxy MediaAgent

By default, during RMAN backup copy the data snaps are mounted in the same location as source on proxy MediaAgents. In case of ASM databases, the ASM Disk Groups are not renamed during RMAN backup copy. This is to facilitate incremental RMAN backup copy where the datafile paths need to be in the same path as source.

However, if you use the same proxy MediaAgent for multiple databases RMAN backup copy may fail if the file system mount points or ASM Disk Group names of different Oracle instances conflict with each other.

In such cases, use the following steps to make the data snaps to be mounted on a different path or in case of ASM databases, to rename the ASM Disk Groups uniquely:

  1. From the CommCell Browser, navigate to Storage Resources | MediaAgents.
  2. Right-click the <Proxy MediaAgent>, and then click Properties.
  3. Click the Registry Key Settings tab.
  4. Click Add.
  5. In the Name box, type sRMANDATAFILECOPY.
  6. In the Location box, type or select OracleAgent from the list.
  7. In the Type box, select REG_SZ.

    On Unix clients, select Value.

  8. In the Value box, type Y and then click OK.
    RMAN incremental backups will not be possible if we set this registry key as we use BACKUP DATAFILECOPY syntax in this case.

Restoring Data from Backup Copy

You can perform a restore from the backup copy by setting the appropriate copy precedence number. Use the following steps to restore the data from backup copy using the File System backup:

Restore Data from Backup Copy Using File System

  1. From the CommCell Browser, navigate to Client Computers | <Client> | <Agent>.
  2. Right-click the entity that contains the snapshots you want to restore, and point to All Tasks | Browse Backup Data.
  3. Click OK.
  4. From the Browse window, select the data you want to restore in the right pane and click Recover All Selected.
  5. From the Restore Options for All Selected Items window, click Advanced.
  6. Click the Copy Precedence tab and select the Restore from Copy Precedence checkbox.
  7. In the Copy Precedence box, type the copy precedence number for the backup copy.
  1. Select the General tab.
  2. Select the Use File System Restore checkbox.
  3. Click OK.

Restore Data from Backup Copy Using RMAN

Use the following steps to restore the data from backup copy using RMAN. Refer Advanced Restore - Oracle iDataAgent for regular restore operations.

  1. From the CommCell Browser, navigate to Client Computers | <Client> | <Agent>.
  2. Right-click the entity that contains the snapshots you want to restore, and point to All Tasks | Browse Backup Data.
  3. Click OK.
  4. From the Browse window, select the data you want to restore in the right pane and click Recover All Selected.
  5. From the Restore Options for All Selected Items window, click Advanced.
  6. Click the Copy Precedence tab and select the Restore from Copy Precedence checkbox.
  7. In the Copy Precedence box, type the copy precedence number for the backup copy.
  1. Click the General tab.
  2. Select the Use RMAN Restore checkbox.
  3. Click OK.

Oracle Multi Instance Snap Optimization

During a SnapProtect backup, snapshots will be created for each LUN associated with a database. Snapshots will be created even when multiple database instances share one or more LUNs. In such a case, the shared LUNs will be backed up multiple times - once as part of every instance using the LUN. When you enable the optimization and group all instances that share a set of LUNs into a single schedule policy, each shared LUN will be backed up only once. This will reduce the number of snapshots on the storage, thus saving time and storage resources.

Since multiple databases use one set of snapshots for backup, you can revert all the LUNs and databases in a single revert job. Without this optimization, reverting one database may corrupt data files of another database that shares the LUN(s).

Configuring Multiple Instances using a Shared Storage On a Client

Follow the steps given below to configure multiple instances using a shared storage on a client:

  1. Ensure that you have installed the Oracle iDataAgent and MediaAgent on all the source and proxy clients. See Oracle iDataAgent and MediaAgent deployment for step-by-step procedure on how to install the oracle iDataAgent and MediaAgent.
 
  1. Configure the client and instance using the steps described in Getting Started - Oracle Configuration. Ensure that you perform a manual discovery of instances.
 
  1. Create a storage policy to perform SnapProtect operations. See Create a Storage Policy for step-by-step instructions for creating a storage policy. See Create a Snapshot Copy to enable a snapshot on the copy.

  1. Create a schedule policy to perform SnapProtect operations. See Creating an Agent-Specific Data Protection Schedule Policy for step-by-step instructions.
 
  1. Create and configure a new subclient manually as follows:
  • From the CommCell Browser, navigate to Client Computers | <Client>| Oracle.
  • Right-click the <Instance>, point to All Tasks, and then click New Subclient.
  • In the Subclient name box, type the subclient name.
  • Click the SnapProtect Operations tab.
  • Click SnapProtect option to enable SnapProtect backup for the selected subclient.
  • Select the storage array from the Available Snap Engine drop-down list.
  • By default, the system will perform a File System backup copy. Select Use RMAN Movement to Tape if you want to use RMAN backup copy.
    If you are using NoArchiveLog mode Database, do not select Use RMAN Movement to Tape.
  • Select the proxy client from the Use Proxy drop-down list.

See Configuring Proxy for RMAN Backup Copy, if you want to use a proxy for RMAN backup copy.

  1. Select the storage policy from the storage device tab of the subclient created for snaps.
  • From the CommCell Browser, navigate to Client Computers | <Client>| Oracle | <Instance>. 
  • Right-click the subclient created for snaps and then click Properties
  • Click the Storage Device tab.
  • In the Data Storage Policy list, select a Storage Policy name.
  • Click OK to convert the next backup as a full backup.
  • Click OK.
 
  1. You must create and configure a subclient as shown in step-5 for all the instances included in the shared storage on a client.

    Once the subclients for snaps are created for other instances, you must assign a storage policy as shown in step-6 to them.

 
  1. Add all the subclients that are included in this shared storage environment to the schedule policy.

    See Automatic Subclient Creation and Configuration to automatically create and configure subclients using the qscripts.

  1. Ensure that all the following additional requirements are satisfied on all the clients for successful snap or clone operations in a shared LUN environment:
    • All the subclients of a client in the same schedule policy should use the same storage policy.
    • All the subclients of a client in the same schedule policy should use the same proxy client.
    • Use the sMULTIAPPCONSISTENTSNAP registry key set to Y on all the clients to perform a snap for multiple databases in the same job.
    • Configure the nDECLUSTER_LVM registry key on all the nodes and Proxy machine if cluster is configured and set it to 1.
    • If the storage array is EMC clariion or EMC Symmetrix, use the SYMAPI_HOME_DIR registry key to the directory where the Symmetrix SYMAPI library is present on all the clients and restart the Calypso services. In case of EMC Symmetrix, all the source devices should be in the same device group for consistency.
    • Enable the bConsistentActivate registry key on all the clients , if the array is EMC clariion or EMC Symmetrix. For Symmetrix storage array, you can enable the bSymmSmartClone, if you do not want to wait till the background copy completes for clone.
    • REDO Log for No archive log database should be on the volume for which snap should be supported.
    • Data and log volumes should not be shared and each database should have unique paths on the volumes like /data/db1, /data/db2, /log/db1, /log/db2 etc.
    • Execute the following Qscript to enable the multi instance snap optimization:

      qoperation execscript -sn SetKeyIntoGlobalParamTbl.sql -si EnableOracleMultiInstanceSnap -si y -si 1

For clone operations, perform the following in addition to the above configuration:

Automatic Subclient creation and Configuration

Arguments

Client Computer Group Create one client group and add all the clients for which snap/clone jobs will be performed
Hourly/snap schedule policy Create hourly schedule policy which will be used to run snap jobs for every hour
Daily/clone schedule policy Create daily schedule policy which will be used to run clone jobs once for daily.
FullScan (Y/N) If the value is "n", then it is incremental scan and as part of incremental scan it will check only newly created/discovered instances. subclients will be created for them only. Otherwise it will check all the instances in that client group and create subclients if any instance do not have the required subclients.

When you execute the script, the system will check all the instances in that client group and perform the following steps:

  1. If the subclients are not already created, it will create the following two subclients for snap and clone correspondingly:

    <instancename>_snap

    <instancename>_clone

  2. It will assign EMC TimeFinder Snap Snap Engine to <instancename>_snap subclient and EMC TimeFInder Clone to <Instancename>_clone subclient. See Modify Snap Engine for a subclient section to change the Snap Engine.
  3. By default, the system will perform a File System backup copy. Use RMAN Movement to Tape is also selected for these subclients.
    If you are using NoArchiveLog mode Database, disable Use RMAN Movement to Tape.
  4. It will add all the snap subclients(<instancename>_snap) to hourly schedule policy and all clone subclients(<instancename>_clone) to daily schedule policy.

    If you want to exclude instances from creating subclients and associating them to shared schedule policy, update the instance description with exclude with cvsnap schedule. Then the above script will not create subclients for those instances. See Update instance description to change the instance description using command line.

Once you execute the script, assign the storage policy and proxy client to all the subclients using the CommCell Console or command line.

Example:

Executing configuration script:

[root@brahmani64 Base]# ./qoperation execscript -sn OraMultiDBCGSnapConfig -si CVLT -si hourly -si daily -si n
QScript[OraMultiDBCGSnapConfig] CS[leonard64] DB[CommServ] Source[SQL File]

Qscript Output:

Changed database context to 'CommServ'.
Created snap subclients for:
Client [brahmani64] Instance [par1]
Client [brahmani64] Instance [par2]
OraMultiDBCGSnapConfig completed at Aug 8 2012 11:48PM. ErrorCode (0).
Qscript Execution Succeeded!

Modify Subclient using Command Line

Download the update_subclient_template.xml file and save it on the computer from where the command will be executed.

Assign a Storage Policy to a Subclient

Execute the following command from the <Software_Installation_Directory>/Base folder after substituting the parameters and attributes.

qoperation execute -af update_subclient_template.xml -clientName brahmani64 -instanceName par1 -subclientName par1_snap -storagePolicyName snapSP

Assign a Proxy to a Subclient

Make sure that the proxy is configured correctly before assigning a proxy to a subclient.

Execute the following command from the <Software_Installation_Directory>/Base folder after substituting the parameters and attributes.

qoperation execute -af update_subclient_template.xml -clientName brahmani64 -instanceName par1 -subclientName par1_snap -storagePolicyName snapSP -snapToTapeProxyToUse/clientName dbcs

Disable Use RMAN Movement to Tape

You must disable Use RMAN movement to tape for NOARCHIVELOG databases.

Execute the following command from the <Software_Installation_Directory>/Base folder after substituting the parameters and attributes.

qoperation execute -af update_subclient_template.xml -clientName brahmani64 -instanceName par1 -subclientName par1_snap -storagePolicyName snapSP -snapToTapeProxyToUse/clientName dbcs -isRMANEnableForTapeMovement false

Modify Snap Engine for a Subclient

Download the update_snapengine_template.xml file and save it on the computer from where the command will be executed.

Execute the following command from the <Software_Installation_Directory>/Base folder after substituting the parameters and attributes.

qoperation execute -af update_snapengine_template.xml -clientName brahmani64 -instanceName par1 -subclientName par1_snap -storagePolicyName snapSP – snapShotEngineName “EMC CLARiiON Snapview Snap”

Update Instance description

Execute the following command to change the instance description after substituting the parameters and attributes:

[root@brahmani64 Base]#./qoperation execscript -sn SetOracleInstanceProperties.sql -si brahmani64 -si 'Q_ORACLE' -si par1 -si 'User Description' -si 'exclude from cvsnap schedule' -si 1

Configuring Proxy for RMAN backup copy

When you configure a proxy for RMAN backup copy, make sure to satisfy the following requirements:

SnapProtect Backup for Multiple Instances

A snap or clone operation is performed for all the instances at the same time in a shared LUN environment using the schedule policy created specifically for this purpose. You can perform a snap or clone operation immediately or at a scheduled time.

When you perform a SnapProtect backup or a clone operation, the system performs the following:

Use the following steps to perform a SnapProtect backup:

  1. From the CommCell Browser, navigate to Policies | Schedule Policies.
  2. Right-click the <Schedule Policy> in the right pane and click Run Immediately.
  1. You can track the progress of the job from the Job Controller window of the CommCell console.
  1. Once the job is complete, view the job details from the Backup History. Right-click the Schedule Policy and select View Jobs.
  1. Click OK.
  1. Right-click the job to:
  • Browse the databases that were backed up.
  • List Snaps
  • View RMAN Logs.
  • Resubmit the job.
  • View job details.
  • View media associated with the job.
  • View events associated with the job.
  • View or send the log file that is associated with the job.

Scheduling a SnapProtect Backup for all the instances in a shared LUN environment

Use the following steps to schedule a SnapProtect backup for all the instances in a shared LUN environment:

1.
  • From the CommCell Browser, navigate to Policies | Schedule Policies.
  • Right-click the <Schedule Policy> in the right pane and click Edit.
2. Click Add button.
3.
  • Click the Backup Options tab.
  • Click Full.
4. Select the appropriate scheduling options. 

For example:

  • Click Daily.
  • Check the days you want to run the SnapProtect backup job.
  • Change the Start Time to 9:00 PM.
  • Click Options.
5. Select the appropriate advanced schedule options.

For example:

  • Click Start date.
  • Select the end dates or times after which you want the stop the scheduled job.
  • Change the Repeat Times.
  • Specify the Time Zone for the schedule.
  • Click OK.
6.
  • Click OK to close the Backup Task Options dialog box.
  • Click OK to close the Scheduled Policy dialog box.

    The SnapProtect backup job for instances in a shared storage will execute as per the schedule.

 

Restoring a database or datafiles /table spaces from a database

You can restore each database or some of the datafiles/table spaces from one database on a client.

Use the following steps to restore a database:

  1. From the CommCell Browser, navigate to Client Computers | <Client> | Oracle.
  2. Right-click the <Instance>, point to View and then click Backup History.
  3. In the Backup History Filter for <Instance> dialog box, click OK.
  1. Right-click the SnapProtect job you want to restore and click Browse.
  2. In the Browse Options dialog box, click OK.
  1. In the right pane of the Browse window, select an entire instance or the datafiles or tablespaces you want to restore and click Recover All Selected.
  1. In the Restore Options dialog box, click Advanced.
  2. Click the Options tab.
  3. Select None from the Reset Logs list.

    For No archive log database, select Yes from the Reset Logs list as the restore will always be Point-in-time restore and REDO logs which were existing in snap/clone will only be applied. You should perform a full database restore for no archive log database.

  4. Select Switch Database mode for Restore check box.
  5. Click OK.

Revert from a SnapProtect Job

If you perform a revert from a SnapProtect job from a schedule policy, it will revert all the databases which were snapped in that SnapProtect backup job to the same point-in-time. Ensure that you have performed a SnapProtect backup for all the databases which share the same LUNs.

Ensure that both the data and log volumes are reverted for successful revert operation. By default, the data volumes only are reverted. Perform the following to revert the log volumes also in addition to data volumes:

  1. From the CommCell console, navigate to Client Computers | <Client>
  2. Right-click the <client>, and then click Properties.
  3. Click the Registry Key Settings tab.
  4. Click Add.
  5. In the Name box, type sREVERTARCHIVELOG.
  6. In the Location box, type or select OracleAgent from the list.
  7. In the Type box, select Value.
  8. In the Value box, type Y and then click OK.

Use the following steps to revert a SnapProtect job:

  1. From the CommCell Browser, navigate to Client Computers | <Client> | Oracle.
  2. Right-click the <Instance>, point to All Tasks and then click Browse Backup Data.
  3. From the Browse Options dialog box, click OK.
  4. Select the data you want to revert and click Recover All Selected.
   Even if you select one instance, it will revert all the databases that are included in the SnapProtect job.
  1. From the Restore Options dialog box, select Restore Control File.
  2. Click Advanced.
  3. Select the Use hardware revert capability if available option.

    A warning message displaying that the oracle multi instance snap optimization feature is enabled and selecting hardware revert option will result in restoring all the instances which are included in the shared snapprotect backup. The message informs you that the hardware revert can only be performed in-place and it will be automatically selected. The message will also warn you that the selection of revert option will overwrite the entire disk and all the existing data will be lost. Select Yes if you still want to continue. Select No if you do not want to continue.

 

  1. Click Options tab.
  2. Select Yes from the Reset Logs list.
  3. Select Switch Database mode for Restore.
  4. Click OK to confirm the revert operation.
  5. Click OK from the Advanced Restore Options dialog box.
  6. Click Script Preview to verify the instances that are being reverted in the current revert operation.
  7. Click OK to start the revert operation.
      if the database is in mount mode while taking a SnapProtect backup, then the same status is preserved even after the revert operation.

Once a revert is completed, resync the catalog using RMAN to register the new incarnation.

Example:

[oracle@brahmani64 ~]$ export ORACLE_SID=par2

[oracle@brahmani64 ~]$ rman target / catalog snap/snap@test

Recovery Manager: Release 10.2.0.4.0 - Production on Fri Jul 13 10:04:19 2012

Copyright (c) 1982, 2007, Oracle. All rights reserved.

connected to target database: PAR2 (DBID=1259990815)

connected to recovery catalog database

RMAN> resync catalog;

starting full resync of recovery catalog

full resync complete

RMAN>

Backup Copy for Multiple Instances Using a Shared Storage on a Client

Once the SnapProtect jobs are completed, you can perform or schedule backup copy jobs. You can run parallel backup copy for all the SnapProtect jobs which are performed using a schedule policy in one operation. In case of parallel backup copy, mount all the snaps in the first backup copy job itself. The other jobs will use these mount points and backup their corresponding databases.

  1. From the CommCell Browser, navigate to Policies | Storage Policies.
  2. Right-click the <Storage Policy> in the right pane, point to All Tasks and click Run Backup Copy.
  3. Select Number of simultaneous jobs to run from the list.
  4. Click Job Initiation tab.
  5. Select Immediate to perform the backup copy job. You can also click Schedule to perform the job at a scheduled time.
  6. Click OK.

 

See Backup Copy Operations and Restoring Data from Backup Copy for more information on backup copy operations.

Supported Volume Managers

  • Logical Volume Manager
    • All versions supported on AIX and Linux
    • Versions 1.0 and 2.x supported on HP-UX
  • VERITAS Volume Manager (VxVM) 5.0 for AIX, Linux and Solaris
  • Solaris ZFS Mirror
  • Solaris Volume Manager
When using the Solaris Volume Manager, ensure that a complete disk is used for a metaset. Also, ensure that the metaset is owned by single host and the ownership of the metaset is attained before performing the SnapProtect backup operations.

Supported Configurations:

  • One Physical Volume containing one Logical Volume
  • One Physical Volume containing one or more Logical Volumes
  • Multiple Physical Volumes containing one Logical Volume
  • Multiple Physical Volumes containing one or more Logical Volume

The adjacent diagram summarizes the Volume Manager support for SnapProtect backup.

Options not applicable for Oracle SnapProtect

The following options do not apply to SnapProtect backup for Oracle iDataAgent:

Dialog Box TABS/Options Not Applicable
Advanced Backup Options dialog box
  • Delete Archive Logs tab
  • Custom RMAN Script tab
    • Customize Script
Subclient Properties dialog box
  • Archive Delete option in Content tab
  • Log Destinations tab
    • Select ArchiveLog Destinations for Delete
  • Backup Arguments tab (applicable for RMAN backup copy)

Options Not Applicable for Oracle Snap Restore

The following options do not apply to snap restore for Oracle iDataAgent:

Dialog Box TABS/Options Not Applicable
Oracle Restore Options dialog box
  • General tab
    • Duplicate DB
  • Script Preview
Advanced Restore Options  dialog box
  • Customize Script tab
  • Redirect tab
  • Restore tab
    • Restore Archive Log By Log Time
    • Restore Archive Log By Log Serial Number
    • Restore Archive Log to Target Directory
  • Options tab
    • Set DBID
    • Max Open Files (applicable for RMAN backup copy)
    • Validate
    • Disable Oracle Channel restore Failover

Additional Options

Several additional options are available to further refine your backup operations. The following table describes the additional options:

Option Description Related topics
SCSI Reservation SCSI reservation can be enabled for SnapProtect backup for all the agents. Use the registry key nSCSIReserveForSnap to enable SCSI reservation. Enabling SCSI Reservation prevents other applications (SCSI3 compliant) from using the reserved SCSI Device (i.e. the mounted snapshot).
If this option is enabled and the hardware does not support this type of operation, subsequent data protection jobs may fail.
For more information on registry keys, Registry keys
Pre/Post Commands The Pre/Post commands for SnapProtect backup can either be executed on the proxy or the source computer. You can use the Pre/Post Process tab of the Subclient Properties dialog box to select where you wish to execute the Pre/Post commands. SnapProtect backup supports Pre/Post commands for the agents that support it.
Use of Pre/Post Snap commands is not supported when using Data Replicator as the storage array.
For more information on using the Pre/Post commands, see Pre/Post Processes.
View Snapshot Details You can view the details of a snapshot for an agent, job, or a snapshot copy. When you right-click any of these entities, you will be able to browse all the snapshots corresponding to the selected entity.
  1. From the CommCell Browser, right-click the entity that contains the snapshots you want to browse, and click All Tasks | List Snaps.
  2. The Snaps created during SnapProtect operation dialog box displays a list of all the snapshots created for the selected entity and displays important information about each snapshot, including the source mount path, snap mount path, the storage array, and the source client.
  3. Right-click the snapshot and click Details to view the snapshot properties.
 
Select a Job for Backup Copy You can select a specific job for creating backup copy. Once selected, the Move Snap to Tape field for the specific job will be changed to Picked (i.e., the next backup copy operation will move this job to media).
  1. Right-click a storage policy containing SnapProtect backup jobs, and then click View Jobs.
  2. Right-click the job and then click Pick for Backup Copy.
 
Disable a Job for Backup Copy You can prevent a job from being moved to media. You can apply this option to those jobs that were previously selected for moving to media. On selecting this option, the Move Snap to Tape field for the specific job will be changed to Not Picked (i.e., the next backup copy operation will not move this job to media).
  1. Right-click a storage policy containing SnapProtect backup jobs and then click View Jobs.
  2. Right-click the job and then click Do not Backup Copy.
 
Offline Snap Copy Job Summary Report Offline Snap Copy Job Summary Report provides job summary details of backup copy jobs for moving snapshots to media. See Backup Copy Job Summary Report for more details

Back to Top