有完整的rman 备份,现在oracle 的所有数据文件都没有了,就需要恢复,但是如何先恢复spfile 或者pfile 文件呢?
RMAN> connect target /;
connected to target database (not started)
RMAN> restore spfile from '/export/home/oracle/rmanbk/c-2839236012-20060509-02';
Starting restore at 09-MAY-06
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 05/09/2006 09:51:22
RMAN-12010: automatic channel allocation initialization failed
RMAN-06403: could not obtain a fully authorized session
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
SVR4 Error: 2: No such file or directory
RMAN> restore spfile to pfile '/export/home/oracle/rmanbk/pfile.ora' from autobackup;
Starting restore at 09-MAY-06
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 05/09/2006 09:52:57
RMAN-12010: automatic channel allocation initialization failed
RMAN-06403: could not obtain a fully authorized session
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
SVR4 Error: 2: No such file or directory
RMAN> restore spfile to pfile '/export/home/oracle/rmanbk/pfile.ora' from '/export/home/oracle/rmanbk/c-2839236012-20060509-02';
Starting restore at 09-MAY-06
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 05/09/2006 09:53:26
RMAN-12010: automatic channel allocation initialization failed
RMAN-06403: could not obtain a fully authorized session
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
SVR4 Error: 2: No such file or directory