RMAN通道

RMAN通道

有朋友多RMAN里的channel的含义不是很清楚

这里特此总结记录一下

Channel可以看作是一个IO的进程,所以多通道的方式一般是提供RMAN的backup的并行度,对于多IO支持的设备,效果明显。

在执行我们执行backup,restore,delete等有关物理文件的磁盘IO的命令是,我们可以用allocate channel来给他们分配通道,这里也可以执行多个allocate channel来分配多个通道,这个allocate channel必须在run的命令块里包含。例如
run
{
allocate channel c1 maxpiecesize=100m device type disk format '/backup/%T_%t_%U';
backup incremental level 0 database tag 'level_0_datafile';
}

rman执行这些命令的时候,至少需要一个通道,多个通道的话就会对应多个进程来进行IO的操作。直白一点的话,多一个通道,可以看做是多了一个IO的进程来进行操作。

我们也可以在run里不allocate通道,这时就没有手动的指定通道,那么就会用默认的通道,也就是预定义的通道了。
预定义的通道,可以通过show all来查看。

下列预定义配置命令均可以分配通道:

* CONFIGURE DEVICE TYPE ... PARALLELISM
* CONFIGURE DEFAULT DEVICE TYPE
* CONFIGURE CHANNEL DEVICE TYPE
* CONFIGURE CHANNEL n DEVICE TYPE

以下是RMAN文档中对channel的描述

CHANNEL :

A connection between RMAN and the target database. Each allocated channel starts a new Oracle server session; the session then performs backup, restore, and recovery operations. The type of channel determines whether the Oracle server process will attempt to read or write and whether it will work through a third-party media manager. If the channel is of type:
·DISK, the server process reads backups from or write backups to disk
·sbt, the server process reads backups from or write backups to a third-party media manager
Channels are always able to read and write datafiles to and from disk, no matter what their type.
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

inthirties

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值