1.RMAN script to control the disk rate, maximum piecesize and location in the channel configuration statement.
cat rman_7.cmd
#configuring channel with difference piecesize ,disk rate and location
run
{
allocate channel ch1
device type disk
format="+DATA"
maxpiecesize=200M
rate=50M;
allocate channel ch2
device type disk
format="/SHARED/backup1/%U"
maxpiecesize=100M
rate=30M;
backup datafile 1,2;
release channel ch1;
release channel ch2;
2. Script is called in the command line of the rman
$ rman target="/" @rman_7.cmd
Recovery Manager: Release 11.2.0.4.0 - Production on Wed May 14 02:34:14 2014
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
connected to target database: CVRMAN (DBID=+++++++++++)
RMAN> #configuring channel with difference piecesize ,disk rate and location
2> run
3> {
4> allocate channel ch1
5> device type disk
6> format="+DATA"
7> maxpiecesize=200M
8> rate=50M;
9> allocate channel ch2
10> device type disk
11> format="/SHARED/backup1/%U"
12> maxpiecesize=100M
13> rate=30M;
14> backup datafile 1,2;
15> release channel ch1;
16> release channel ch2;
17> }
18>
using target database control file instead of recovery catalog
allocated channel: ch1
channel ch1: SID=24 device type=DISK
allocated channel: ch2
channel ch2: SID=44 device type=DISK
Starting backup at 14-MAY-14
channel ch1: starting compressed full datafile backup set
channel ch1: specifying datafile(s) in backup set
input datafile file number=00001 name=+DATA/cvrman/datafile/system.256.847354793
channel ch1: starting piece 1 at 14-MAY-14
channel ch2: starting compressed full datafile backup set
channel ch2: specifying datafile(s) in backup set
input datafile file number=00002 name=+DATA/cvrman/datafile/sysaux.257.847354793
channel ch2: starting piece 1 at 14-MAY-14
channel ch2: finished piece 1 at 14-MAY-14
piece handle=/SHARED/backup1/32p87rdk_1_1 tag=TAG20140514T023426 comment=NONE
channel ch2: backup set complete, elapsed time: 00:02:56
channel ch2: throttle time: 0:00:01
channel ch2: starting compressed full datafile backup set
channel ch2: specifying datafile(s) in backup set
including current control file in backup set
channel ch2: starting piece 1 at 14-MAY-14
channel ch2: finished piece 1 at 14-MAY-14
piece handle=/SHARED/backup1/33p87rj6_1_1 tag=TAG20140514T023426 comment=NONE
channel ch2: backup set complete, elapsed time: 00:00:03
channel ch2: starting compressed full datafile backup set
channel ch2: specifying datafile(s) in backup set
including current SPFILE in backup set
channel ch2: starting piece 1 at 14-MAY-14
channel ch2: finished piece 1 at 14-MAY-14
piece handle=/SHARED/backup1/34p87rjd_1_1 tag=TAG20140514T023426 comment=NONE
channel ch2: backup set complete, elapsed time: 00:00:01
channel ch1: finished piece 1 at 14-MAY-14
piece handle=+DATA/cvrman/backupset/2014_05_14/nnndf0_tag20140514t023426_0.289.847506867 tag=TAG20140514T023426 comment=NONE
channel ch1: backup set complete, elapsed time: 00:04:42
Finished backup at 14-MAY-14
released channel: ch1
released channel: ch2
No comments:
Post a Comment