oracle rman tech note

14
O r acl e R M AN T ec h N ot e (Cover 10G and 11G for CIFS and NFS) Applications Engineering Data Domain LLC 2421 Mission College Boulevard, Santa Clara, CA 95054 866-WE-DDUPE; 408-980-4800 Version 1 Revision B August 16, 2011 Data Domain Proprietary and Confident ial

Upload: swapnil-yeole

Post on 04-Apr-2018

225 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Oracle RMAN Tech Note

7/29/2019 Oracle RMAN Tech Note

http://slidepdf.com/reader/full/oracle-rman-tech-note 1/14

Oracle RMAN Tech Note

(Cover 10G and 11Gfor CIFS and NFS)

Applications Engineering

Dat a Domain LLC

2421 Mission College Boulevard, Santa Clara, CA 95054

866-WE-DDUPE; 408-980-4800Version 1 Revision B

August 16, 2011

Data Domain Propr ietary and Confident ia l

Page 2: Oracle RMAN Tech Note

7/29/2019 Oracle RMAN Tech Note

http://slidepdf.com/reader/full/oracle-rman-tech-note 2/14

2

Page 3: Oracle RMAN Tech Note

7/29/2019 Oracle RMAN Tech Note

http://slidepdf.com/reader/full/oracle-rman-tech-note 3/14

3

Copyright © 2011 EMC Corporation. All Rights Reserved.

EMC believes the information in this publication is accurate as of its publication date. Theinformation is subject to change without notice.

THE INFORMATION IN THIS PUBLICATION IS PROVIDED "AS IS." EMCCORPORATION MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KINDWITH RESPECT TO THE INFORMATION IN THIS PUBLICATION, AND

SPECIFICALLY DISCLAIMS IMPLIED WARRANTIES OF MERCHANTABILITY ORFITNESS FOR A PARTICULAR PURPOSE.

Use, copying, and distribution of any EMC software described in this publicationrequires an applicable software license.

EMC, Data Domain, and Global Compression are registered trademarks or trademarks ofEMC Corporation in the United States and/or other countries.

All other trademarks used herein are the property of their respective owners.

Page 4: Oracle RMAN Tech Note

7/29/2019 Oracle RMAN Tech Note

http://slidepdf.com/reader/full/oracle-rman-tech-note 4/14

Oracle RMAN Tech Note (Cover 10G and 11G for CIFS/NFS) 4

Oracle RMAN Tech Note (Cover 10G and

11G for CIFS/NFS)

EMC Data Domain expects users to customize installation of third-party software for useat a particular site, but EMC Data Domain is not responsible for the usability of third-party software after installation.

This document covers the topics shown in the following table:

Related Documents Page 5

Introduction Page 6

Specific Configuration Settings for a Data Domain Controller Page 6

Discovery and Configuration of the Controller Page 6

Backup Page 7

Restore Page 11

Replication Page 14

Configuration Checklist Page 14

Advanced Functionality Page 14

Page 5: Oracle RMAN Tech Note

7/29/2019 Oracle RMAN Tech Note

http://slidepdf.com/reader/full/oracle-rman-tech-note 5/14

Oracle RMAN Tech Note (Cover 10G and 11G for CIFS/NFS) 5

Related Documents

Data Domain Documents

The Documentation page at https://my.datadomain.com/documentation providesaccess to three categories of documents that are related to use of Data Domain products:

• End user documents, under Product Documentation.

• Documents about how to integrate Data Domain systems with third party backupapplications, under Integration Documentation.

• Matrices that show which components are compatible with each other, underCompatibility Matrices.

View Data Domain documents

1. Log into the support portal at: https://my.datadomain.com/documentation.

2. To view user documents, click Product Documentation and then perform the

following steps:a. Select the Data Domain model from the Platform list and click View.

b. On the row for the correct Data Domain operating system (DD OS) version, clickView under Documentation.

c. Click the desired title.

3. To view integration-related documents, perform the following steps:

a. Click Integration Documentation.

b. Select the vendor from the Vendor menu.

c. Select the desired title from the list and click View.4. To view compatibility matrices, perform the following steps.

a. Click Compatibility Matrices.

b. Select the desired title from Product menu and click View.

Oracle Specif ic Documents

You can access Oracle’s documentation for Oracle DB installation and administration atthe folowing:

http://www.oracle.com/technology/documentation/database10gr2.html

http://www.oracle.com/pls/db102/homepage

http://www.oracle.com/pls/db111/db111.homepage

Page 6: Oracle RMAN Tech Note

7/29/2019 Oracle RMAN Tech Note

http://slidepdf.com/reader/full/oracle-rman-tech-note 6/14

6 Oracle RMAN Tech Note (Cover 10G and 11G for CIFS/NFS)

Introduction

This document provides simple, concise steps and examples to enable the configurationof a backup and restore application with a Data Domain contoller. This tech note wascreated as a companion to Oracle’s RMAN documentation and assumes that OracleDatabase and RMAN are already installed.

Specific Configuration Settings for a Data DomainController

Restrictions

• RMAN on Windows requires qualified name of the Data Domain system path. IP anddrive mapping to the system backup destination path is not supported.

• RMAN restore requires root permission to directory above the Disk Backup Location.

• Secondary controller for replication must be in WORKGROUP mode.

• Limit the number of files, including directories, in a directory to 1000. Any more thanthis can lead to undesired behavior from the application's perspective, for example,timeouts and operational failures.

Discovery and Configuration of the Controller

The following examples assume Oracle 10g has been installed and configured. To verifyaccess to the Disk Backup Location, follow the steps below:

1. From Oracle Enterprise Manager, access the database.

2. Select Database / Maintenance / Configure Backup Settings.

3. Input the Disk Backup Location.

4. Specify the Host Credentials: Username and Password.

5. Select Test Disk Backup.

6. Test backup should be successful, as shown in Figure 1 .

Page 7: Oracle RMAN Tech Note

7/29/2019 Oracle RMAN Tech Note

http://slidepdf.com/reader/full/oracle-rman-tech-note 7/14

Oracle RMAN Tech Note (Cover 10G and 11G for CIFS/NFS) 7

Figure 1: Test Disk Backup

Backup

Note: Consult an Oracle Database Administrator to configure the type of Oracle backupthat is required.

The following examples are Oracle RMAN backup that is attempted on a Windowssystem using the Oracle Enterprise Manager Backup and Restore Wizards.

Example of Backup

This section contains a brief discussion on how to initiate an RMAN backup with Oracle

Enterprise Manager Backup Wizard. Consult the Oracle Administration Guide on theOracle website for details.

1. From the Oracle Enterprise Manager, select Database / Configure Backup Settings.

2. Determine the Backup Policy that is required. An example of a Backup Policy isshown in Figure 2.

Page 8: Oracle RMAN Tech Note

7/29/2019 Oracle RMAN Tech Note

http://slidepdf.com/reader/full/oracle-rman-tech-note 8/14

8 Oracle RMAN Tech Note (Cover 10G and 11G for CIFS/NFS)

Figure 2: Example of an Oracle Backup Policy

3. Select Maintenance / Schedule Backup. See Figure 3 .

Figure 3: Schedule Backup Strategy

4. Select your Backup Strategy type and click Next.

5. Continue with the Schedule Backup Configuration wizard as shown in the examplein Figure 4.

Page 9: Oracle RMAN Tech Note

7/29/2019 Oracle RMAN Tech Note

http://slidepdf.com/reader/full/oracle-rman-tech-note 9/14

Oracle RMAN Tech Note (Cover 10G and 11G for CIFS/NFS) 9

Figure 4: Schedule Backup: Options

6. Click Next and continue with Settings as shown in the example in Figure 5.

Figure 5: Oracle Enterprise Manager Backup Settings Example

7. Click Next and continue with Schedule as shown in Figure 6.

Page 10: Oracle RMAN Tech Note

7/29/2019 Oracle RMAN Tech Note

http://slidepdf.com/reader/full/oracle-rman-tech-note 10/14

10 Oracle RMAN Tech Note (Cover 10G and 11G for CIFS/NFS)

Figure 6: Oracle Backup Schedule

8. Determine your Schedule, Start, Repeat, or Repeat Until and select Next.

9. Submit the job in Step 4 to execute your Oracle Database backup to disk using theEnterprise Manager. Figure 7 shows an example of Step 4 in configuring an OracleBackup.

Figure 7: Example of Step 4

10. Database will be closed, shutdown and mounted for the backup to execute. Databasewill be reopened when the backup completes.

11. Progress of the backup can be viewed from Maintenance / Manage Current Backups.

Page 11: Oracle RMAN Tech Note

7/29/2019 Oracle RMAN Tech Note

http://slidepdf.com/reader/full/oracle-rman-tech-note 11/14

Oracle RMAN Tech Note (Cover 10G and 11G for CIFS/NFS) 11

Restore

This section contains a brief discussion on how to initiate a restore with RMAN for OracleDatabase Disk Backup. Consult the Oracle 10G Administration Guide on the Oraclewebsite for details.

Example of Restore

1. From the Oracle EM, select Perform Recovery as shown in Figure 8.

Figure 8: Perform Recovery Type

2. Provide the Host Credentials and select Next.

