重庆思庄Oracle、Redhat认证学习论坛

标题: 如何实现没有磁带但要模拟往磁带中备份? [打印本页]

作者: 郑全    时间: 2019-3-14 13:41
标题: 如何实现没有磁带但要模拟往磁带中备份?
如题,我们在教学中,为了演示往磁带备份数据库,没有真实的磁带,能实现吗 ?

如果没有磁带,下面的命令会失败。

rman target /
rman>run{
allocate channel c1 device type sbt;
backup recovery area;
}

RMAN> run{
2> allocate channel c1 device type sbt;
3> backup recovery area;
4> }
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03009: failure of allocate command on c1 channel at 03/14/2019 13:41:02
ORA-19554: error allocating device, device type: SBT_TAPE, device name:
ORA-27211: Failed to load Media Management Library
Additional information: 2










作者: 郑全    时间: 2019-3-14 13:50
虚拟磁带,mhvtl 加 osb,也是一种方法,

不安装虚拟磁带可以吗 ?
作者: 郑全    时间: 2019-3-14 14:35
The RMAN disksbt library, which emulates a SBT library (but writes backups to disk
location), can be used to test backup the FRA to a disk location:
For example :
run {
allocate channel dev1 type sbt parms='SBT_LIBRARY=oracle.disksbt, ENV=(BACKUP_DIR=/backup)';
backup recovery area;
}





欢迎光临 重庆思庄Oracle、Redhat认证学习论坛 (http://bbs.cqsztech.com/) Powered by Discuz! X3.2