此次数据迁移,需要将数据库备份到存储上。由于文件系统的限制,每个挂载点的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;
}