31
SnapManager ® 3.4 for Oracle ® Installation and Setup Guide for UNIX ® For Data ONTAP ® Operating in 7-Mode NetApp, Inc. 495 East Java Drive Sunnyvale, CA 94089 U.S. Telephone: +1 (408) 822-6000 Fax: +1 (408) 822-4501 Support telephone: +1 (888) 463-8277 Web: www.netapp.com Feedback: [email protected] Part number: 215-10241_A0 November 2015

For Data ONTAP Operating in 7-Mode - NetApp

  • Upload
    others

  • View
    13

  • Download
    0

Embed Size (px)

Citation preview

Page 1: For Data ONTAP Operating in 7-Mode - NetApp

SnapManager® 3.4 for Oracle®

Installation and Setup Guide for UNIX®

For Data ONTAP® Operating in 7-Mode

NetApp, Inc.495 East Java DriveSunnyvale, CA 94089U.S.

Telephone: +1 (408) 822-6000Fax: +1 (408) 822-4501Support telephone: +1 (888) 463-8277Web: www.netapp.comFeedback: [email protected]

Part number: 215-10241_A0November 2015

Page 2: For Data ONTAP Operating in 7-Mode - NetApp
Page 3: For Data ONTAP Operating in 7-Mode - NetApp

Contents

Product overview .......................................................................................... 4SnapManager architecture ........................................................................................... 5

Deployment workflow .................................................................................. 7Preparing for deployment ............................................................................ 8

SnapManager licensing ............................................................................................... 8

Supported configurations ............................................................................................ 9

Supported storage types .............................................................................................. 9

UNIX host requirements ........................................................................................... 10

Configuring databases ................................................................................ 11Configuring the target database ................................................................................. 11

Creating an Oracle database user for the target database .......................................... 12

Creating the repository database instance ................................................................. 12

Creating an Oracle user for the repository database instance ................................... 13

Verifying the Oracle listener configuration ............................................................... 13

Installing SnapManager ............................................................................. 14Setting up SnapManager ........................................................................... 15

Starting the SnapManager server .............................................................................. 15

Accessing the SnapManager user interface ............................................................... 15

Configuring the SnapManager repository ................................................................. 16

Backing up and verifying your databases ................................................ 18SnapManager backup overview ................................................................................ 18

Defining a backup strategy ........................................................................................ 18

Creating a profile for your database .......................................................................... 20

Backing up your database ......................................................................................... 22

Verifying database backups ....................................................................................... 23

Scheduling recurring backups ................................................................................... 24

Where to go next ......................................................................................... 26Copyright information ............................................................................... 27Trademark information ............................................................................. 28How to send comments about documentation and receive update

notifications ............................................................................................ 29Index ............................................................................................................. 30

Table of Contents | 3

Page 4: For Data ONTAP Operating in 7-Mode - NetApp

Product overview

automates and simplifies the complex, manual, and time-consuming processes associated with thebackup, recovery, and cloning of Oracle databases. You can use SnapManager with Data ONTAPSnapMirror technology to create copies of backups on another volume and with Data ONTAPSnapVault technology to archive backups efficiently to disk.

SnapManager integrates with native Oracle technologies such as Oracle Real Application Clusters(Oracle RAC), Automatic Storage Management (ASM), and Direct NFS across FC, iSCSI, and NFSprotocols. Optionally, backups created by using SnapManager can be cataloged with OracleRecovery Manager (RMAN) to preserve the backup information; these backups can be used later inblock-level restore or tablespace point-in-time recovery operations.

SnapManager highlights

SnapManager features seamless integration with Oracle databases on the UNIX host and withNetApp Snapshot, SnapRestore, and FlexClone technologies on the back end. It offers an easy-to-useuser interface (UI) as well as command-line interface (CLI) for administrative functions.

SnapManager enables you to perform the following database operations and manage data efficiently:

• Creating space-efficient backups on primary or secondary storage

SnapManager enables you to back up the data files and archive log files separately.

• Scheduling backups

• Restoring full or partial databases by using a file-based or volume-based restore operation

• Recovering databases by discovering, mounting, and applying archive log files from backups

• Pruning archive log files from archive log destinations when creating backups of only the archivelogs

• Retaining a minimum number of archive log backups automatically by retaining only the backupsthat contain unique archive log files

• Tracking operation details and generating reports

• Verifying backups to ensure that backups are in a valid block format and that none of the backed-up files are corrupted

• Maintaining a history of operations performed on the database profile

A profile contains information about the database to be managed by SnapManager.

• Protecting backups on the secondary and tertiary storage systems.

• Creating space-efficient clones of backups on primary or secondary storage

SnapManager enables you to split a clone of a database.

4

Page 5: For Data ONTAP Operating in 7-Mode - NetApp

SnapManager architectureSnapManager for Oracle includes components that work together to provide a comprehensive andpowerful backup, restore, recovery, and cloning solution for Oracle databases.

SnapDrive for UNIX

SnapManager requires SnapDrive to establish connection with the storage system. You must installSnapDrive for UNIX on every target database host before installing SnapManager.

SnapManager for Oracle

You must install SnapManager for Oracle on every target database host.

You can either use the command-line interface (CLI) or UI from the database host whereSnapManager for Oracle is installed. You can also use the SnapManager UI remotely by using a webbrowser from any system running on an operating system supported by SnapManager.

Note: The supported JRE versions are 1.5, 1.6, and 1.7.

Target database

The target database is an Oracle database that you want to manage using SnapManager byperforming backup, restore, recovery, and clone operations.

