RMAN restores - parameterisation - shell scripts
Thank you...
We have decided to RMAN restore or production database to one dev database and then use that to restore the other dev databases...
We are not an RMAN site and have been provided a set of RMAN scripts which work but need to run in 3 steps.
I would like to run them as a shell script, which runs after the RMAN backup files are copied across..
I list them below:
01.
connect target /
run {
allocate channel c1 device type disk;
RESTORE CONTROLFILE FROM '/u02/backup/APGATE/CNTRL_c-828018631-20120620-00';
sql "alter database mount";
SET NEWNAME FOR DATAFILE '/u02/oradata/APGATE/datafile/ts_applegate01.dbf' TO '/u02/oradata/APGATE/ts_applegate01.dbf';