Oracle 11gR2 Single Instance + asm for RMAN

Source: Internet
Author: User

Single Instance for RMAN backup and recovery]

Topic: simple use of RMAN]
I. rman backup operations:
1. Log On As an oracle user. First, check whether the/u02/rman directory exists.
2. log on to rman using the sys user and the password oracle
Rman target sys/oracle
Run {
Crosscheck archivelog all;
Allocate channel specified device type disk format'/u02/rman/test _ % U ';
Allocate channel CH2 device type disk format'/u02/rman/test _ % U ';
BACKUP incremental level 0 DATABASE plus archivelog delete input;
Release channel identifier;
Release channel CH2;
}
RMAN> list backupset;

650) this. width = 650; "title =" 1.jpg" src = "http://img1.51cto.com/attachment/201308/105441445.jpg"/>

// After the backup is complete, make sure to record the scn.
The SCN number after the backup is completed. This SCN number must be recorded as the time point for database recovery)
# The SCN number is similar to the following:
--------------------------------------------------------------------------
Ii. Restore rman for the first time
1. ORACLE user logon
2. Restore for the first time
Use the sys user to log on to rman
Rman target sys/oracle
Shutdown immediate;
Startup mount;
Run {
Set until scn 277970;
Allocate channel specified device type disk format'/u02/rman/test _ % U ';
Allocate channel CH2 device type disk format'/u02/rman/test _ % U ';
Restore database;
Recover database;
SQL 'alter database open resetlogs ';
Release channel identifier;
Release channel CH2;
}
Iii. Multiple rman recovery operations
After you use the backup file to restore the database and open resetlogs to open the data,
To recover the database again, you must specify the database's incarnation.
1. ORACLE user logon
2. Restore
Use the sys user to log on to rman
Rman target sys/oracle
Shutdown immediate;
Startup mount;
List incarnation;
Reset database to incarnation 1;
Run {
Set until scn 1;
Allocate channel specified device type disk format'/u02/rman/test _ % U ';
Allocate channel CH2 device type disk format'/u02/rman/test _ % U ';
Restore database;
Recover database;
SQL 'alter database open resetlogs ';
Release channel identifier;
Release channel CH2;
}

650) this. width = 650; "title =" 2.jpg" src = "http://www.bkjia.com/uploads/allimg/131228/2155124Z3-1.jpg"/>

---------------------------------------------------------

One of RMAN backup and recovery: Oracle 11gR2 Single Instance + asm for RMAN
RMAN backup and recovery 2: Oracle 11gR2 RAC + asm for RMAN
RMAN backup and recovery 3: Oracle 11gR2 + asm for RMAN command Application

-----------------------------------------------------------

This article from "Han Feng" blog, please be sure to keep this source http://linuxxx.blog.51cto.com/1824808/1279451

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.