Full Rman backup send it the AVAMAR system


"###########Anar Godjaev###################"
rman target / << EOF
run {
configure controlfile autobackup on;
set controlfile autobackup format for device type sbt to 'CONTROLFILE.KBAZER.%F';
allocate channel c0 type sbt PARMS="SBT_LIBRARY=/opt/AVMRclnt/ora_rac/lib/libobk_avamar64.so" format 'data_%d_%I_%s_%p_%U';
send channel 'c0' '"--flagfile=/u01/my-avtar-flags.txt" "--cacheprefix=KBAZER_c0" "--sysdir=/opt/AVMRclnt/ora_rac/etc" "--bindir=/opt/AVMRclnt/ora_rac/bin" "--vardir=/opt/AVMRclnt/ora_rac/var" "--ctlcallport=44602"';
allocate channel c1 type sbt PARMS="SBT_LIBRARY=/opt/AVMRclnt/ora_rac/lib/libobk_avamar64.so" format 'data_%d_%I_%s_%p_%U';
send channel 'c1' '"--flagfile=/u01/my-avtar-flags.txt" "--cacheprefix=KBAZER_c1" "--sysdir=/opt/AVMRclnt/ora_rac/etc" "--bindir=/opt/AVMRclnt/ora_rac/bin" "--vardir=/opt/AVMRclnt/ora_rac/var" "--ctlcallport=44602"';
backup incremental level = 0 database;
release channel c0;
release channel c1;
sql 'alter system archive log current';
allocate channel c0 type sbt PARMS="SBT_LIBRARY=/opt/AVMRclnt/ora_rac/lib/libobk_avamar64.so" format 'arch_%d_%I_%s_%p_%U';
send channel 'c0' '"--flagfile=/u01/my-avtar-flags.txt" "--cacheprefix=KBAZER_c0" "--sysdir=/opt/AVMRclnt/ora_rac/etc" "--bindir=/opt/AVMRclnt/ora_rac/bin" "--vardir=/opt/AVMRclnt/ora_rac/var" "--ctlcallport=44602"';
allocate channel c1 type sbt PARMS="SBT_LIBRARY=/opt/AVMRclnt/ora_rac/lib/libobk_avamar64.so" format 'arch_%d_%I_%s_%p_%U';
send channel 'c1' '"--flagfile=/u01/my-avtar-flags.txt" "--cacheprefix=KBAZER_c1" "--sysdir=/opt/AVMRclnt/ora_rac/etc" "--bindir=/opt/AVMRclnt/ora_rac/bin" "--vardir=/opt/AVMRclnt/ora_rac/var" "--ctlcallport=44602"';
BACKUP filesperset 30 ARCHIVELOG LIKE '+ARCH/%' DELETE INPUT;
release channel c0;
release channel c1;
}
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: