[Terry Note] backup of RMAN comprehensive learning

Source: Internet
Author: User

Rman is the most cost-effective oracle backup tool. Here we will make an overall learning of rman.

Most of the scripts in this article are the syntax of rman commands. It is better to do experiments to be impressed. Because most databases are backed up by running scripts on time, and recovery is not common, and will be unfamiliar after a long time, review more.

[Terry Note] backup http://www.cnblogs.com/kkterry/p/3308405.html for RMAN Integrated Learning

[Terry Notes] recovery http://www.cnblogs.com/kkterry/p/3308407.html for RMAN Integrated Learning

[Terry Note] configuration http://www.cnblogs.com/kkterry/p/3308409.html for RMAN Integrated Learning

 

I. How to connect rman:

Local Connection: rman target/remote connection: rman targer sys/abcd @ testdb TIPS:In rman, you can also disable/enable the database: shutdown immediate/startuprman supports the host command to temporarily exit to the system layer, exit at the system layer, and then enter rman to execute the SQL statement in rman: SQL 'alter system Archive log all'; II. Backup Mode1. Backup Methods: Image and backup set. Image backup is about to be copied and pasted at the system layer, which will not be discussed here. 2. Command Execution method:
)RMAN )RMAN)rman target  )rman target  cmdfile)RMAN.sql
Iii. Backup command:1. Back up the database:
) ; )  format ;  )list   ;  ) backupset x;  
2. Backup control file:
) )  include )configure controlfile autobackup )list   controlfile;
3. Back up the archive file:
) archivelog ) ) archivelog    input;  
4. Backup parameter file:
) spfile;
5. Back up the backup set: You can back up the backup set to another disk or tape.
) backupset   ) backupset n,n,n   input;
Iv. Incremental Backup (not displayed. The default mode is differential and cumulative)
) incremental   ) incremental    format  status    enable block change tracking using  
V. rman backup redundancy Policy (either based on time or based on the number of redundancy)
configure retention policy  recovery window  n days;   redundancy n;   none; 

 

 

Related Article

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.