rman duplicate standby using active clone

Oracle Tips and Tricks
Post Reply
thockman
Site Admin
Posts: 104
Joined: Thu Dec 15, 2005 5:51 pm
Location: Kansas City
Contact:

rman duplicate standby using active clone

Post by thockman » Thu Jan 22, 2015 6:06 pm

Code: Select all

#!/usr/bin/ksh
#nohup /home/oracle/active_clone.ksh 1>>/home/oracle/active_clone.log 2>&1 &
export ORACLE_HOME=/u01/oracle/product/11.2.0.4/db
export ORACLE_SID=stndby1
unset TNS_ADMIN
/u01/oracle/product/11.2.0.4/db/bin/rman target sys/sourcesyspass@source1 auxiliary sys/sourcesyspass@standby1 <<EOF
set echo on;
run {
allocate channel c1 type disk;
allocate channel c2 type disk;
allocate channel c3 type disk;
allocate channel c4 type disk;
allocate auxiliary channel d1 type disk;
allocate auxiliary channel d2 type disk;
allocate auxiliary channel d3 type disk;
allocate auxiliary channel d4 type disk;
duplicate target database for standby  from active database ;
}
exit
EOF

echo "`date`: Active Clone complete." | mailx -s "Active clone complete" test@test.com


Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest