Home  >  Article  >  Database  >  Oracle RMAN备份单个文件的并发执行

Oracle RMAN备份单个文件的并发执行

WBOY
WBOYOriginal
2016-06-07 16:44:20884browse

这一脚本将启动4个通道,每个通道读取数据文件16的一段10GB的段。每个通道将生成包含段的备份的片(单独的物理文件)。如果文件为

如果文件是数千兆字节,或者数百万兆字节,,将需要并行化这一文件的备份,通常,一个通道只能读一个文件,但是用多段关键字可以改变这一行为:

run {

allocate channel t1 type sbt;

allocate channel t2 type sbt;

allocate channel t3 type sbt;


allocate channel t4 type sbt;


backup as compressed backupset datafile 16 section size 10g;

}

这一脚本将启动4个通道,每个通道读取数据文件16的一段10GB的段。每个通道将生成包含段的备份的片(单独的物理文件)。如果文件为200GB, 将有20个这样的片,一次生成4个。没有section size 关键字,并行读将为1(也就是序列化),用一个通道执行整个操作。

--------------------------------------推荐阅读 --------------------------------------

RMAN 配置归档日志删除策略

Oracle基础教程之通过RMAN复制数据库

RMAN备份策略制定参考内容

RMAN备份学习笔记

Oracle数据库备份加密 RMAN加密

--------------------------------------分割线 --------------------------------------

本文永久更新链接地址:

linux

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn