[20190510]rman备份的疑问8.txt
--//上午测试rman备份多个文件,探究input memory buffer 的问题.
--//补充测试5个文件的情况.
--//http://blog.itpub.net/267265/viewspace-2148246/=>[20171204]关于rman备份疑问4.txt
1.环境:
SCOTT@book> @ ver1
PORT_STRING VERSION BANNER
------------------------------ -------------- --------------------------------------------------------------------------------
x86_64/Linux 2.4.xx 11.2.0.4.0 Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
$ cat dx.sql
drop tablespace t&1 including contents and datafiles;
CREATE TABLESPACE T&1 DATAFILE '/mnt/ramdisk/book/T&1..dbf' SIZE 6M AUTOEXTEND OFF LOGGING ONLINE EXTENT MANAGEMENT LOCAL AUTOALLOCATE BLOCKSIZE 8K SEGMENT SPACE MANAGEMENT AUTO FLASHBACK ON;
create table t&1 tablespace t&1 as select rownum id ,to_char(rownum,'FM000000')||lpad('&&2',26,'&&2') name from dual connect by level<=1e5;
--//T&1..dbf 2个点.事后才发现这个小问题.
$ paste -d " " <(seq -f "%02g" 5 ) <((echo A B C D E | tr ' ' '\n' )) | xargs -IQ echo @ dx Q | sqlplus -s -l scott/book
2.修改rman配置:
RMAN> CONFIGURE CHANNEL 1 DEVICE TYPE DISK RATE 128 K;
using target database control file instead of recovery catalog
old RMAN configuration parameters:
CONFIGURE CHANNEL 1 DEVICE TYPE DISK RATE 512 K;
new RMAN configuration parameters:
CONFIGURE CHANNEL 1 DEVICE TYPE DISK RATE 128 K;
new RMAN configuration parameters are successfully stored
--//延迟备份写盘速度,就可以看出一些细节.
--//RMAN> CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO BACKUPSET;
--//RMAN> CONFIGURE CONTROLFILE AUTOBACKUP OFF;
3.备份:
RMAN> backup datafile 9,10,11,12,13 format '/home/oracle/backup/t12345_%t_%U' ;
Starting backup at 2019-05-10 17:16:28
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=58 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=00009 name=/mnt/ramdisk/book/T01dbf
input datafile file number=00010 name=/mnt/ramdisk/book/T02dbf
input datafile file number=00011 name=/mnt/ramdisk/book/T03dbf
input datafile file number=00012 name=/mnt/ramdisk/book/T04dbf
input datafile file number=00013 name=/mnt/ramdisk/book/T05dbf
channel ORA_DISK_1: starting piece 1 at 2019-05-10 17:16:28
channel ORA_DISK_1: finished piece 1 at 2019-05-10 17:20:33
piece handle=/home/oracle/backup/t12345_1007918188_2ju1773c_1_1 tag=TAG20190510T171628 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:04:05
channel ORA_DISK_1: throttle time: 0:04:00
Finished backup at 2019-05-10 17:20:33
--//执行如下:
SELECT set_count
,device_type
,TYPE
,filename
,buffer_size
,buffer_count
,open_time
,close_time
FROM v$backup_async_io
whe