rman multisection backup试验之一

multisection backup是Oracle11g(确切的说是从11.1.0.6开始)的新特性,见mos文章

MultiSection Backups (文档 ID 406295.1)

下面来做实验:

[[email protected] ~]$ rman target /

Recovery Manager: Release 11.2.0.4.0 - Production on Thu Feb 19 01:07:28 2015

Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.

connected to target database: TEST (DBID=2106028980)

RMAN> report schema;

using target database control file instead of recovery catalog
Report of database schema for database with db_unique_name TEST

List of Permanent Datafiles
===========================
File Size(MB) Tablespace           RB segs Datafile Name
---- -------- -------------------- ------- ------------------------
1    800      SYSTEM               ***     /u01/app/oracle/oradata/test/system01.dbf
2    3310     SYSAUX               ***     /u01/app/oracle/oradata/test/sysaux01.dbf
3    240      UNDOTBS1             ***     /u01/app/oracle/oradata/test/undotbs01.dbf
4    7        USERS                ***     /u01/app/oracle/oradata/test/users01.dbf
5    50       TENTBS               ***     /u01/app/oracle/oradata/test/ten01.dbf
6    5        TB_TEST              ***     /u01/app/oracle/oradata/test/tb_test_01.dbf
7    500      TS1                  ***     /u01/app/oracle/oradata/test/ts1.dbf
8    500      TS2                  ***     /u01/app/oracle/oradata/test/ts2.dbf
9    50       TEST                 ***     /u01/app/oracle/oradata/test/test01.dbf
10   50       TEST_UNI_SZ_2M       ***     /u01/app/oracle/oradata/test/test_uni_sz_2m_01.dbf
11   200      TEST_UNI_SZ_1M       ***     /u01/app/oracle/oradata/test/test_uni_sz_1m_01.dbf

List of Temporary Files
=======================
File Size(MB) Tablespace           Maxsize(MB) Tempfile Name
---- -------- -------------------- ----------- --------------------
1    157      TEMP                 32767       /u01/app/oracle/oradata/test/temp01.dbf

RMAN> show all;

RMAN configuration parameters for database with db_unique_name TEST are:
CONFIGURE RETENTION POLICY TO REDUNDANCY 1; # default
CONFIGURE BACKUP OPTIMIZATION OFF; # default
CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
CONFIGURE CONTROLFILE AUTOBACKUP OFF; # default
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default
CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO BACKUPSET; # default
CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE MAXSETSIZE TO UNLIMITED; # default
CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
CONFIGURE COMPRESSION ALGORITHM 'BASIC' AS OF RELEASE 'DEFAULT' OPTIMIZE FOR LOAD TRUE ; # default
CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/u02/app/oracle/product/11.2.0.4/db_1/dbs/snapcf_test.f'; # default

RMAN> backup section size 300m datafile 1 format '/u02/%U';

Starting backup at 19-FEB-15
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=133 device type=DISK
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/test/system01.dbf ---->system01.dbf
backing up blocks 1 through 38400--------------------------------------------------->注意此处
channel ORA_DISK_1: starting piece 1 at 19-FEB-15
channel ORA_DISK_1: finished piece 1 at 19-FEB-15
piece handle=/u02/06pvkh2l_1_1 tag=TAG20150219T011148 comment=NONE------------------>生成的backuppiece
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:28
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/test/system01.dbf ---->system01.dbf
backing up blocks 38401 through 76800----------------------------------------------->注意此处
channel ORA_DISK_1: starting piece 2 at 19-FEB-15
channel ORA_DISK_1: finished piece 2 at 19-FEB-15
piece handle=/u02/06pvkh2l_2_1 tag=TAG20150219T011148 comment=NONE------------------>生成的backuppiece
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:16
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/test/system01.dbf ---->system01.dbf
backing up blocks 76801 through 102400---------------------------------------------->注意此处
channel ORA_DISK_1: starting piece 3 at 19-FEB-15
channel ORA_DISK_1: finished piece 3 at 19-FEB-15
piece handle=/u02/06pvkh2l_3_1 tag=TAG20150219T011148 comment=NON------------------>生成的backuppiece
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:16
channel ORA_DISK_1: starting full datafile backup set
channel ORA_DISK_1: specifying datafile(s) in backup set
including current control file in backup set
including current SPFILE in backup set
channel ORA_DISK_1: starting piece 1 at 19-FEB-15
channel ORA_DISK_1: finished piece 1 at 19-FEB-15
piece handle=/u02/09pvkh4o_1_1 tag=TAG20150219T011148 comment=NONE --->这个backuppiece是控制文件的自动备份,因为datafile1的备份会自动触发控制文件的备份。
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
Finished backup at 19-FEB-15

