C:\Users\Admin>rman target /
Recovery Manager: Release 10.2.0.1.0 - Production on Tue Oct 4 08:37:06 2016
Copyright (c) 1982, 2005, Oracle. All rights reserved.
connected to target database: BRUCE (DBID=1667411)
RMAN> run{
2> allocate channel c1 type disk;
3> allocate channel c2 type disk;
4> allocate channel c3 type disk;
5> backup as compressed backupset filesperset 2 tag 'pri_full_backup' format 'D:\oracle\product\arch\%T_%U' database;
6> release channel c1;
7> release channel c2;
8> release channel c3;
9> }
using target database control file instead of recovery catalog
allocated channel: c1
channel c1: sid=142 devtype=DISK
allocated channel: c2
channel c2: sid=143 devtype=DISK
allocated channel: c3
channel c3: sid=144 devtype=DISK
Starting backup at 04-OCT-16
channel c1: starting compressed full datafile backupset
channel c1: specifying datafile(s) in backupset
input datafile fno=00006 name=D:\ORACLE\PRODUCT\ORADATA\BRUCE\TEST.DBF
channel c1: starting piece 1 at 04-OCT-16
channel c2: starting compressed full datafile backupset
channel c2: specifying datafile(s) in backupset
input datafile fno=00001 name=D:\ORACLE\PRODUCT\ORADATA\BRUCE\SYSTEM01.DBF
input datafile fno=00004 name=D:\ORACLE\PRODUCT\ORADATA\BRUCE\USERS01.DBF
channel c2: starting piece 1 at 04-OCT-16
channel c3: starting compressed full datafile backupset
channel c3: specifying datafile(s) in backupset
input datafile fno=00003 name=D:\ORACLE\PRODUCT\ORADATA\BRUCE\SYSAUX01.DBF
input datafile fno=00007 name=D:\ORACLE\PRODUCT\ORADATA\BRUCE\BRUCE.DBF
channel c3: starting piece 1 at 04-OCT-16
channel c1: finished piece 1 at 04-OCT-16
piece handle=D:\ORACLE\PRODUCT\ARCH\20161004_0DRHGI38_1_1 tag=PRI_FULL_BACKUP comment=NONE
channel c1: backup set complete, elapsed time: 00:00:06
channel c1: starting compressed full datafile backupset
channel c1: specifying datafile(s) in backupset
input datafile fno=00005 name=D:\ORACLE\PRODUCT\ORADATA\BRUCE\EXAMPLE01.DBF
input datafile fno=00002 name=D:\ORACLE\PRODUCT\ORADATA\BRUCE\UNDOTBS01.DBF
channel c1: starting piece 1 at 04-OCT-16
channel c3: finished piece 1 at 04-OCT-16
piece handle=D:\ORACLE\PRODUCT\ARCH\20161004_0FRHGI38_1_1 tag=PRI_FULL_BACKUP comment=NONE
channel c3: backup set complete, elapsed time: 00:00:07
channel c3: starting compressed full datafile backupset
channel c3: specifying datafile(s) in backupset
including current control file in backupset
channel c3: starting piece 1 at 04-OCT-16
channel c3: finished piece 1 at 04-OCT-16
piece handle=D:\ORACLE\PRODUCT\ARCH\20161004_0HRHGI3F_1_1 tag=PRI_FULL_BACKUP comment=NONE
channel c3: backup set complete, elapsed time: 00:00:02
channel c3: starting compressed full datafile backupset
channel c3: specifying datafile(s) in backupset
including current SPFILE in backupset
channel c3: starting piece 1 at 04-OCT-16
channel c1: finished piece 1 at 04-OCT-16
piece handle=D:\ORACLE\PRODUCT\ARCH\20161004_0GRHGI3E_1_1 tag=PRI_FULL_BACKUP comment=NONE
channel c1: backup set complete, elapsed time: 00:00:05
channel c3: finished piece 1 at 04-OCT-16
piece handle=D:\ORACLE\PRODUCT\ARCH\20161004_0IRHGI3H_1_1 tag=PRI_FULL_BACKUP comment=NONE
channel c3: backup set complete, elapsed time: 00:00:02
channel c2: finished piece 1 at 04-OCT-16
piece handle=D:\ORACLE\PRODUCT\ARCH\20161004_0ERHGI38_1_1 tag=PRI_FULL_BACKUP comment=NONE
channel c2: backup set complete, elapsed time: 00:00:18
Finished backup at 04-OCT-16
released channel: c1
released channel: c2
released channel: c3
======================================================================================================================
C:\Users\Admin>rman target / cmdfile=D:\oracle\product\arch\backup
Recovery Manager: Release 10.2.0.1.0 - Production on Tue Oct 4 08:48:31 2016
Copyright (c) 1982, 2005, Oracle. All rights reserved.
connected to target database: BRUCE (DBID=1667411)
RMAN> run{
2> allocate channel c1 type disk;
3> allocate channel c2 type disk;
4> allocate channel c3 type disk;
5> backup as compressed backupset filesperset 3 tag 'pri_full_backup' format 'D:\oracle\product\arch\%T_%U' database;
6> release channel c1;
7> release channel c2;
8> release channel c3;
9> }
10>
using target database control file instead of recovery catalog
allocated channel: c1
channel c1: sid=144 devtype=DISK
allocated channel: c2
channel c2: sid=143 devtype=DISK
allocated channel: c3
channel c3: sid=142 devtype=DISK
Starting backup at 04-OCT-16
channel c1: starting compressed full datafile backupset
channel c1: specifying datafile(s) in backupset
input datafile fno=00006 name=D:\ORACLE\PRODUCT\ORADATA\BRUCE\TEST.DBF
channel c1: starting piece 1 at 04-OCT-16
channel c2: starting compressed full datafile backupset
channel c2: specifying datafile(s) in backupset
input datafile fno=00001 name=D:\ORACLE\PRODUCT\ORADATA\BRUCE\SYSTEM01.DBF
input datafile fno=00007 name=D:\ORACLE\PRODUCT\ORADATA\BRUCE\BRUCE.DBF
input datafile fno=00004 name=D:\ORACLE\PRODUCT\ORADATA\BRUCE\USERS01.DBF
channel c2: starting piece 1 at 04-OCT-16
channel c3: starting compressed full datafile backupset
channel c3: specifying datafile(s) in backupset
input datafile fno=00003 name=D:\ORACLE\PRODUCT\ORADATA\BRUCE\SYSAUX01.DBF
input datafile fno=00005 name=D:\ORACLE\PRODUCT\ORADATA\BRUCE\EXAMPLE01.DBF
input datafile fno=00002 name=D:\ORACLE\PRODUCT\ORADATA\BRUCE\UNDOTBS01.DBF
channel c3: starting piece 1 at 04-OCT-16
channel c1: finished piece 1 at 04-OCT-16
piece handle=D:\ORACLE\PRODUCT\ARCH\20161004_0PRHGIN9_1_1 tag=PRI_FULL_BACKUP comment=NONE
channel c1: backup set complete, elapsed time: 00:00:04
channel c1: starting compressed full datafile backupset
channel c1: specifying datafile(s) in backupset
including current control file in backupset
channel c1: starting piece 1 at 04-OCT-16
channel c1: finished piece 1 at 04-OCT-16
piece handle=D:\ORACLE\PRODUCT\ARCH\20161004_0SRHGIND_1_1 tag=PRI_FULL_BACKUP comment=NONE
channel c1: backup set complete, elapsed time: 00:00:02
channel c1: starting compressed full datafile backupset
channel c1: specifying datafile(s) in backupset
including current SPFILE in backupset
channel c1: starting piece 1 at 04-OCT-16
channel c1: finished piece 1 at 04-OCT-16
piece handle=D:\ORACLE\PRODUCT\ARCH\20161004_0TRHGINF_1_1 tag=PRI_FULL_BACKUP comment=NONE
channel c1: backup set complete, elapsed time: 00:00:02
channel c3: finished piece 1 at 04-OCT-16
piece handle=D:\ORACLE\PRODUCT\ARCH\20161004_0RRHGINA_1_1 tag=PRI_FULL_BACKUP comment=NONE
channel c3: backup set complete, elapsed time: 00:00:10
channel c2: finished piece 1 at 04-OCT-16
piece handle=D:\ORACLE\PRODUCT\ARCH\20161004_0QRHGIN9_1_1 tag=PRI_FULL_BACKUP comment=NONE
channel c2: backup set complete, elapsed time: 00:00:18
Finished backup at 04-OCT-16
released channel: c1
released channel: c2
released channel: c3
Recovery Manager complete.
D:\oracle\product\arch\backup 的内容
run{
allocate channel c1 type disk;
allocate channel c2 type disk;
allocate channel c3 type disk;
backup as compressed backupset filesperset 3 tag 'pri_full_backup' format 'D:\oracle\product\arch\%T_%U' database;
release channel c1;
release channel c2;
release channel c3;
}
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/24237320/viewspace-2125843/
,如需转载,请注明出处,否则将追究法律责任。