Oracle基于RMAN的不完全恢复(三)

2014-11-24 09:05:56 · 作者: · 浏览: 2
Recovery Manager complete.
[oracle@zwc ~]$ sqlplus zhongwc/zhongwc
SQL*Plus: Release 11.2.0.3.0 Production on Tue Feb 5 10:57:28 2013
Copyright (c) 1982, 2011, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> select * from t_rec;
ID NAME
---------- ----------
1 aaa
2 bbb
3 ccc
4 ddd
5 eee
6 fff
6 rows selected.
基于log seq
[oracle@zwc ~]$ rman target /
Recovery Manager: Release 11.2.0.3.0 - Production on Tue Feb 5 13:57:53 2013
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
connected to target database: ZWC (DBID=561451333)
run{
allocate channel c1 device type disk;
backup full database format '/u01/backup/db_full_%U' tag 'fullbak2'
include current controlfile;
sql 'alter system archive log current';
release channel c1;
4> 5> 6> 7> }
using target database control file instead of recovery catalog
allocated channel: c1
channel c1: SID=18 device type=DISK
Starting backup at 05-FEB-2013 13:58:12
channel c1: starting full datafile backup set
channel c1: specifying datafile(s) in backup set
input datafile file number=00001 name=/u01/app/oracle/oradata/ZWC/system01.dbf
input datafile file number=00002 name=/u01/app/oracle/oradata/ZWC/sysaux01.dbf
input datafile file number=00005 name=/u01/app/oracle/oradata/ZWC/example01.dbf
input datafile file number=00003 name=/u01/app/oracle/oradata/ZWC/undotbs01.dbf
input datafile file number=00004 name=/u01/app/oracle/oradata/ZWC/users01.dbf
channel c1: starting piece 1 at 05-FEB-2013 13:58:13
channel c1: finished piece 1 at 05-FEB-2013 13:59:08
piece handle=/u01/backup/db_full_03o179nl_1_1 tag=FULLBAK2 comment=NONE
channel c1: backup set complete, elapsed time: 00:00:55
channel c1: starting full datafile backup set
channel c1: specifying datafile(s) in backup set
including current control file in backup set
including current SPFILE in backup set
channel c1: starting piece 1 at 05-FEB-2013 13:59:09
channel c1: finished piece 1 at 05-FEB-2013 13:59:10
piece handle=/u01/backup/db_full_04o179pc_1_1 tag=FULLBAK2 comment=NONE
channel c1: backup set complete, elapsed time: 00:00:01
Finished backup at 05-FEB-2013 13:59:11
sql statement: alter system archive log current
released channel: c1
RMAN> exit
Recovery Manager complete.
[oracle@zwc ~]$ sqlplus zhongwc/zhongwc
SQL*Plus: Release 11.2.0.3.0 Production on Tue Feb 5 14:00:07 2013
Copyright (c) 1982, 2011, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> show user
USER is "ZHONGWC"
SQL> select * from t_rec;
ID NAME
---------- ----------
1 aaa
2 bbb
3 ccc
4 ddd
5 eee
6 fff
6 rows selected.
SQL> archive log list
ORA-01031: insufficient pr