Thursday, 2 October 2014

RMAN Automatic Script : Backup datafile

rman <<EOF
connect target rman/rman_oracledba@test2
connect catalog rman/rman_oracledba@test1
run { allocate channel d1 type disk;
backup datafile '/data/oracle/TEST2/dataTEST2.dbf' 
filesperset 2  include current controlfile 
format '/data/oracle/BACKUP/rman_DF_%d.%t.%p.%c.bus';
}
EOF

No comments:

Post a Comment