无视这篇博文,没有写全,部分文件未迁移成功。
此前已经恢复过一个库
现在进行第二个库的恢复
切换一个没有用的实例名并登陆rman
$ export ORACLE_SID=PROD10
$ rman target /
Recovery Manager: Release 11.2.0.4.0 - Production on Sun Jan 3 20:47:27 2016
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
connected to target database (not started)
没有初始换参数文件的时候startup nomount 时RMAN会构造一个伪实例
RMAN> startup nomount;
startup failed: ORA-01078: failure in processing system parameters
LRM-00109: could not open parameter file '/u01/app/oracle/product/11.2.0.4/db_1/dbs/initPROD10.ora'
starting Oracle instance without parameter file for retrieval of spfile
Oracle instance started
Total System Global Area 1068937216 bytes
Fixed Size 2260088 bytes
Variable Size 281019272 bytes
Database Buffers 780140544 bytes
Redo Buffers 5517312 bytes
指定备份集恢复spfile
RMAN> restore spfile from '/home/oracle/flash/PROD1/autobackup/2016_01_03/o1_mf_s_900189930_c8l5zb4v_.bkp';
Starting restore a