The target database can be a standalone, Real Application Clusters (RAC), or reside on OracleAutomatic Storage Management (ASM) volumes. For details about the supported Oracle databaseversions, configurations, operating systems, and protocols, see the NetApp Interoperability MatrixTool.

SnapManager repository

The SnapManager repository resides in an Oracle database and stores metadata about profiles,backups, restore, recovery, and clone. A single repository can contain information about operationsperformed on multiple database profiles.

The SnapManager repository cannot reside in the target database. The SnapManager repositorydatabase and the target database must be online before performing SnapManager operations.

OnCommand Unified Manager Core Package

OnCommand Unified Manager core package integrates the capabilities of Operations Manager,Protection Manager, and Provisioning Manager. It centralizes provisioning, cloning, backup and

Product overview | 5

Page 6: For Data ONTAP Operating in 7-Mode - NetApp

recovery, and disaster recovery (DR) policies. Integrating all of these capabilities makes it possible toperform many management functions from a single tool.

Operations Manager

Operations Manager is the web-based user interface (UI) of the OnCommand Unified Manager corepackage. It is used for day-to-day storage monitoring, issue alerts, and reporting on storage andstorage system infrastructure. SnapManager integration leverages the RBAC capabilities ofOperations Manager.

Protection Manager

Protection Manager gives administrators an easy-to-use management console for quick configurationand control of all SnapMirror and SnapVault operations. The application allows administrators toapply consistent data protection policies, automate complex data protection processes, and poolbackup and replication resources for higher utilization.

The interface for Protection Manager is the NetApp Management Console, the client platform forNetApp management software applications. TheNetApp Management Console runs on a Windows orLinux system that is different from the server on which the OnCommand server is installed. Itenables storage, application, and server administrators to perform daily tasks without having toswitch between different UIs. The applications that run in the NetApp Management Console areProtection Manager, Provisioning Manager, and Performance Advisor.

Primary storage system

SnapManager backs ups the target databases on the primary NetApp storage system.

Secondary storage system

When you enable data protection on a database profile, the backups created on the primary storagesystem by SnapManager are replicated to a secondary NetApp storage system using SnapVault andSnapMirror technologies.

Related information

NetApp Interoperability Matrix Tool

6 | SnapManager for Oracle Installation and Setup Guide for UNIX

Page 7: For Data ONTAP Operating in 7-Mode - NetApp

Deployment workflow

Before you can create backups with SnapManager, you need to first install SnapDrive for UNIX andthen install SnapManager for Oracle.

7

Page 8: For Data ONTAP Operating in 7-Mode - NetApp

Preparing for deployment

Before you deploy SnapManager, you must ensure your storage system and UNIX hosts meet theminimum resource requirements.

Steps

1. Verify that you have the required licenses.

2. Verify the supported configurations.

3. Verify the supported storage types.

4. Verify that your UNIX hosts meet SnapManager requirements.

Related references

SnapManager licensing on page 8

Supported configurations on page 9

Supported storage types on page 9

UNIX host requirements on page 10

SnapManager licensingA SnapManager license and several storage system licenses are required to enable SnapManageroperations. The SnapManager license is available in two licensing models: per-server licensing, inwhich the SnapManager license resides on each database host; and per-storage system licensing, inwhich the SnapManager license resides on the storage system.

The SnapManager license requirements are as follows:

License Description Where required

SnapManager per-server

A host-side license for a specificdatabase host.

Licenses are required only for databasehosts on which SnapManager isinstalled. No SnapManager license isrequired for the storage system.

On the SnapManager host. ASnapManager license is notrequired on primary andsecondary storage systemswhen using per-serverlicensing.

SnapManager per-storage system

A storage-side license that supportsany number of database hosts.

Required only if you are not using aper-server license on the database host.

On primary and secondarystorage systems.

SnapRestore A required license that enablesSnapManager to restore databases.

On primary and secondarystorage systems.

Required on SnapVaultdestination systems to restore afile from a backup.

8

Page 9: For Data ONTAP Operating in 7-Mode - NetApp

License Description Where required

FlexClone An optional license for cloningdatabases.

On primary and secondarystorage systems.

Required on SnapVaultdestination systems whencreating clones from a backup.

SnapMirror An optional license for mirroringbackups to a destination storagesystem.

On primary and secondarystorage systems.

SnapVault An optional license for archivingbackups to a destination storagesystem.

On primary and secondarystorage systems.

Protocols NFS, iSCSI, or FC license is requireddepending on the protocol used.

On primary and secondarystorage systems.

Required on SnapMirrordestination systems to servedata if a source volume isunavailable.

Supported configurationsThe hosts on which you are installing SnapManager must meet the specified software, browser,database, and operating system requirements. You must verify support for your configuration beforeyou install or upgrade SnapManager.

For information about supported configurations, see the Interoperability Matrix tool.

Related information

NetApp Interoperability Matrix Tool

Supported storage typesSnapManager supports a wide range of storage types on both physical and virtual machines. Youmust verify support for your storage type before you install or upgrade SnapManager.

Machine Storage type

Physical server • NFS-connected volumes

• FC-connected LUNs

• iSCSI-connected LUNs

VMware ESX • NFS volumes connected directly to the guest system

• RDM LUNs on the guest operating system

Preparing for deployment | 9

Page 10: For Data ONTAP Operating in 7-Mode - NetApp

UNIX host requirementsYou must install SnapManager for Oracle on every host where an Oracle database you want tobackup is hosted. You must ensure that your hosts meet the minimum requirements for SnapManagerconfiguration.

• You must install SnapDrive on the database host before you install SnapManager.

• You can install SnapManager either on physical or virtual machines.

• You must install the same version of SnapManager on all hosts that share the same repository.

