- 最后登录
- 2023-8-16
- 在线时间
- 1686 小时
- 威望
- 2135
- 金钱
- 50532
- 注册时间
- 2011-10-12
- 阅读权限
- 200
- 帖子
- 5207
- 精华
- 39
- 积分
- 2135
- UID
- 2
|
1#
发表于 2013-4-6 14:32:50
|
查看: 7462 |
回复: 3
CONFIGURE DEFAULT DEVICE TYPE TO SBT;
CONFIGURE DEVICE TYPE SBT PARALLELISM 40;
CONFIGURE CHANNEL DEVICE TYPE SBT MAXOPENFILES=1 PARMS='BLKSIZE=1048576, ENV=(NB_ORA_CLASS=Oracle_backup)' FORMAT '%U_%t';
sbt 备份
sql 'alter session set _db_file_direct_io_count=8388608';
sql 'alter session set "_backup_ksfq_bufsz"=4194304 ';
sql 'alter session set "_backup_ksfq_bufcnt"=64 ';
run
{
allocate channel mac1 TYPE SBT MAXOPENFILES=1 PARMS='BLKSIZE=1048576, ENV=(NB_ORA_CLASS=Oracle_backup)' FORMAT '%U_%t';
backup as compressed backupset database;
}
run
{
allocate channel mac1 TYPE disk MAXOPENFILES=1 FORMAT '%U_%t';
backup as compressed backupset database;
}
sql 'alter session set "_backup_ksfq_bufsz"=4194304 ';
sql 'alter session set "_backup_ksfq_bufcnt"=64 ';
run
{ allocate channel mac01 DEVICE TYPE DISK MAXOPENFILES=1 PARMS='BLKSIZE=1048576' ;
allocate channel mac02 DEVICE TYPE DISK MAXOPENFILES=1 PARMS='BLKSIZE=1048576' ;
allocate channel mac03 DEVICE TYPE DISK MAXOPENFILES=1 PARMS='BLKSIZE=1048576' ;
allocate channel mac04 DEVICE TYPE DISK MAXOPENFILES=1 PARMS='BLKSIZE=1048576' ;
backup as copy (datafile 1,2 format '/s01/backup/%U.bak' channel mac01)
(datafile 3,4 format '/s01/backup/%U.bak' channel mac02)
(datafile 5,6 format '/s01/backup/%U.bak' channel mac03);
}
run
{ allocate channel mac01 DEVICE TYPE DISK ;
allocate channel mac02 DEVICE TYPE DISK ;
allocate channel mac03 DEVICE TYPE DISK ;
allocate channel mac04 DEVICE TYPE DISK ;
backup as copy (datafile 1,2 format '/s01/backup/%U.bak' channel mac01)
(datafile 3,4 format '/s01/backup/%U.bak' channel mac02)
(datafile 5,6 format '/s01/backup/%U.bak' channel mac03);
} |
|