RMAN>

一个datafile,使用backup section size 方式来做备份,分成了3个backuppiece,由于上述实验是在一个channel内完成的,体现不出来多个channel 同时干活的优势,因此,伙会在另外一片文章中分配2个channel 来备份该datafile。

时间: 2024-10-28 23:49:07

rman multisection backup试验之一的相关文章

rman multisection backup试验之二

2个通道中使用section size进行备份. [[email protected] ~]$ rman target / Recovery Manager: Release 11.2.0.4.0 - Production on Thu Feb 19 01:07:28 2015 Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved. connected to target database: TES

11G新特性 -- RMAN Multisection Backups

Oracle 11g支持以sections的方式来备份和还原数据文件.在section级别进行备份,被称作multisection backup(多段备份).section是一个数据文件中连续的块.multisection backup特性使得备份大的数据文件变得容易,可以将大文件分成多个sections,可以单独备份和还原每个section. 当面对超过32g的数据文件时,mutlisection backup特性会显著增加备份速度,因为不同的sections可以进行并行备份.每个rman的通

转 RMAN: RAC Backup, Restore and Recovery using RMAN

PURPOSE The purpose of this document is to give a quick guide for using RMAN on RAC databases. We will follow this points: 1. Verify the database mode and archive destination.2. Verify connectivity using sqlnet for target and catalog.3. Determine the

官方文档 恢复备份指南八 RMAN Backup Concepts

本章内容 Consistent and Inconsistent RMAN Backups Online Backups and Backup Mode Backup Sets Image Copies Multiple Copies of RMAN Backups Control File and Server Parameter File Autobackups Incremental Backups Backup Retention Policies 1.Consistent and In

Oracle RMAN备份策略

建立增量备份:如果数据库运行于不归档模式下,只能在数据库干净关闭的情况下 ( 以 normal .immediate . transactional 方式关闭 ) 才能进行一致性的增量备份,如果数据库运行于归档模式下,那即可以在数据库关闭状态进行,也可以在数据库打开状态进行备份.再次说明了打开归档模式的优势,归档日志也就是多占些磁盘空间,可也相当于又给数据加了层保护.建立增量备份,实质就是一个参数 incremental level=n ,在执行 backup命令时加上即可,例如,建立一个增量级

RMAN备份数据库与恢复数据库(整库)

1 准备 2 1.1 检查数据库归档状态 2 1.2 RMAN登陆目标 2 2 备份全库 2 2.1 创建备份数据存储目录 2 2.2 RMAN备份全库 2 2.3 试验(备份后,改变数据) 5 2.4 试验(模拟删除控制文件) 7 3 恢复数据库 8 3.1 假定没有设置ORACLE_SID,设置ORACLE_SID启动一个伪实例 8 3.2 恢复SPFILE 9 3.3 恢复控制文件 9 3.4 恢复数据库 10 目录 1    准备 1.1  检查数据库归档状态 [[email prote

RMAN备份动态性能视图 V$BACKUP_SET

V$BACKUP_SET displays information about backup sets from the control file. A backup set record is inserted after the backup set is successfully completed. Column Datatype Description RECID NUMBER Backup set record ID STAMP NUMBER Backup set record st

Oracle 11gR2使用RMAN duplicate复制数据库

11g的RMAN duplicate 个人感觉比10g的先进了很多,10g需在rman备份的基础上进行复制,使用RMAN duplicate创建一个数据完全相同但DBID不同的数据库.而11g的RMAN duplicate 可通过Active database duplicate和Backup-based duplicate两种方法实现.Active database duplicate方式不需要先把目标数据库进行rman备份,只要目标数据库处于归档模式下即可直接通过网络对数据库进行copy,且

Oracle RMAN 备份控制文件/恢复控制文件

--备份控制文件 rman target / RMAN> startup RMAN> configure controlfile autobackup on; --启动自动备份 RMAN> show CONTROLFILE AUTOBACKUP;  --显示是否自动备份控制文件 RMAN> configure controlfile autobackup format for device type disk to '/backup/%F'; --设置控制文件备份路径 RMAN&g