• You must install Oracle patch 13366202 if you are using Oracle databases 11.2.0.2 or 11.2.0.3.

If you are using DNFS, you must also install the patches listed in the My Oracle Support (MOS)report 1495104.1 for maximum performance and stability.

10 | SnapManager for Oracle Installation and Setup Guide for UNIX

Page 11: For Data ONTAP Operating in 7-Mode - NetApp

Configuring databases

You must configure at least two Oracle databases: a target database that you want to back up usingSnapManager; and a repository database to store the target database metadata. The target databaseand the SnapManager repository database must be configured and online before performingSnapManager operations.

Steps

1. Configuring the target database on page 11The target database is an Oracle database that can be configured either as standalone, RealApplication Clusters (RAC), Automatic Storage Management (ASM), or any other supportedcombinations.

2. Creating an Oracle database user for the target database on page 12An Oracle database user is required to log in to the database and perform SnapManageroperations. You must create this user with the sysdba privilege if a user with the sysdba privilegedoes not exist for the target database.

3. Creating the repository database instance on page 12The repository database instance is an Oracle database in which you create the SnapManagerrepository. The repository database instance must be a stand-alone database and cannot be thetarget database.

4. Creating an Oracle user for the repository database instance on page 13An Oracle user is required to log in to and access the repository database instance. You mustcreate this user with connect and resource privileges.

5. Verifying the Oracle listener configuration on page 13The listener is a process that listens for client connection requests. It receives incoming clientconnection requests and manages the traffic of these requests to the database. Before connecting toa target database or repository database instance, you can use the STATUS command to verify thelistener configuration.

Configuring the target databaseThe target database is an Oracle database that can be configured either as standalone, RealApplication Clusters (RAC), Automatic Storage Management (ASM), or any other supportedcombinations.

Step

1. Configure the target database by referring TR-3633.

Related information

NetApp Technical Report 3633: Best Practices for Oracle Databases on NetApp Storage

11

Page 12: For Data ONTAP Operating in 7-Mode - NetApp

Creating an Oracle database user for the target databaseAn Oracle database user is required to log in to the database and perform SnapManager operations.You must create this user with the sysdba privilege if a user with the sysdba privilege does not existfor the target database.

About this task

SnapManager can use any Oracle user with the sysdba privilege that exists for the target database.For example, SnapManager can use the default sys user. However, even if the user exists, you cancreate a new user for the target database and assign the sysdba privilege.

You can also use the OS authentication method wherein the operating system (OS) allows the Oracledatabase to use the credentials that are maintained by the OS to authenticate users to log in to thedatabase and perform SnapManager operations. If you are authenticated by the OS, you can connectto the Oracle database without specifying a user name or password.

Steps

1. Log in to SQL *Plus:

sqlplus '/ as sysdba'

2. Create a new user with an administrator password:

create user user_name identified by admin_password;

user_name is the name of the user you are creating and admin_password is the password thatyou want to assign to the user.

3. Assign the sysdba privilege to the new Oracle user:

grant sysdba to user_name;

Creating the repository database instanceThe repository database instance is an Oracle database in which you create the SnapManagerrepository. The repository database instance must be a stand-alone database and cannot be the targetdatabase.

Before you begin

You must have an Oracle database and a user account to access the database.

Steps

1. Log in to SQL *Plus:

sqlplus '/ as sysdba'

2. Create a new tablespace for the SnapManager repository:

create tablespace tablespace_name datafile ′/u01/app/oracle/oradata/datafile/tablespace_name.dbf′ size 100M autoextend on;tablespace_name is the name of the tablespace.

3. Verify the block size of the tablespace:

select tablespace_name, block_size from dba_tablespaces;

SnapManager requires a minimum 4-K block size for the tablespace.

12 | SnapManager for Oracle Installation and Setup Guide for UNIX

Page 13: For Data ONTAP Operating in 7-Mode - NetApp

Related information

NetApp Technical Report 3761: SnapManager for Oracle: Best Practices

Creating an Oracle user for the repository database instanceAn Oracle user is required to log in to and access the repository database instance. You must createthis user with connect and resource privileges.

Steps

1. Log in to SQL *Plus:

sqlplus '/ as sysdba'

2. Create a new user and assign an administrator password to that user:

create user user_name identified by admin_password default tablespacetablespace_name quota unlimited on tablespace_name;

• user_name is the name of the user you are creating for the repository database.

• admin_password is the password you want to assign to the user.

• tablespace_name is the name of the tablespace created for the repository database.

3. Assign connect and resource privileges to the new Oracle user:

grant connect, resource to user_name;

Verifying the Oracle listener configurationThe listener is a process that listens for client connection requests. It receives incoming clientconnection requests and manages the traffic of these requests to the database. Before connecting to atarget database or repository database instance, you can use the STATUS command to verify thelistener configuration.

About this task

The STATUS command displays basic status information about a specific listener, including asummary of listener configuration settings, listening protocol addresses, and a summary of servicesregistered with that listener.

Step

1. Enter the following command at the command prompt:

lsnrctl STATUS

The default value assigned to the listener port is 1521.

Configuring databases | 13

Page 14: For Data ONTAP Operating in 7-Mode - NetApp

Installing SnapManager

You must install SnapManager on each host where the database you want to backup is running.

Before you begin

You must have installed SnapDrive for UNIX on the database host and established a connection tothe storage system.

For information about how to install SnapDrive and establish connection to storage system, seeSnapDrive for UNIX documentation.

About this task

You must install one SnapManager instance per database host. If you are using a Real ApplicationCluster (RAC) database and want to back up the RAC database, you must install SnapManager on allthe hosts of the RAC database.

