04-07-2013 01:52 AM
Hi all
we need to know how to restore SP file in oracle over ( linux RH ) the master is over win 2008 and the client is standalone ORACLE server over linux
Thank You
04-07-2013 05:01 AM
I usually determine backup handle(Oracle's term) which include SPFILE backup by logs or output of bplist. Then run as blow in RMAN prompt.
SET DBID=<DBID of target DB>
STARTUP FORCE NOMOUNT:
RUN {
ALLOCATE CHANNEL t1 TYPE sbt;
RESTORE CONTROLFILE FROM 'backup_handle_which_has_SPFILE_backup';
RELEASE CHANNEL t1;
}
If you have configured Oracle backup with template, last backup in backup session which backed up "/bk_..." includes SPFILE. Omit first slash and use "bk_..." as backup handle.
04-08-2013 06:28 PM
Just curious what happens if you have a duplicate backup handle name for that database you are restoring?