EMC® Avamar® Plug-in for Oracle Backup and Restore ... backups and restores with Oracle Enterprise

  • View
    250

  • Download
    4

Embed Size (px)

Text of EMC® Avamar® Plug-in for Oracle Backup and Restore ... backups and restores with Oracle...

  • TECHNICAL NOTE

    This technical note describes how the Avamar Plug-in for Oracle integrates with Oracle Enterprise Manager to enable you to use the features from Oracle Enterprise Manager Database Control to manage Oracle database backups and restores. Topics include:

    Revision history ........................................................................................................ 2 Purpose .................................................................................................................... 2 Audience .................................................................................................................. 2 Related documentation............................................................................................. 2 Overview................................................................................................................... 2 Managing backups and restores with Oracle Enterprise Manager............................... 3

    EMC Avamar Plug-in for OracleBackup and Restore Management with Oracle Enterprise ManagerRelease 7.0

    Technical NoteP/N 302-000-868REV 01

    April 10, 2014

  • Revision history

    Revision history

    The following table presents the revision history of this document.

    Purpose

    The purpose of this technical note is to provide high-level details about how the Oracle Enterprise Manager integrates with the Avamar Plug-in for Oracle to provide backups, restores, and management of Oracle database servers.

    This technical note explains how to use features from the Oracle Enterprise Manager Database Control to back up Oracle database servers to an Avamar server, restore backups from the Avamar server, and perform other management tasks such as cross-checking a database, deleting backups, changing a backup to unavailable, and validating a backup.

    Audience

    This technical note is intended for use by solution architects, administrators, and support staff who plan and deploy the Avamar Plug-in for Oracle. Such personnel should be familiar with Avamar architecture as well as backup and restore practices.

    Related documentation

    The following EMC publications provide additional information:

    EMC Avamar for Oracle User Guide EMC Avamar Administration Guide EMC Avamar Release Notes

    Overview

    Oracle Enterprise Manager Database Control is a web-based interface that enables you to perform administrative tasks for Oracle databases. The Avamar Plug-in for Oracle integrates with the Oracle Enterprise Manager Database Control interface to enable you to back up and restore Oracle databases, crosscheck database backups, delete expired backups, schedule database backups, and other activities. The Oracle website and the Oracle Enterprise Manager Database Control online help provides more information about these features.

    Revision Date Description

    01 April 10, 2014 Initial release.

    2 EMC Avamar Plug-in for Oracle Backup and Restore Management with Oracle Enterprise Manager Technical Note

  • Managing backups and restores with Oracle Enterprise Manager

    Managing backups and restores with Oracle Enterprise Manager

    The Oracle Enterprise Manager Database Control interface provides many features, which enable you to back up, restore, and manage Oracle databases. The instructions in this technical note focus, in particular, on the options in the Manage section of the Availability tab. The functions in the Manage section include:

    Schedule Backup Manager current Backups Backup Reports Manage Restore Point Perform Recovery View and Manage Transactions

    Before you can use the Oracle Enterprise Manager Database Control to manage Avamar Plug-in for Oracle backups and restores, you must configure automatic channels from RMAN. Configuring RMAN channels on page 3 provides instructions.

    You also need a user account with SYSDBA privileges to log in to the Oracle Enterprise Manager. Typically, you can use the sys user. Or, you can create a user with SYSDBA privileges by typing the following commands from the SQL*Plus prompt:

    SQL> create user backupuser identified by backuppasswd;SQL> grant sysdba to backupuser

    Configuring RMAN channels

    Use the RMAN configure command to configure RMAN automatic channels for database backups and restores you perform with the Oracle Enterprise Manager.

    Use the --nocache option when you configure automatic channels. The --nocache option disables the Avamar client-side cache during backup and restore operations. Backups that you store on a Data Domain system must use the --nocache option.

    The following output shows the configuration requirements that the environment must meet before you perform backups and restores with the Oracle Enterprise Manager:

    RMAN> show all;RMAN configuration parameters for database with db_unique_name SPLDB

    are:CONFIGURE RETENTION POLICY TO REDUNDANCY 1; # defaultCONFIGURE BACKUP OPTIMIZATION OFF; # defaultCONFIGURE DEFAULT DEVICE TYPE TO DISK; # defaultCONFIGURE CONTROLFILE AUTOBACKUP ON;CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE 'SBT_TAPE' TO

    'CONTROLFILE.spldb.%F';CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; #

    defaultCONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO BACKUPSET; #

    defaultCONFIGURE DEVICE TYPE SBT_TAPE PARALLELISM 1 BACKUP TYPE TO BACKUPSET;

    # defaultCONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # defaultCONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE SBT_TAPE TO 1; #

    default

    EMC Avamar Plug-in for Oracle Backup and Restore Management with Oracle Enterprise Manager Technical Note 3

  • Managing backups and restores with Oracle Enterprise Manager

    CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # defaultCONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE SBT_TAPE TO 1; #

    defaultCONFIGURE CHANNEL DEVICE TYPE 'SBT_TAPE' PARMS

    "SBT_LIBRARY=/usr/local/avamar/lib/libobk_avamar.so" FORMAT '%d_%U' SEND '"--prefix=11g/spldb/" "--bindir=/usr/local/avamar/bin" "--flagfile=/home/automation/oracle/rman/avtar-flags.txt" "--nocache"';

    CONFIGURE MAXSETSIZE TO UNLIMITED; # defaultCONFIGURE ENCRYPTION FOR DATABASE OFF; # defaultCONFIGURE ENCRYPTION ALGORITHM 'AES128'; # defaultCONFIGURE COMPRESSION ALGORITHM 'BASIC' AS OF RELEASE 'DEFAULT'

    OPTIMIZE FOR LOAD TRUE ; # defaultCONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # defaultCONFIGURE SNAPSHOT CONTROLFILE NAME TO

    '/home/oracle/app/oracle/product/11.2.0/dbhome_1/dbs/snapcf_spldb.f'; # default

    Logging in to the Oracle Enterprise Manager

    The following procedure provides instructions for starting the dbconsole and the Oracle Enterprise Manager interface. The following procedure uses the sys user to log in to the Oracle Enterprise Manager. You can use any user account that has SYSDBA privileges.

    For a RAC database, the dbconsole service can run from any RAC node.

    Before you begin, ensure that the Oracle listener is running.

    1. Start the dbconsole:

    On a Windows system, open the Command Prompt and type the following commands:

    set ORACLE_SID=SIDemctl start dbconsole

    On a Linux system, open a command shell and type the following commands:

    export ORACLE_SID=SIDemctl start dbconsole

    Output similar to the following output appears:

    Oracle Enterprise Manager 11g Database Control Release 11.2.0.1.0Copyright (c) 1996, 2009 Oracle Corporation. All rights reserved.https://oracleoem.bgl.avamar.emc:5500/em/console/aboutApplicationStarting Oracle Enterprise Manager 11g Database Control ........ started.------------------------------------------------------------------Logs are generated in directory /home/oracle/app/oracle/product/11.2.0/dbhome_1/oracleoem.bgl.avamar.emc_spldb/sysman/log[oracle@oracleoem ~]$

    The emctl start dbconsole command starts the dbconsole process for the database that is identified by the SID (system ID). The output for the emctl start dbconsole command contains a port number. In the example output, the port number is 5500.

    4 EMC Avamar Plug-in for Oracle Backup and Restore Management with Oracle Enterprise Manager Technical Note

  • Managing backups and restores with Oracle Enterprise Manager

    2. To start the Oracle Enterprise Manager, open a web browser and type the following URL:

    From the Oracle host, type the following command:

    https://localhost:port_number/em

    From a system other than the Oracle host, type the following command:

    https://host_name: port_number/EM

    where:

    port_number is the port number that the output from the emctl start dbconsole command shows.

    host_name is the hostname of the computer.

    The Login screen appears.

    3. Type sys in the User Name field.

    4. Type the password for the sys user in the Password field.

    5. Select SYSDBA from the Connect As list, and then click Login.

    The disclaimer message appears in the Oracle Enterprise Manager.

    6. Click OK.

    The Home page appears.

    Performing a backup

    The Schedule Backup option on the Availability page enables you to schedule a backup.

    1. Click the Availability tab.

    The Availability page opens.

    EMC Avamar Plug-in for Oracle Backup and Restore Management with Oracle Enterprise Manager Technical Note 5

  • Managing backups and restores with Oracle Enterprise Manager

    2. Under Manage, click Schedule Backup.

    The Schedule Backup page opens and displays backup options.

    3. Under the Customized Backup heading, select an object for the backup.

    4. Click Scheduled Customized Backup.

    6 EMC Avamar Plug-in for Oracle Backup and Restore Management with Oracle Enterprise Manager Technical Note