Steps

1. Download the SnapManager for Oracle install package for UNIX from the NetApp Support Siteand copy it to the host system.

NetApp Downloads: Software

2. Log in to the database host as the root user.

3. From the command prompt, navigate to the directory where you copied the install package.

4. Make the install package executable:

chmod 755 install_package.bin

5. Install SnapManager:

./ install_package.bin

6. Press Enter to continue.

7. Perform the following steps:

a. Press Enter to accept the default value for operating system group.

The default value for the group is dba.

b. Press Enter to accept the default value for the startup type.

The configuration summary is displayed.

8. Review the configuration summary and press Enter to continue.

SnapManager is installed at

Related tasks

Setting up SnapManager on page 15

Related information

NetApp Documentation: SnapDrive for UNIX

14

Page 15: For Data ONTAP Operating in 7-Mode - NetApp

Setting up SnapManager

You can start SnapManager and access it by using either the user interface (UI) or the command-lineinterface (CLI). After accessing SnapManager, you must create the SnapManager repository beforeperforming any SnapManager operations.

Steps

1. Starting the SnapManager server on page 15You must start the SnapManager server from the target database host.

2. Accessing the SnapManager user interface on page 15You can access the SnapManager user interface (UI) remotely by using a web browser from anysystem running on an operating system supported by SnapManager. You can also access theSnapManager UI from the target database host by running the smogui command.

3. Configuring the SnapManager repository on page 16You must configure the SnapManager repository in the repository database instance. Therepository database stores metadata for databases managed by SnapManager.

Starting the SnapManager serverYou must start the SnapManager server from the target database host.

Step

1. Log in to the target database host and start the SnapManager server:

The following message is displayed: SnapManager Server started on secure portport_number with PID PID_number.

Note: The default port is 27214.

After you finish

You can verify that SnapManager is running correctly:

The following message is displayed: Operation Id operation_ID_number succeeded.

Accessing the SnapManager user interfaceYou can access the SnapManager user interface (UI) remotely by using a web browser from anysystem running on an operating system supported by SnapManager. You can also access theSnapManager UI from the target database host by running the smogui command.

Before you begin

• You must ensure that SnapManager is running.

• You must ensure that the supported operating system and Java are installed on the system whereyou want to access the SnapManager UI.

For information about the supported operating system and Java, see the Interoperability Matrixtool.

15

Page 16: For Data ONTAP Operating in 7-Mode - NetApp

Steps

1. In the web browser window, enter the following:

https://server_name.domain.com:port_number

• server_name is the name of the target database host where SnapManager is installed.

You can also enter the IP address of the target database host.

• port_number is the port on which SnapManager is running.

The default value is 27214.

2. Click the link.

The UI is displayed.

Configuring the SnapManager repositoryYou must configure the SnapManager repository in the repository database instance. The repositorydatabase stores metadata for databases managed by SnapManager.

Before you begin

• You must have created the repository database instance.

• You must have created the Oracle user for the repository database instance with requiredprivileges.

• You must have included the repository database instance details in the tnsnames.ora file.

About this task

You can configure the SnapManager repository either from the SnapManager user interface (UI) orcommand-line interface (CLI). These steps show how to create a repository using the SnapManagerUI. You can also use the CLI if you prefer.

For information about how to create the repository by using CLI, see the SnapManager for OracleAdministration Guide for UNIX.

Steps

1. In the left pane of the SnapManager UI, right-click Repositories.

2. Select Create New Repository and click Next.

3. In the Repository Database Configuration Information window, enter the followinginformation:

In this field... Do this...

User Name Enter the name of the user you created for therepository database instance.

Password Enter the password.

Host Enter the IP address of the host where therepository database instance is created.

Port Enter the port used to connect to therepository database instance.

The default port is 1521.

16 | SnapManager for Oracle Installation and Setup Guide for UNIX

Page 17: For Data ONTAP Operating in 7-Mode - NetApp

In this field... Do this...

Service Name Enter the name that SnapManager uses toconnect to the repository database instance.

Depending on the details included in thetnsnames.ora file, this might be the shortservice name or the fully qualified servicename.

4. In the Perform Repository Add Operation window, review the configuration summary and clickAdd.

If the operation fails, click the Operation Details tab to view what caused the operation to fail.The error details are also captured in the operation log located at /var/log/smo.

5. Click Finish.

The repository is listed in the left pane under the Repositories tree. If you do not see therepository, right-click Repositories and click Refresh.

Related information

SnapManager 3.4 for Oracle Administration Guide for UNIX

Setting up SnapManager | 17

Page 18: For Data ONTAP Operating in 7-Mode - NetApp

Backing up and verifying your databases

After installing SnapManager, you can create a basic backup of your database and verify that backupto ensure it does not contain any corrupt files.

Related concepts

SnapManager backup overview on page 18

Related tasks

Creating a profile for your database on page 20

Backing up your database on page 22

Verifying database backups on page 23

Scheduling recurring backups on page 24

Related references

Defining a backup strategy on page 18

SnapManager backup overviewSnapManager uses NetApp Snapshot technology to create backups of databases. You can use theDBVERIFY utility, or you can use SnapManager to verify the integrity of the backups.

SnapManager backs up a database by creating Snapshot copies of the volumes containing data files,control files, and archive log files. Together, these Snapshot copies comprise a backup set thatSnapManager can use to restore a database.

Defining a backup strategyDefining a backup strategy before creating your backups ensures that you have backups tosuccessfully restore your databases. SnapManager provides flexible granular backup schedule tomeet your Service Level Agreement (SLA).

Note: For SnapManager best practices, see TR 3761.

What mode of SnapManager backup do you need?

