RMAN scripts.
Thank you for your help...
I am not too familiar with RMAN, and have been given a set of scripts that will help us restore a database from an RMAN backup..
However, the script fails:
I detail the scripts:
<database in nomount state>
05. On target server:
startup nomount;
06. rman target /
configure controlfile autobackup format for device type DISK to '/u02/backup/APGATE/CNTRL_%F';
run {
allocate channel c1 device type disk;
restore controlfile from autobackup;
sql "alter database mount";
}
07. rman target /
run {
restore database;
switch datafiles all;
}
08. rman target /
list backup of archivelog all;
09. rman target /
recover database until sequence=<from step 8>