Rman Copy (sh)


rman <<EOF
connect target rman/rman_oracledba@test2 
connect catalog rman/rman_oracledba@test1
run { allocate channel d1 type disk;
copy datafile '/data/oracle/TEST2/dataTEST2.dbf' 
to '/data/oracle/BACKUP/dataTEST2.dbf';
copy datafile '/data/oracle/TEST2/rbsTEST2.dbf' 
to '/data/oracle/BACKUP/rbsTEST2.dbf';
copy datafile '/data/oracle/TEST2/tempTEST2.dbf' 
to '/data/oracle/BACKUP/tempTEST2.dbf';
copy datafile '/data/oracle/TEST2/systemTEST2.dbf' 
to '/data/oracle/BACKUP/systemTEST2.dbf';
copy current controlfile to '/data/oracle/BACKUP/ctrlTEST201.ctl';
}
EOF
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: