1简单说明:
版本:11.2.0.3
平台:linux-x86-64 到 win7-64bit
实例: bdstar1,bdstar2 还原到 bdstar 上
参考:三思笔记数据库备份与恢复
2 windows平台系统恢复环境创建
创建实例:oradim -new -sid bdstar
编写一个简单的参数文件:
*.audit_file_dest='E:\app\Administrator\admin\bdstar\adump'
*.audit_trail='db'
*.compatible='11.2.0.0.0'
*.control_files='E:\app\Administrator\oradata\bdstar\control01.ctl'
*.db_block_size=8192
*.db_domain=''
*.db_name='bdstar'
*.dispatchers='(PROTOCOL=TCP) (SERVICE=bdstarXDB)'
*.nls_language='SIMPLIFIED CHINESE'
*.nls_territory='CHINA'
*.open_cursors=300
*.pga_aggregate_target=184549376
*.processes=150
*.remote_login_passwordfile='exclusive'
*.sga_target=553648128
*.undo_tablespace='UNDOTBS1'
bdstar.__oracle_base='E:\app\Administrator'#ORACLE_BASE set from environment
3控制文件的创建
set oracle_sid=bdstar --设置环境变量
C:\Users\Administrator>sqlplus / as sysdba
SQL*Plus: Release 11.2.0.3.0 Production on星期二 9月 11 10:02:23 2012
Copyright (c) 1982, 2011, Oracle. All rights reserved.
已连接到空闲例程。
SQL> startup nomount
ORACLE例程已经启动。
Total System Global Area 551165952 bytes
Fixed Size 2257072 bytes
Variable Size 171970384 bytes
Database Buffers 369098752 bytes
Redo Buffers 7839744 bytes
SQL> create spfile from pfile;
--转入到RMAN还原控制文件
RMAN > set dbid=165487523 --dbid可是从备份文件的log日志获得
--从linux中将备份全部复制到windows下的d:\oraback\下
RMAN > restore controfile from 'd:\oraback\1_32_793037884.dbf' --该文件为linux rac下autobackup control文件
RMAN > alter database mount;
--下面就可以看到RAC数据库中的一些基本情况了,根据这些基本情况进行还原
SQL> select file#,name from v$datafile;
FILE# NAME
------------------------------------------------------------------------------------------
1 +DATA/bdstar/datafile/system.256.793037767
2 +DATA/bdstar/datafile/sysaux.257.793037769
3 +DATA/bdstar/datafile/undotbs1.258.793037769
FILE# NAME
------------------------------------------------------------------------------------------
4 &n