WEB开发网
开发学院数据库Oracle ORACLE备份&恢复案例(2) 阅读

ORACLE备份&恢复案例(2)

 2008-09-09 12:52:41 来源:WEB开发网   
核心提示: 2、备份数据库C:>rmanRecovery Manager: Release 8.1.6.0.0 - ProductionRMAN> connect rcvcat rman/rman@backRMAN-06008: connected to recovery catalog

2、备份数据库

C:>rman
Recovery Manager: Release 8.1.6.0.0 - Production
RMAN> connect rcvcat rman/rman@back
RMAN-06008: connected to recovery catalog database
RMAN> connect target internal/virpure
RMAN-06005: connected to target database: TEST (DBID=874705288)
RMAN> run{
2> allocate channel c1 type disk;
3> backup full tag 'dbfull' format 'd:backupfull%u_%s_%p' database
4> include current controlfile;
5> sql 'alter system archive log current';
6> release channel c1;
7> }
RMAN-03022: compiling command: allocate
RMAN-03023: executing command: allocate
RMAN-08030: allocated channel: c1
RMAN-08500: channel c1: sid=12 devtype=DISK
RMAN-03022: compiling command: backup
RMAN-03023: executing command: backup
RMAN-08008: channel c1: starting full datafile backupset
RMAN-08502: set_count=1 set_stamp=494607834 creation_time=21-MAY-03
RMAN-08010: channel c1: specifying datafile(s) in backupset
RMAN-08522: input datafile fno=00001 name=D:ORACLEORADATATESTSYSTEM01.DBF
RMAN-08011: including current controlfile in backupset
RMAN-08522: input datafile fno=00002 name=D:ORACLEORADATATESTRBS01.DBF
RMAN-08522: input datafile fno=00003 name=D:ORACLEORADATATESTUSERS01.DBF
RMAN-08522: input datafile fno=00004 name=D:ORACLEORADATATESTTEMP01.DBF
RMAN-08522: input datafile fno=00005 name=D:ORACLEORADATATESTTOOLS01.DBF
RMAN-08522: input datafile fno=00006 name=D:ORACLEORADATATESTINDX01.DBF
RMAN-08013: channel c1: piece 1 created
RMAN-08503: piece handle=D:BACKUPFULL01ENM7EQ_1_1 comment=NONE
RMAN-08525: backup set complete, elapsed time: 00:00:16
RMAN-03023: executing command: partial resync
RMAN-08003: starting partial resync of recovery catalog
RMAN-08005: partial resync complete
RMAN-03022: compiling command: sql
RMAN-06162: sql statement: alter system archive log current
RMAN-03023: executing command: sql
RMAN-03022: compiling command: release
RMAN-03023: executing command: release
RMAN-08031: released channel: c1
RMAN>

上一页  1 2 3 4 5 6 7 8 9 10  下一页

Tags:ORACLE 备份 amp

编辑录入:爽爽 [复制链接] [打 印]
赞助商链接