SnapManager supports two modes of backups:

Backup mode Description

Online backup Creates a backup of the database when the database is in online state. Thisbackup mode is also called a hot backup.

Offline backup Creates a backup of the database when the database is either in a mounted orshutdown state. This backup mode is also called a cold backup.

What type of SnapManager backup do you need?

SnapManager supports three types of backups:

18

Page 19: For Data ONTAP Operating in 7-Mode - NetApp

Backup type Description

Full backup Creates a backup of the entire database, which includes all the datafiles,control files, and archive log files.

Partial backup Creates a backup of selected datafiles, control files, tablespaces, and archivelog files

Archive log-onlybackup

Creates a backup of only the archive log files.

You must select Backup Archivelogs Separately while creating the profile.

What type of database profile do you need?

SnapManager creates backups based on whether the database profile separates the archive logbackups from the data file backups.

Profile type Description

A single database profile for combinedbackup of data files and archive logs

Allows you to create:

• Full backup containing all the data files, archive logfiles, and control files

• Partial backup containing selected data files,tablespaces, archive log files, and control files

Separate database profiles for archivelog backups and data file backups

Allows you to create:

• Combined backup with different labels for data filebackup and archive log backup

• Data-files-only backup of all the data files along withthe control files

• Partial data-files-only backup of selected data files ortablespaces along with the control files

• Archive-logs-only backup

What naming conventions should be used for Snapshot copies?

Snapshot copies created by backups can follow a custom naming convention. Custom text or built-invariables such as the profile name, the database name, and the database SID provided bySnapManager can be used to create the naming convention. You can create the naming conventionwhile creating the policy.

Note: You must include the smid variable in the naming format. The smid variable creates aunique Snapshot identifier.

The Snapshot copy naming convention can be changed during or after the creation of a profile. Theupdated pattern applies only to Snapshot copies that have not yet been created; existing Snapshotcopies retain the previous pattern.

How long do you want to retain backup copies on the primary storage system and thesecondary storage system?

A backup retention policy specifies the number of successful backups to retain. You can specify theretention policy while creating the policy.

You can select hourly, daily, weekly, monthly, or unlimited as the retention class. For each retentionclass, you can specify the retention count and retention duration, either together or individually.

Backing up and verifying your databases | 19

Page 20: For Data ONTAP Operating in 7-Mode - NetApp

• Retention count determines the minimum number of backups of a particular retention class thatshould be retained.

For example, if backup schedule is daily and retention count is 10, then 10 daily backups areretained.

Note: The maximum number of Snapshot copies that Data ONTAP allows you can retain is255. After it reaches the maximum limit, by default the creation of new Snapshot copies fail.However, you can configure the rotation policy in Data ONTAP to delete older Snapshotcopies.

• Retention duration determines the minimum number of days for which the backup should beretained.

For example, if backup schedule is daily and retention duration is 10, then 10 days of dailybackups are retained.

If you set up SnapMirror replication, the retention policy is mirrored on the destination volume.

Note: For long-term retention of backup copies, you should use SnapVault.

Do you want to verify backup copies using the source volume or a destinationvolume?

If you use SnapMirror or SnapVault, you can verify backup copies using the Snapshot copy on theSnapMirror or SnapVault destination volume rather than the Snapshot copy on the primary storagesystem. Using a destination volume for verification reduces the load on the primary storage system.

Related information

NetApp Technical Report 3761: SnapManager for Oracle: Best Practices

Creating a profile for your databaseYou must create a profile for your database to perform any operation on that database. The profilecontains information about the database and can reference only one database; however, a databasecan be referenced by multiple profiles. A backup that is created using one profile cannot be accessedfrom a different profile, even if both profiles are associated with the same database.

Before you begin

You must ensure that target database details are included in the /etc/oratab file.

About this task

These steps show how to create a profile for your database using the SnapManager UI. You can alsouse the CLI if you prefer.

For information about how to create profiles using the CLI, see the SnapManager for OracleAdministration Guide for UNIX.

Steps

1. From the Repositories tree, right-click the repository or the host and select Create Profile.

2. On the Profile Configuration Information page, enter the custom name and password for theprofile.

3. On the Database Configuration Information page, enter the following information:

20 | SnapManager for Oracle Installation and Setup Guide for UNIX

Page 21: For Data ONTAP Operating in 7-Mode - NetApp

In this field... Do this...

Database Name Enter the name of the database you want tobackup.

Database SID Enter the secure ID (SID) of the database.

The database name and the database SID canbe the same.

Host Enter the IP address of the host where thetarget database resides.

You can also specify the host name if the hostname is specified in the Domain NameSystem (DNS).

Host Account Enter the Oracle user name of the targetdatabase.

The default value for the user is oracle.

Host Group Enter the Oracle user group name.

The default value is dba.

4. On the Database Connection Information page, select one of the following:

Choose this... If you want to...

Use O/S Authentication Use the credentials maintained by the operating system to authenticateusers who access the database.

Use DatabaseAuthentication

Allow Oracle to authenticate an administrative user using password fileauthentication. Enter the appropriate database connection information.

• In the SYSDBA Privileged User Name field, enter the name of thedatabase administrator with administrative privileges.

• In the Password field, enter the password of the databaseadministrator.

• In the Port field, enter the port number used to connect to the hostwhere the database resides.

The default value is .

Use ASM InstanceAuthentication

Allow Automatic Storage Management (ASM) database instance toauthenticate an administrative user. Enter the appropriate ASM instanceauthentication information.

• In the SYSDBA/SYSASM Privileged User Name field, enter theuser name of the ASM instance administrator with administrativeprivileges.

