Chinaunix首页 | 论坛 | 博客
  • 博客访问: 53305
  • 博文数量: 17
  • 博客积分: 1466
  • 博客等级: 上尉
  • 技术积分: 210
  • 用 户 组: 普通用户
  • 注册时间: 2010-04-06 17:05
文章分类

全部博文(17)

文章存档

2011年(1)

2010年(16)

分类: Oracle

2010-12-22 13:05:20

$ rman target nocatalog;
Recovery Manager: Release 10.2.0.1.0 - Production on Wed Dec 22 12:48:16 2010
Copyright (c) 1982, 2005, Oracle.  All rights reserved.
connected to target database: ORCL (DBID=1264227650)
using target database control file instead of recovery catalog
RMAN> show all;
RMAN configuration parameters are:
CONFIGURE RETENTION POLICY TO REDUNDANCY 1; # default
CONFIGURE BACKUP OPTIMIZATION OFF; # default
CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
CONFIGURE CONTROLFILE AUTOBACKUP OFF; # default
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default
CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO BACKUPSET; # default
CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE MAXSETSIZE TO UNLIMITED; # default
CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/home/oracle/product/10.2.0/dbs/snapcf_orcl.f'; # default
RMAN> CONFIGURE CONTROLFILE AUTOBACKUP ON;
new RMAN configuration parameters:
CONFIGURE CONTROLFILE AUTOBACKUP ON;
new RMAN configuration parameters are successfully stored
RMAN> configure channel device type disk format '/home/oracle/backup/full_backup/%U';
new RMAN configuration parameters:
CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT   '/home/oracle/backup/full_backup/%U';
new RMAN configuration parameters are successfully stored
RMAN> show all;
RMAN configuration parameters are:
CONFIGURE RETENTION POLICY TO REDUNDANCY 1; # default
CONFIGURE BACKUP OPTIMIZATION OFF; # default
CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
CONFIGURE CONTROLFILE AUTOBACKUP ON;
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default
CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO BACKUPSET; # default
CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT   '/home/oracle/backup/full_backup/%U';
CONFIGURE MAXSETSIZE TO UNLIMITED; # default
CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/home/oracle/product/10.2.0/dbs/snapcf_orcl.f'; # default
RMAN> backup database plus archivelog;

Starting backup at 22-DEC-10
current log archived
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=159 devtype=DISK
channel ORA_DISK_1: starting archive log backupset
channel ORA_DISK_1: specifying archive log(s) in backup set
input archive log thread=1 sequence=5 recid=1 stamp=738334027
input archive log thread=1 sequence=6 recid=2 stamp=738334042
input archive log thread=1 sequence=7 recid=3 stamp=738334210
input archive log thread=1 sequence=8 recid=4 stamp=738334784
input archive log thread=1 sequence=9 recid=5 stamp=738420802
channel ORA_DISK_1: starting piece 1 at 22-DEC-10
channel ORA_DISK_1: finished piece 1 at 22-DEC-10
piece handle=/home/oracle/backup/full_backup/01m06q25_1_1 tag=TAG20101222T125324 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:04
Finished backup at 22-DEC-10
Starting backup at 22-DEC-10
using channel ORA_DISK_1
channel ORA_DISK_1: starting full datafile backupset
channel ORA_DISK_1: specifying datafile(s) in backupset
input datafile fno=00001 name=/home/oracle/oradata/orcl/system01.dbf
input datafile fno=00006 name=/home/oracle/oradata/orcl/tan.dbf
input datafile fno=00003 name=/home/oracle/oradata/orcl/sysaux01.dbf
input datafile fno=00005 name=/home/oracle/oradata/orcl/example01.dbf
input datafile fno=00002 name=/home/oracle/oradata/orcl/undotbs01.dbf
input datafile fno=00004 name=/home/oracle/oradata/orcl/users01.dbf
channel ORA_DISK_1: starting piece 1 at 22-DEC-10
channel ORA_DISK_1: finished piece 1 at 22-DEC-10
piece handle=/home/oracle/backup/full_backup/02m06q2b_1_1 tag=TAG20101222T125330 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:03:38
Finished backup at 22-DEC-10
Starting backup at 22-DEC-10
current log archived
using channel ORA_DISK_1
channel ORA_DISK_1: starting archive log backupset
channel ORA_DISK_1: specifying archive log(s) in backup set
input archive log thread=1 sequence=10 recid=6 stamp=738421031
channel ORA_DISK_1: starting piece 1 at 22-DEC-10
channel ORA_DISK_1: finished piece 1 at 22-DEC-10
piece handle=/home/oracle/backup/full_backup/03m06q9c_1_1 tag=TAG20101222T125713 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:02
Finished backup at 22-DEC-10
Starting Control File and SPFILE Autobackup at 22-DEC-10
piece handle=/home/oracle/product/10.2.0/dbs/c-1264227650-20101222-00 comment=NONE
Finished Control File and SPFILE Autobackup at 22-DEC-10
RMAN> list backup of database;

List of Backup Sets
===================
BS Key  Type LV Size       Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
2       Full    599.73M    DISK        00:03:27     22-DEC-10     
        BP Key: 2   Status: AVAILABLE  Compressed: NO  Tag: TAG20101222T125330
        Piece Name: /home/oracle/backup/full_backup/02m06q2b_1_1
  List of Datafiles in backup set 2
  File LV Type Ckp SCN    Ckp Time  Name
  ---- -- ---- ---------- --------- ----
  1       Full 691932     22-DEC-10 /home/oracle/oradata/orcl/system01.dbf
  2       Full 691932     22-DEC-10 /home/oracle/oradata/orcl/undotbs01.dbf
  3       Full 691932     22-DEC-10 /home/oracle/oradata/orcl/sysaux01.dbf
  4       Full 691932     22-DEC-10 /home/oracle/oradata/orcl/users01.dbf
  5       Full 691932     22-DEC-10 /home/oracle/oradata/orcl/example01.dbf
  6       Full 691932     22-DEC-10 /home/oracle/oradata/orcl/tan.dbf
RMAN>
$ pwd
/home/oracle/backup
$ cd full_backup
$ ls
01m06q25_1_1  02m06q2b_1_1
$ ls -al
total 1257162
drwxr-xr-x   2 oracle   oinstall        512 Dec 22 12:57 .
drwxr-xr-x   3 oracle   oinstall        512 Dec 22 12:57 ..
-rw-r-----   1 oracle   oinstall   14681088 Dec 22 12:53 01m06q25_1_1
-rw-r-----   1 oracle   oinstall  628867072 Dec 22 12:56 02m06q2b_1_1
-rw-r-----   1 oracle   oinstall     114688 Dec 22 12:57 03m06q9c_1_1
阅读(689) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~