RMAN深入解析之--Incarnation应用(不完全恢复)(四)

2014-11-24 17:17:49 · 作者: · 浏览: 1
)


----------


35


Elapsed: 00:00:00.02


17:43:48 SCOTT@ prod>delete from emp1;


35 rows deleted.


Elapsed: 00:00:00.04


17:43:56 SCOTT@ prod>commit;


Commit complete.


Elapsed: 00:00:00.01


17:43:58 SCOTT@ prod>insert into emp1 select * from emp where empno=7788;


1 row created.


Elapsed: 00:00:00.01


17:44:09 SCOTT@ prod>update emp1 set empno=8888;


1 row updated.


Elapsed: 00:00:00.01


17:44:16 SCOTT@ prod>commit;


Commit complete.


Elapsed: 00:00:00.02


17:44:17 SCOTT@ prod>select * from emp1;


EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO


---------- ---------- --------- ---------- --------- ---------- ---------- ----------


8888 SCOTT ANALYST 7566 19-APR-87 3000 20


Elapsed: 00:00:00.03



2、通过rman做不完全恢复


RMAN> run {


set until scn 2124840;


2> shutdown immediate;


3> 4> startup mount;


5> restore database;


6> recover database;


7> alter database open resetlogs;


8> sql'alter system switch logfile';


9> }


executing command: SET until clause


database closed


database dismounted


Oracle instance shut down


connected to target database (not started)


Oracle instance started


database mounted


Total System Global Area 835104768 bytes


Fixed Size 2217952 bytes


Variable Size 775948320 bytes


Database Buffers 54525952 bytes


Redo Buffers 2412544 bytes


Starting restore at 15-JUL-14


allocated channel: ORA_DISK_1


channel ORA_DISK_1: SID=18 device type=DISK


channel ORA_DISK_1: starting datafile backup set restore


channel ORA_DISK_1: specifying datafile(s) to restore from backup set


channel ORA_DISK_1: restoring datafile 00001 to /u01/app/oracle/oradata/prod/system01.dbf


channel ORA_DISK_1: restoring datafile 00002 to /u01/app/oracle/oradata/prod/sysaux01.dbf


channel ORA_DISK_1: restoring datafile 00003 to /u01/app/oracle/oradata/prod/undotbs1.dbf


channel ORA_DISK_1: restoring datafile 00004 to /u01/app/oracle/oradata/prod/users01.dbf


channel ORA_DISK_1: restoring datafile 00005 to /u01/app/oracle/oradata/prod/example01.dbf


channel ORA_DISK_1: restoring datafile 00006 to /u01/app/oracle/oradata/prod/tbs1.dbf


channel ORA_DISK_1: restoring datafile 00007 to /u01/app/oracle/oradata/prod/undotbs2.dbf


channel ORA_DISK_1: restoring datafile 00008 to /u01/app/oracle/oradata/prod/perftbs01.dbf


channel ORA_DISK_1: reading from backup piece /u01/app/oracle/product/11.2.0/db_1/dbs/0lpcfu61_1_1


channel ORA_DISK_1: piece handle=/u01/app/oracle/product/11.2.0/db_1/dbs/0lpcfu61_1_1 tag=TAG20140703T171545


channel ORA_DISK_1: restored backup piece 1


channel ORA_DISK_1: restore complete, elapsed time: 00:01:25


Finished restore at 15-JUL-14


Starting recover at 15-JUL-14


using channel ORA_DISK_1


starting media recovery


archived log for thread 1 with sequence 17 is already on disk as file /dsk4/arch1/arch_1_17_851265252.log


archived log for thread 1 with sequence 18 is already on disk as file /dsk4/arch1/arch_1_18_851265252.log


archived log for thread 1 with sequence 19 is already on disk as file /dsk4/arch1/arch_1_19_851265252.log


archived log for thread 1 with sequence 20 is already on disk as file /dsk4/arch1/arch_1_20_851265252.log


archived log for thread 1 with sequence 1 is already on disk as file /dsk4/arch1/arch_1_1_853003284.log


archived log file name=/dsk4/arch1/arch_1_17_851265252.log thread=1 sequence=17


archived log file name=/dsk4/arch1/arch_1_18_851265252.log thread=1 sequence=1