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

2014-11-24 09:05:56 · 作者: · 浏览: 5
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
[oracle@zwc ~]$ rman target /
Recovery Manager: Release 11.2.0.3.0 - Production on Tue Feb 5 14:13:43 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 'fullbak3'
include current controlfile;
sql 'alter system archive log current';
release channel c1;
7> }
using target database control file instead of recovery catalog
allocated channel: c1
channel c1: SID=36 device type=DISK
Starting backup at 05-FEB-2013 14:13:52
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 14:13:52
channel c1: finished piece 1 at 05-FEB-2013 14:14:57
piece handle=/u01/backup/db_full_05o17al0_1_1 tag=FULLBAK3 comment=NONE
channel c1: backup set complete, elapsed time: 00:01:05
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 14:14:58
channel c1: finished piece 1 at 05-FEB-2013 14:14:59
piece handle=/u01/backup/db_full_06o17an1_1_1 tag=FULLBAK3 comment=NONE
channel c1: backup set complete, elapsed time: 00:00:01
Finished backup at 05-FEB-2013 14:14:59
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:15:12 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> insert into t_rec values(7,'ggg');
1 row created.
SQL> commit;
Commit complete.
SQL> alter session set nls_date_format='yyyy-mm-dd hh24:mi:ss';
Session altered.
SQL> select sysdate from dual;
SYSDATE
-------------------
2013-02-05 14:16:33
SQL> insert into t_rec values(8,'hhh');
1 row created.
SQL> commit;
Commit complete.
SQL> select * from t_rec;
ID NAME
---------- ----------
1 aaa
2 bbb
3 ccc
4 ddd
5 eee
6 fff
7 ggg
8 hhh
8 rows selected.
SQL> conn / as sysdba
Connected.
SQL> shut