RMAN 配置

1 分配通道

CONFIGURE DEVICE TYPE ... PARALLELISM

CONFIGURE DEVICE TYPE DISK PARALLELISM 2;
CONFIGURE DEVICE TYPE DISK PARALLELISM 3;

CONFIGURE DEFAULT DEVICE TYPE TO sbt;

可以配置到磁盘,也可以到磁带

2指定备份的位置和文件名称格式

BACKUP TABLESPACE users FORMAT = ‘D:\rman_bkups/users_%u%p%c’;

3指定备份片的大小

CONFIGURE CHANNEL DEVICE TYPE DISK MAXPIECESIZE = 2G;

4指定I/O读写速度

CONFIGURE CHANNEL DEVICE TYPE sbt RATE 1M;

 查询备份块

SELECT FILE#, INCREMENTAL_LEVEL, COMPLETION_TIME, BLOCKS, DATAFILE_BLOCKS FROM V$BACKUP_DATAFILE;

SELECT FILE#, INCREMENTAL_LEVEL, COMPLETION_TIME, BLOCKS, DATAFILE_BLOCKS FROM V$BACKUP_DATAFILE

AND BLOCKS / DATAFILE_BLOCKS > .5  ORDER BY COMPLETION_TIME;

5 配置是否自动备份控制文件

CONFIGURE CONTROLFILE AUTOBACKUP ON;
CONFIGURE CONTROLFILE AUTOBACKUP OFF;

6配置备份策略

CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 7 DAYS;

CONFIGURE RETENTION POLICY TO REDUNDANCY

 

你可能感兴趣的:(c,disk,磁盘)