After restoring the controlfile to "/u02/oracle/testdb/" directory, shutdown the instance and copy just restored controlfile to original locations
$sqlplus
Enter User: / as sysdba
SQL>shutdown immediate;
SQL>Exit
$
Copy controlfile to original locations
$ cp control.ora ./test/control01.ctl
$ cp control.ora
./test/control02.ctl
Start RMAN and Start and mount the database
Now give RESTORE DATABASE command
RMAN> restore database
Interface Computers Academy © 2007-2017 All Rights Reserved