• In the Password field, enter password of the administrator.

Note: You can select the ASM authentication mode only if you have an ASM instance on thedatabase host.

5. On the RMAN Configuration Information page, select one of the following:

Choose this... If...

Do not use RMAN You are not using RMAN to manage backup and restore operations.

Use RMAN via the controlfile

You are managing the RMAN repository using control files.

Backing up and verifying your databases | 21

Page 22: For Data ONTAP Operating in 7-Mode - NetApp

Choose this... If...

Use RMAN via RecoveryCatalog

You are managing the RMAN repository using recovery catalog database.

Enter the user name who has access to recovery catalog database,password, and the Oracle net service name of the database that managesthe Transparent Network Substrate (TNS) connection.

6. On the Snapshot Naming Information page, select the variables to specify a naming format forthe Snapshot copy.

You must include the smid variable in the naming format. The smid variable creates a uniqueSnapshot identifier.

7. On the Policy Settings page, perform the following:

a. Enter the retention count and duration for each retention class.

b. From the Protection Policy drop-down list, select the Protection Manager policy.

c. If you want to back up archive logs separately, select the Backup Archivelogs Separatelycheckbox, specify the retention, and select the protection policy.

You can select a policy which is different from the policy associated for datafiles. Forexample, if you have selected one of the Protection Manager policy for datafiles, you canselect a different Protection Manager policy for archive logs.

8. On the Configure Notification Settings page, specify the email notification settings.

9. On the History Configuration Information page, select one of the options to maintain thehistory of SnapManager operations.

10. On the Perform Profile Create Operation page, verify the information and click Create.

11. Click Finish to close the wizard.

If the operation fails, click Operation Details to view what caused the operation to fail.

Related information

SnapManager 3.4 for Oracle Administration Guide for UNIX

Backing up your databaseAfter creating a profile, you must back up your database. You can schedule recurring backups afterthe initial backup and verification.

About this task

These steps show how to create a backup of your database using the SnapManager user interface.You can also use the command-line interface (CLI) if you prefer.

For information about how to create backups using CLI, see the SnapManager for OracleAdministration Guide for UNIX.

Steps

1. From the Repositories tree, right-click the profile containing the database you want to back up,and select Backup.

2. In Label, enter a custom name for the backup.

You must not include spaces or special characters in the name. If you do not specify a name,SnapManager automatically creates a backup label.

22 | SnapManager for Oracle Installation and Setup Guide for UNIX

Page 23: For Data ONTAP Operating in 7-Mode - NetApp

From SnapManager 3.4, you can modify the backup label created automatically by SnapManager.You can edit the override.default.backup.pattern andnew.default.backup.pattern configuration variables to create your own default backuplabel pattern.

3. Select Allow startup or shutdown of database, if necessary to modify the state of the database,if required.

This option ensures that if the database is not in the required state to create a backup,SnapManager automatically brings the database to the desired state to complete the operation.

4. On the Database, Tablespaces or Datafiles to Backup page, perform the following:

a. Select Backup Datafiles to back up either the full database, selected data files, or selectedtablespaces.

b. Select Backup Archivelogs to back up the archive log files separately.

c. Select Prune Archivelogs if you want to delete the archive log files from the active filesystem that is already backed up.

Note: If Flash Recovery Area (FRA) is enabled for archive log files, then SnapManagerfails to prune the archive log files.

d. Select Protect the backup if you want to enable backup protection.

This option is enabled only if the protection policy was selected while creating the profile.

e. Select Protect Now if you want to protect the backup immediately to the secondary storageoverriding Protection Manager's protection schedule.

f. From the Type drop-down list, select the type of backup (offline or online) you want to create.

If you select Auto, SnapManager creates a backup based on the current state of the database.

g. From the Retention Class drop-down list, select the retention class.

h. Select the Verify backup using the Oracle DBVERIFY utility check box if you want toensure that the backed-up files are not corrupted.

5. On the Task Enabling page, specify whether you want to perform tasks before and after backupoperations are completed.

6. On the Perform Backup Operation page, verify the information and click Backup.

7. Click Finish to close the wizard.

If the operation fails, click Operation Details to view what caused the operation to fail.

Related information

SnapManager 3.4 for Oracle Administration Guide for UNIX

Verifying database backupsYou can verify the backup of your database to ensure that the backed-up files are not corrupted.

About this task

If you did not select the Verify backup using the Oracle DBVERIFY utility check box whilecreating a backup, you must perform these steps manually to verify the backup. However, if youselected the check box, SnapManager automatically verifies the backup.

Backing up and verifying your databases | 23

Page 24: For Data ONTAP Operating in 7-Mode - NetApp

Steps

1. From the Repositories tree, select the profile.

2. Right-click the backup that you want to verify, and select Verify.

3. Click Finish.

If the operation fails, click Operation Details to view what caused the operation to fail.

In the Repository tree, right-click the backup, and then click Properties to view the results of theverify operation.

After you finish

You can use backed-up files to perform restore operations. For information about how to performrestore operations using the SnapManager user interface (UI), see the Online Help. If you want to usethe command-line interface (CLI) to perform restore operations, see the SnapManager for OracleAdministration Guide for UNIX.

Related information

SnapManager 3.4 for Oracle Administration Guide for UNIX

Scheduling recurring backupsYou can schedule backup operations so that the backups are initiated automatically at regularintervals. SnapManager allows you to schedule backups on an hourly, daily, weekly, monthly, or one-time basis.

About this task

You can assign multiple backup schedules for a single database. However, when scheduling multiplebackups for the same database, you must ensure that the backups are not scheduled at the same time.

These steps show how to create a backup schedule for your database using the SnapManager userinterface (UI). You can also use the command-line interface (CLI) if you prefer. For informationabout how to schedule backups using the CLI, see the SnapManager for Oracle Administration Guidefor UNIX.

Steps

1. From the Repositories tree, right-click the profile containing the database for which you want tocreate a backup schedule, and select Schedule Backup.

2. In Label, enter a custom name for the backup.

You must not include spaces or special characters in the name. If you do not specify a name,SnapManager automatically creates a backup label.

From SnapManager 3.4, you can modify the backup label created automatically by SnapManager.You can edit the override.default.backup.pattern andnew.default.backup.pattern configuration variables to create your own default backuplabel pattern.

3. Select Allow startup or shutdown of database, if necessary to modify the state of the database,if required.

This option ensures that if the database is not in the required state to create a backup,SnapManager automatically brings the database to the desired state to complete the operation.

4. On the Database, Tablespaces or Datafiles to Backup page, perform the following:

24 | SnapManager for Oracle Installation and Setup Guide for UNIX

Page 25: For Data ONTAP Operating in 7-Mode - NetApp

a. Select Backup Datafiles to back up either the full database, selected data files, or selectedtablespaces.

b. Select Backup Archivelogs to back up the archive log files separately.

c. Select Prune Archivelogs if you want to delete the archive log files from the active filesystem that is already backed up.

Note: If Flash Recovery Area (FRA) is enabled for archive log files, then SnapManagerfails to prune the archive log files.

d. Select Protect the backup if you want to enable backup protection.

This option is enabled only if the protection policy was selected while creating the profile.

e. Select Protect Now if you want to protect the backup immediately to the secondary storageoverriding Protection Manager's protection schedule.

f. From the Type drop-down list, select the type of backup (offline or online) you want to create.

If you select Auto, SnapManager creates a backup based on the current state of the database.

g. From the Retention Class drop-down list, select the retention class.

h. Select the Verify backup using the Oracle DBVERIFY utility check box if you want toensure that the backed-up files are not corrupted.

5. In the Schedule Name field, enter a custom name of the schedule.

You must not include spaces in the name.

6. On the Configure Backup Schedule page, perform the following:

a. From the Perform this operation drop-down list, select the frequency of the backupschedule.

b. In the Start Date field, specify the date when you want to initiate the backup schedule.

c. In the Start Time field, specify the time when you want to initiate the backup schedule.

d. Specify the interval in which backups will be created.

For example, if you have selected the frequency as hourly and specify the interval as 2, thenbackups will be scheduled every 2 hours.

7. On the Task Enabling page, specify whether you want to perform tasks before and after backupoperations are completed.

8. On the Perform Backup Schedule Operation page, verify the information and click Schedule.

9. Click Finish to close the wizard.

If the operation fails, click Operation Details to view what caused the operation to fail.

Related information

SnapManager 3.4 for Oracle Administration Guide for UNIX

Backing up and verifying your databases | 25

Page 26: For Data ONTAP Operating in 7-Mode - NetApp

Where to go next

After installing SnapManager and successfully creating a backup, you can use SnapManager toperform restore, recovery, and cloning operations. In addition, you might want to find informationabout other SnapManager features such as scheduling, managing SnapManager operations, andmaintaining a history of operations.

You can find more information about these features as well as release-specific information forSnapManager in the following documentation, all of which is available on the NetApp Support.

• SnapManager 3.4 for Oracle Administration Guide for UNIXDescribes how to configure and administer SnapManager for Oracle. Topics include how toconfigure, back up, restore, and clone databases, perform secondary protection, plus anexplanation of CLI commands and instructions on how to upgrade and uninstall the product.

• SnapManager 3.4 for Oracle Release NotesDescribes new features, fixed issues, important cautions, known issues, and limitations forSnapManager for Oracle.

• SnapManager for Oracle Online HelpDescribes the step-by-step procedures for performing different SnapManager operations using theSnapManager UI.

Note: The Online Help is integrated with the SnapManager UI and is not available on theSupport Site.

• NetApp Technical Report 3761: SnapManager for Oracle: Best PracticesDescribes SnapManager for Oracle best practices.

• NetApp Technical Report 3633: Best Practices for Oracle Databases on NetApp StorageDescribes best practices to configure Oracle databases on NetApp storage system.

Related information

NetApp Support

NetApp Documentation: Product Library A-Z

26

Page 27: For Data ONTAP Operating in 7-Mode - NetApp

Copyright information

Copyright © 1994–2015 NetApp, Inc. All rights reserved. Printed in the U.S.

No part of this document covered by copyright may be reproduced in any form or by any means—graphic, electronic, or mechanical, including photocopying, recording, taping, or storage in anelectronic retrieval system—without prior written permission of the copyright owner.

Software derived from copyrighted NetApp material is subject to the following license anddisclaimer:

THIS SOFTWARE IS PROVIDED BY NETAPP "AS IS" AND WITHOUT ANY EXPRESS ORIMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIEDWARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE,WHICH ARE HEREBY DISCLAIMED. IN NO EVENT SHALL NETAPP BE LIABLE FOR ANYDIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIALDAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTEGOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING INANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THEPOSSIBILITY OF SUCH DAMAGE.

NetApp reserves the right to change any products described herein at any time, and without notice.NetApp assumes no responsibility or liability arising from the use of products described herein,except as expressly agreed to in writing by NetApp. The use or purchase of this product does notconvey a license under any patent rights, trademark rights, or any other intellectual property rights ofNetApp.

The product described in this manual may be protected by one or more U.S. patents, foreign patents,or pending applications.

RESTRICTED RIGHTS LEGEND: Use, duplication, or disclosure by the government is subject torestrictions as set forth in subparagraph (c)(1)(ii) of the Rights in Technical Data and ComputerSoftware clause at DFARS 252.277-7103 (October 1988) and FAR 52-227-19 (June 1987).

27

Page 28: For Data ONTAP Operating in 7-Mode - NetApp

Trademark information

NetApp, the NetApp logo, Go Further, Faster, AltaVault, ASUP, AutoSupport, Campaign Express,Cloud ONTAP, Clustered Data ONTAP, Customer Fitness, Data ONTAP, DataMotion, Fitness, FlashAccel, Flash Cache, Flash Pool, FlashRay, FlexArray, FlexCache, FlexClone, FlexPod, FlexScale,FlexShare, FlexVol, FPolicy, GetSuccessful, LockVault, Manage ONTAP, Mars, MetroCluster,MultiStore, NetApp Insight, OnCommand, ONTAP, ONTAPI, RAID DP, RAID-TEC, SANtricity,SecureShare, Simplicity, Simulate ONTAP, Snap Creator, SnapCenter, SnapCopy, SnapDrive,SnapIntegrator, SnapLock, SnapManager, SnapMirror, SnapMover, SnapProtect, SnapRestore,Snapshot, SnapValidator, SnapVault, StorageGRID, Tech OnTap, Unbound Cloud, and WAFL andother names are trademarks or registered trademarks of NetApp, Inc., in the United States, and/orother countries. All other brands or products are trademarks or registered trademarks of theirrespective holders and should be treated as such. A current list of NetApp trademarks is available onthe web at http://www.netapp.com/us/legal/netapptmlist.aspx.

28

Page 29: For Data ONTAP Operating in 7-Mode - NetApp

How to send comments about documentation andreceive update notifications

You can help us to improve the quality of our documentation by sending us your feedback. You canreceive automatic notification when production-level (GA/FCS) documentation is initially released orimportant changes are made to existing production-level documents.

If you have suggestions for improving this document, send us your comments by email to [email protected]. To help us direct your comments to the correct division, include in thesubject line the product name, version, and operating system.

If you want to be notified automatically when production-level documentation is released orimportant changes are made to existing production-level documents, follow Twitter account@NetAppDoc.

You can also contact us in the following ways:

• NetApp, Inc., 495 East Java Drive, Sunnyvale, CA 94089 U.S.

• Telephone: +1 (408) 822-6000

• Fax: +1 (408) 822-4501

• Support telephone: +1 (888) 463-8277

29

Page 30: For Data ONTAP Operating in 7-Mode - NetApp

Index

A

accessingSnapManager UI 15

architectureof SnapManager for Oracle 5

B

backup modeoffline backups 18online backups 18retention class

number of backups 18number of days 18

backup typesarchive log-only backups 18full backups 18partial backups 18

backupscreating for databases 22creating scheduling in SnapManager for Oracle 24verifying 23

C

commentshow to send feedback about documentation 29

componentsof SnapManager for Oracle 5

configurationworkflow 7

configurationsverifying support for systems 9

configuringrepositories 16target databases 11

creatingdatabase profiles 20repository database instances 12

creating Oracle usersfor repository database instances 13

D

database backupsverifying 23

database profilescreating 20

databasesbacking up 22backup overview 18backup strategies, SnapManager for Oracle 18creating scheduled backups in SnapManager forOracle 24Oracle 11repository 11target 11

databases, metadataconfiguring the repository 16role of the repository 16

deploymentworkflow 7

documentationabout cloning operations 26about restore and recovery operations 26additional information about administeringSnapManager 26how to receive automatic notification of changes to29how to send feedback about 29

F

feedbackhow to send comments about documentation 29

H

hostsrequirements 10

I

IMTusing to verify support for system configurations 9verifying host configurations 10

informationhow to send feedback about improvingdocumentation 29

installationworkflow 7

installingprerequisites 14SnapManager for Oracle 14

interfacesCLI 4UI 4

Interoperability MatrixSee IMT

L

licensingfor SnapManager for Oracle 8for storage systems 8

listenersverifying the configuration of 13

M

metadata, databasesconfiguring the repository 16role of the repository 16

30 | SnapManager for Oracle Installation and Setup Guide for UNIX

Page 31: For Data ONTAP Operating in 7-Mode - NetApp

O

Oracle listenersverifying the configuration of 13

P

per-server licensingrequirements for SnapManager for Oracle 8

per-storage system licensingrequirements for SnapManager for Oracle 8

prerequisitesfor installing SnapManager for Oracle 14

profiles, databasecreating 20

R

recurring backupsscheduling in SnapManager for Oracle 24

repositoriesconfiguring 16

repository database instancescreating 12creating Oracle users for 13

requirementsfor deploying SnapManager 8for hosts 10

S

SnapManagerconfiguring repository databases 11configuring target databases 11

SnapManager for Oraclebackup overview 18backup strategies 18installing 14

SnapManager serverstarting 15

SnapManager UIaccessing 15

Snapshot copiesnaming conventions of 18

starting

SnapManager server 15storage types

supported by SnapManager 9suggestions

how to send feedback about documentation 29support

storage types 9verifying system configurations 9

system configurationsverifying support for 9

T

target database hostsstarting SnapManager server from 15

target databasesconfiguring 11creating Oracle database users for 12verifying the listener configuration of 13

twitterhow to receive automatic notification ofdocumentation changes 29

U

UIaccessing 15

userscreating for repository database instances 13creating for target databases 12

V

verifyingbackups 23listener configurations 13

W

workflowsconfiguration 7deployment 7installation 7

Index | 31