备份与恢复:用rman方式基于时间的不完全恢复
上一篇 / 下一篇 2008-04-10 10:45:28 / 个人分类:rman备份与恢复
C:\Documents and Settings\Paul Yi>sqlplus "/as sysdba"
SQL*Plus: Release 9.2.0.4.0 - Production on Thu Apr 10 10:28:39 2008
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
;}$lJl?0Connected to:ITPUB个人空间PiD c`4Q
Oracle9i Enterprise Edition Release 9.2.0.4.0 - ProductionITPUB个人空间/|e/p9o{
With the Partitioning, OLAP and Oracle Data Mining optionsITPUB个人空间ZK3s?J8Q/P}
JServer Release 9.2.0.4.0 - Production
SQL> create table test (a int);
Table created.
SQL> insert into test values(1);
1 row created.
SQL> commit;
Commit complete.
SQL> hostITPUB个人空间N$dw6d
z7v"Jd
Microsoft Windows XP [Version 5.1.2600]ITPUB个人空间Za7`1Z)ou
(C) Copyright 1985-2001 Microsoft Corp.
C:\Documents and Settings\Paul Yi>rman target /
Recovery Manager: Release 9.2.0.4.0 - Production
Copyright (c) 1995, 2002, Oracle Corporation. All rights reserved.
connected to target database: PUBTEST (DBID=796553641)
RMAN> runITPUB个人空间)xf{4L(eA?
2> {allocate channel c1 type disk;ITPUB个人空间j\S%|?Q0i@)q
3> backup full tag 'dbfull' format 'd:\backup\full%U_%s_%p' databaseITPUB个人空间_7M.UK#c
jKUr'H
4> include current controlfile;ITPUB个人空间X+KB#zWx`
5> sql 'alter system archive log current';
vJ oP y&D06> release channel c1;ITPUB个人空间}r.P3t;`7H
7> }
using target database controlfile instead of recovery catalog
&gN6Z%n?m1v0allocated channel: c1
5x(}{
SD5S
@0channel c1: sid=19 devtype=DISK
Starting backup at 10-APR-08
`%FE6{5U5a6kY e ]0channel c1: starting full datafile backupsetITPUB个人空间np
~0E
\ r
channel c1: specifying datafile(s) in backupsetITPUB个人空间\8?/L4{v9sg'wK
including current SPFILE in backupset
R1G7U2X6{R!C _M~1v(F[0including current controlfile in backupsetITPUB个人空间/C.E(]9~#c*b&f&x A*@
input datafile fno=00001 name=D:\ORACLE\ORADATA\PUBTEST\SYSTEM01.DBF
tMw6Wwk9Cu0input datafile fno=00004 name=D:\ORACLE\ORADATA\PUBTEST\TOOLS01.DBFITPUB个人空间H
UZbI0vy5MR
input datafile fno=00002 name=D:\ORACLE\ORADATA\PUBTEST\UNDOTBS01.DBFITPUB个人空间2i(RT0?Fo7n|'qd
input datafile fno=00003 name=D:\ORACLE\ORADATA\PUBTEST\INDX01.DBF
d(AfESw{0input datafile fno=00005 name=D:\ORACLE\ORADATA\PUBTEST\USERS01.DBF
m]
ub2f0channel c1: starting piece 1 at 10-APR-08