NBU恢復Oracle數據文件或者控制文件步驟:
1.先在NBU master上查詢client端的備份信息:數據庫
2.啓動數據庫到nomount狀態:
SQL> startup nomount;
ORACLE instance started.oracle
Total System Global Area 567869440 bytes
Fixed Size 2215384 bytes
Variable Size 369099304 bytes
Database Buffers 192937984 bytes
Redo Buffers 3616768 byteside
3.進入rman中恢復控制文件。
RMAN> run {
2> allocate channel ch00 type sbt_tape;
3> SEND 'NB_ORA_SERV=master,NB_ORA_CLIENT=client';
4> restore controlfile to '/tmp/control.bak' from ' /cntrl_47_1_960598675';
5> release channel ch00;
6> }rest
run {
replicate controlfile from '/tmp/control.bak';
}it
4.mount數據庫.
SQL> alter database mount;
Database altered.ast
5恢復數據文件
RMAN> run {
2> allocate channel ch00 type sbt_tape;
3> SEND 'NB_ORA_SERV=master,NB_ORA_CLIENT=client';
4> set until time "to_date('2012-08-09:00:00:00','YYYY-MM-DD:HH24:MI:SS')";
5> restore database;
6> release channel ch00;
7> }class
6.啓動oracle數據庫。
Alter database open resetlog;cli