Recover database files to be prepared: Rman full backup (including data files, log files, control files, parameter files), record source database dbid
First, install the database Oracle database software and create the same data file directory, log file directory, and control file directory as the source database serve
Restore full backup of another machine on a new machine
1 to remember the various directory structure and dbid of the original machine
2 creating the corresponding directory structure on the new machine note user permissions/u01/oracle/admin/dbname/pfile bdump udump dpdump cdump/oradata/dbname/rman_backup Flash_recover_sea Archivelog
3 Put the
database location. % Oracle_home %/ora92/databaseOf course, you can also use run to flexibly define your backup.RMAN> run {> Allocate chennel d1 type disk; // Distribution Channel> Backup full database // full backup database> Include current controlfile // include the current controlfile> Format 'e: \
Seven Online Rman Database backup
7.1 Online Database backup
To perform an online backup operation using Rman, the database must be placed in Archivelog mode. If you are not in archive mode, Rman generates an error when you atte
Before you start a backup operation, you need to consider some compatibility issues. In an enterprise, different versions of Oracle may be running, so we must consider Rman compatibility issues when designing a backup strategy.
Reasons can refer to: RMAN Architecture Over
default database location. % Oracle_home %/ora92/databaseOf course, you can also use run to flexibly define your backup.RMAN> run {> Allocate chennel d1 type disk; // Distribution Channel> Backup full database // full backup database> Include current controlfile // include the current controlfile> Format 'e: \
@ ebs01 backup] $ rm *
1) Start backup and back up data files together with archive logs:
[Oracle @ ebs01 backup] $ rman target/
Recovery Manager: Release 11.2.0.1.0-Production on Mon Jun 11 09:16:52 2012
Copyright (c) 1982,200 9, Oracl
. register the target database to the recovery directoryThe service name used by my target database is rcat.$ RMAN target/(execute this command on the target database and connect to the target database with RMAN first)
Recovery MANAGER: Release 8.1.7.3.0-Production
RMAN-06005: connected to target database: orcl (dbid = 1000277484)
long time. Definition and classification of recovery 恢复就是发生故障后,利用已备份的数据文件或控制文件,重新建立一个完整的数据库,恢复分为以下两种类型: Instance Recovery: Oracle automates recovery When an Oracle instance fails Media recovery: Recovery when the media that holds the database fails. Media recovery is also divided into full recovery and incomplete recovery
database default location. %oracle_home%/ora92/databaseOf course you can also use Run to flexibly define your backups.rman>run{>allocate chennel d1 type disk; assigning channels>backup full database//fully backed up databases>include Current Controlfile//Includes present Controlfile>format ' E:\oracle\orders\db_%d_%s_%p_%t_%T ';
; Backup as compressed backupset database;
Image copy backup:RMAN> Backup as copy database;
Example of full backup:
Run{Configure controlfile autobackup on;Configure controlfile autobackup format device type disk to '/u01/RMAN/control/auto_control _ % F ';
Tags: RMAN ORACLE zhangIntroduction: Welcome to add QQ Exchange 1445696451 Weibo address http://blog.51cto.com/13434336~~~~~~~ Split~~~~~~Database backup and recovery is what the database administrator must master. No system can be protected from physical damage to the hard disk, careless user error operations, or potential disasters that could threaten to store
Using RMAN for full database backup I. backup database operations under rman: 1. in rman, you can disable, enable, convert from non-archive to archive, and enable RMAN> shutdown immedia
default database location. % Oracle_home %/ora92/databaseOf course, you can also use run to flexibly define your backup.RMAN> run {> Allocate chennel d1 type disk; // Distribution Channel> Backup full database // full backup database> Include current controlfile // include the current controlfile> Format 'e: \
ORACLE11G restores the rman backup of dataguard to the detailed process of standalone oracle in the test environment
1. copy the full backup file 1.1 from the production database to view the parameter file information.
RMAN> list
Application Testing optionsSQL> truncate table chf. t_xifenfei;Table truncated.
Rman backs up the truncate table data file
The Code is as follows:
Copy code
RMAN> backup tablespace xifenfei format '/u01/oracle/oradata/tmp/truncate_xifenfei ';Starting
To establish an incremental backup:If the database is running in non-archive mode, only if the database is cleanly shut down (in normal,Immediate, transactional mode off) for consistent incremental backups, if the database is running in amode, it can be done in the database shutdown state, or it can be backed up in a database open state. AgainThe advantage of opening the archive mode, the archive log is more disk space, can also be equivalent to the numberIt has been added layer protection. Crea
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.