Oracle RMAN备份深入解析--联机备份
2015-03-31 12:04
477 查看
Oracle RMAN备份深入解析--联机备份
RMAN> backup database plus archivelog;
此命令将触发以下操作:
1、首先,进程使用alter system archivelog current命令完成了日志切换操作。
2、进程将现存所有归档重做日志备份
3、开始执行实际的数据库备份操作,此时会发生一次日志切换(alter system archivelog current),同时RMAN备份剩余的归档重做日志(使用backup archivelog all命令)。
4、执行控制文件和服务器参数文件的自动备份操作。
案例:
1、查看备份前的日志信息
[code=jfx;toolbar:false">17:13:50 SYS@ prod>select group#,sequence#,thread#,status from v$log;
GROUP# SEQUENCE# THREAD# STATUS
---------- ---------- ---------- ----------------
1 16 1 CURRENT
2 14 1 INACTIVE
3 15 1 INACTIVE
Elapsed: 00:00:00.05
2、执行备份RMAN> backup database plus archivelog;
Starting backup at 03-JUL-14
current log archived
using channel ORA_DISK_1
channel ORA_DISK_1: starting archived log backup set
channel ORA_DISK_1: specifying archived log(s) in backup set
input archived log thread=1 sequence=13 RECID=41 STAMP=851966028
input archived log thread=1 sequence=14 RECID=42 STAMP=851966028
input archived log thread=1 sequence=15 RECID=43 STAMP=851966030
input archived log thread=1 sequence=16 RECID=44 STAMP=851966141
channel ORA_DISK_1: starting piece 1 at 03-JUL-14
channel ORA_DISK_1: finished piece 1 at 03-JUL-14
piece handle=/u01/app/oracle/product/11.2.0/db_1/dbs/0kpcfu5t_1_1 tag=TAG20140703T171541 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:04
Finished backup at 03-JUL-14
Starting backup at 03-JUL-14
using channel ORA_DISK_1
channel ORA_DISK_1: starting full datafile backup set
channel ORA_DISK_1: specifying datafile(s) in backup set
input datafile file number=00001 name=/u01/app/oracle/oradata/prod/system01.dbf
input datafile file number=00002 name=/u01/app/oracle/oradata/prod/sysaux01.dbf
input datafile file number=00008 name=/u01/app/oracle/oradata/prod/perftbs01.dbf
input datafile file number=00004 name=/u01/app/oracle/oradata/prod/users01.dbf
input datafile file number=00005 name=/u01/app/oracle/oradata/prod/example01.dbf
input datafile file number=00007 name=/u01/app/oracle/oradata/prod/undotbs2.dbf
input datafile file number=00006 name=/u01/app/oracle/oradata/prod/tbs1.dbf
input datafile file number=00003 name=/u01/app/oracle/oradata/prod/undotbs1.dbf
channel ORA_DISK_1: starting piece 1 at 03-JUL-14
channel ORA_DISK_1: finished piece 1 at 03-JUL-14
piece handle=/u01/app/oracle/product/11.2.0/db_1/dbs/0lpcfu61_1_1 tag=TAG20140703T171545 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:01:26
Finished backup at 03-JUL-14
Starting backup at 03-JUL-14
current log archived
using channel ORA_DISK_1
channel ORA_DISK_1: starting archived log backup set
channel ORA_DISK_1: specifying archived log(s) in backup set
input archived log thread=1 sequence=17 RECID=45 STAMP=851966231
channel ORA_DISK_1: starting piece 1 at 03-JUL-14
channel ORA_DISK_1: finished piece 1 at 03-JUL-14
piece handle=/u01/app/oracle/product/11.2.0/db_1/dbs/0mpcfu8o_1_1 tag=TAG20140703T171712 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
Finished backup at 03-JUL-14
Starting Control File and SPFILE Autobackup at 03-JUL-14
piece handle=/u01/app/oracle/product/11.2.0/db_1/dbs/c-239333010-20140703-00 comment=NONE
Finished Control File and SPFILE Autobackup at 03-JUL-143、查看告警日志
RMAN> backup database plus archivelog;
此命令将触发以下操作:
1、首先,进程使用alter system archivelog current命令完成了日志切换操作。
2、进程将现存所有归档重做日志备份
3、开始执行实际的数据库备份操作,此时会发生一次日志切换(alter system archivelog current),同时RMAN备份剩余的归档重做日志(使用backup archivelog all命令)。
4、执行控制文件和服务器参数文件的自动备份操作。
案例:
1、查看备份前的日志信息
[code=jfx;toolbar:false">17:13:50 SYS@ prod>select group#,sequence#,thread#,status from v$log;
GROUP# SEQUENCE# THREAD# STATUS
---------- ---------- ---------- ----------------
1 16 1 CURRENT
2 14 1 INACTIVE
3 15 1 INACTIVE
Elapsed: 00:00:00.05
2、执行备份RMAN> backup database plus archivelog;
Starting backup at 03-JUL-14
current log archived
using channel ORA_DISK_1
channel ORA_DISK_1: starting archived log backup set
channel ORA_DISK_1: specifying archived log(s) in backup set
input archived log thread=1 sequence=13 RECID=41 STAMP=851966028
input archived log thread=1 sequence=14 RECID=42 STAMP=851966028
input archived log thread=1 sequence=15 RECID=43 STAMP=851966030
input archived log thread=1 sequence=16 RECID=44 STAMP=851966141
channel ORA_DISK_1: starting piece 1 at 03-JUL-14
channel ORA_DISK_1: finished piece 1 at 03-JUL-14
piece handle=/u01/app/oracle/product/11.2.0/db_1/dbs/0kpcfu5t_1_1 tag=TAG20140703T171541 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:04
Finished backup at 03-JUL-14
Starting backup at 03-JUL-14
using channel ORA_DISK_1
channel ORA_DISK_1: starting full datafile backup set
channel ORA_DISK_1: specifying datafile(s) in backup set
input datafile file number=00001 name=/u01/app/oracle/oradata/prod/system01.dbf
input datafile file number=00002 name=/u01/app/oracle/oradata/prod/sysaux01.dbf
input datafile file number=00008 name=/u01/app/oracle/oradata/prod/perftbs01.dbf
input datafile file number=00004 name=/u01/app/oracle/oradata/prod/users01.dbf
input datafile file number=00005 name=/u01/app/oracle/oradata/prod/example01.dbf
input datafile file number=00007 name=/u01/app/oracle/oradata/prod/undotbs2.dbf
input datafile file number=00006 name=/u01/app/oracle/oradata/prod/tbs1.dbf
input datafile file number=00003 name=/u01/app/oracle/oradata/prod/undotbs1.dbf
channel ORA_DISK_1: starting piece 1 at 03-JUL-14
channel ORA_DISK_1: finished piece 1 at 03-JUL-14
piece handle=/u01/app/oracle/product/11.2.0/db_1/dbs/0lpcfu61_1_1 tag=TAG20140703T171545 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:01:26
Finished backup at 03-JUL-14
Starting backup at 03-JUL-14
current log archived
using channel ORA_DISK_1
channel ORA_DISK_1: starting archived log backup set
channel ORA_DISK_1: specifying archived log(s) in backup set
input archived log thread=1 sequence=17 RECID=45 STAMP=851966231
channel ORA_DISK_1: starting piece 1 at 03-JUL-14
channel ORA_DISK_1: finished piece 1 at 03-JUL-14
piece handle=/u01/app/oracle/product/11.2.0/db_1/dbs/0mpcfu8o_1_1 tag=TAG20140703T171712 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
Finished backup at 03-JUL-14
Starting Control File and SPFILE Autobackup at 03-JUL-14
piece handle=/u01/app/oracle/product/11.2.0/db_1/dbs/c-239333010-20140703-00 comment=NONE
Finished Control File and SPFILE Autobackup at 03-JUL-143、查看告警日志
相关文章推荐
- Oracle RMAN备份深入解析--联机备份
- Oracle RMAN 备份(三)--联机RMAN 数据库备份
- 深入oracle 12c数据库备份与恢复(优化RMAN性能、Oracle flashback技术)
- RMAN 备份与恢复深入解析(二)
- 深入oracle 12c数据库备份与恢复(优化RMAN性能、Oracle flashback技术)
- RMAN 备份与恢复深入解析(一)
- 深入oracle 12c数据库备份与恢复(优化RMAN性能、Oracle flashback技术)
- 深入oracle 12c数据库备份与恢复(优化RMAN性能、Oracle flashback技术)
- RMAN 备份与恢复深入解析1
- 深入oracle 12c数据库备份与恢复(优化RMAN性能、Oracle flashback技术)
- 深入oracle 12c数据库备份与恢复(优化RMAN性能、Oracle flashback技术)
- RMAN深入解析之--备份数据块
- RMAN 备份与恢复深入解析(二)
- oracle联机热备原理及rman增量备份原理
- 深入解析oracle回滚段
- 使用rman nocatalog方式备份Oracle - NetBackup配置方法
- Oracle RMAN物理备份之RMAN配置的含义
- 深入学习oracle备份策略
- ORACLE 数据库RMAN备份恢复
- 深入解析 Windows Complete PC 备份