ITPub博客

首页 > 数据库 > Oracle > RMAN将备份片分布在不同的挂载点

RMAN将备份片分布在不同的挂载点

原创 Oracle 作者:snowdba 时间:2014-12-03 20:03:42 0 删除 编辑
此次数据迁移,需要将数据库备份到存储上。由于文件系统的限制,每个挂载点的lv不能超过2TB。这就需要将数据库备份到不同挂载点的目录上,可以采用分配通道中的format关键字实现该需求。

run{
allocate channel c1 device type disk format '/orabak1/bj_db_full_%U' maxpiecesize=20G;
allocate channel c2 device type disk format '/orabak2/bj_db_full_%U' maxpiecesize=20G;
allocate channel c3 device type disk format '/orabak3/bj_db_full_%U' maxpiecesize=20G;
allocate channel c4 device type disk format '/orabak4/bj_db_full_%U' maxpiecesize=20G;
allocate channel c5 device type disk format '/orabak5/bj_db_full_%U' maxpiecesize=20G;
allocate channel c6 device type disk format '/orabak6/bj_db_full_%U' maxpiecesize=20G;
allocate channel c7 device type disk format '/orabak7/bj_db_full_%U' maxpiecesize=20G;
allocate channel c8 device type disk format '/orabak8/bj_db_full_%U' maxpiecesize=20G;
backup tag 'BJ_DB_FULL' as compressed backupset database
include current controlfile;
release channel c1;
release channel c2;
release channel c3;
release channel c4;
release channel c5;
release channel c6;
release channel c7;
release channel c8;
}

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/29047826/viewspace-1355665/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2014-06-21

  • 博文量
    223
  • 访问量
    1633597