3. Continue with Recovery Wizard as shown in Figure 9 and select Refresh after waitingfor some time for the operation to complete.

Figure 9: Recovery Wizard

4. Refresh will bring you to the following screen, as shown in Figure 10. Select PerformRecovery.

Page 12: Oracle RMAN Tech Note

7/29/2019 Oracle RMAN Tech Note

http://slidepdf.com/reader/full/oracle-rman-tech-note 12/14

12 Oracle RMAN Tech Note (Cover 10G and 11G for CIFS/NFS)

Figure 10: Perform Recovery

5. Continue to restore the control files for the autobackup as shown in Figure 11. In the

following example, the Control File is restored to a different location.

Figure 11: Restore Control File

Note: Consult an Oracle Database Administrator for the appropriate location to restorethe Control File.

6. Control File should be restored as shown in Figure 12.

Page 13: Oracle RMAN Tech Note

7/29/2019 Oracle RMAN Tech Note

http://slidepdf.com/reader/full/oracle-rman-tech-note 13/14

Oracle RMAN Tech Note (Cover 10G and 11G for CIFS/NFS) 13

Figure 12: Control File Successfully Restored

7. Select Next to continue the restore of the Whole Database.

Example of Restore from RMAN for an Oracle Suggested BackupThe following RMAN restore example is for an Oracle Suggested Backup on Windows.

1. From a command prompt, execute the following to run RMAN:

rman TARGET sys/ORACLE@target_db_name

2. Shutdown the database using SHUTDOWN IMMEDIATE.

3. From another command prompt, execute the following to run sqlplus:

a. Enter set oracle_sid = db_name

b. Enter sqlplus “sys as sysdba”

c. Enter sys password .

d. Execute STARTUP MOUNT to startup the database and mount it for restore.

4. Execute the following from RMAN to restore the whole database:

RMAN> run {

2> restore database until time "to_date('2008-02-24 10:30:24',

'YYYYMM-DD-HH24:

 MI:SS')" validate;

3> }

The following output is an example of a RMAN restore of an Oracle Database:

Starting restore at 24-FEB-08using channel ORA_DISK_1

channel ORA_DISK_1: scanning datafilecopy

\\DOZER.SUPPORT.DATADOMAIN.LOCAL\BACKU

P\FLASH\ORCL\DATAFILE\O1_MF_SYSTEM_3W3FO8HZ_.DBF

channel ORA_DISK_1: scanning datafilecopy

\\DOZER.SUPPORT.DATADOMAIN.LOCAL\BACKU

P\FLASH\ORCL\DATAFILE\O1_MF_UNDOTBS1_3W3FP6XP_.DBF

channel ORA_DISK_1: scanning datafilecopy

\\DOZER.SUPPORT.DATADOMAIN.LOCAL\BACKU

P\FLASH\ORCL\DATAFILE\O1_MF_SYSAUX_3W3FOQK7_.DBF

Page 14: Oracle RMAN Tech Note

7/29/2019 Oracle RMAN Tech Note

http://slidepdf.com/reader/full/oracle-rman-tech-note 14/14

14 Oracle RMAN Tech Note (Cover 10G and 11G for CIFS/NFS)

channel ORA_DISK_1: scanning datafilecopy

\\DOZER.SUPPORT.DATADOMAIN.LOCAL\BACKU

P\FLASH\ORCL\DATAFILE\O1_MF_USERS_3W3FPB3Y_.DBF

channel ORA_DISK_1: scanning datafilecopy

\\DOZER.SUPPORT.DATADOMAIN.LOCAL\BACKU

P\FLASH\ORCL\DATAFILE\O1_MF_EXAMPLE_3W3FOZOP_.DBF

Finished restore at 24-FEB-08

5. Execute the following from RMAN to recover the database:RMAN> run {

2> recover database; }

The following output shows that the recover was successful:

Starting recover at 24-FEB-08

allocated channel: ORA_DISK_1

channel ORA_DISK_1: sid=76 devtype=DISK

starting media recovery

media recovery complete

Finished recover at 24-FEB-08

6. Restart the database.

Replication

Use the Data Domain Operating System User Guide for guidance on directoryreplication. The generic steps are described below.

1. Select a directory for replication.

2. Create the replication relationship between the two Data Domain systems.

Note: In a Windows environment, DDR2 (destination DDR for replication) should be inWORKGROUP mode.

3. Replicate the directory from DDR1 to DDR2 using the same directory path names tothe destination DDR2.

4. Mount the secondary DDR2 and execute a restore from RMAN.

Configuration Checklist

• Verify Disk accessibility prior to backup using the Test Disk Backup

• Configure your backup schedules and policies

• Execute a test backup

• Execute a test restore

Advanced Functionality

There is no advanced functionality.