例如备份user表空间,指定备份集对应文件

$ sqlplus / as sysdba

SQL*Plus: Release 11.2.0.4.0 Production on 9 10:32:05 2021

Copyright (c) 1982, 2013, Oracle.  All rights reserved.

Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> set line 160
SQL> set wrap off
SQL> select file_id,file_name from dba_data_files where tablespace_name='JYC';

FILE_ID FILE_NAME
---------- -----------------------------------------------------------------------------------------------------------------------------------------------------
         5 /oracle/oradata/pri/jyc.dbf
         7 /oracle/oradata/pri/jyc2.dbf
         8 /oracle/oradata/pri/jyc3.dbf
         9 /oracle/oradata/pri/jyc4.dbf
        10 /oracle/oradata/pri/jyc5.dbf
        11 /oracle/oradata/pri/jyc6.dbf
        12 /oracle/oradata/pri/jyc7.dbf
        13 /oracle/oradata/pri/jyc8.dbf

8 rows selected.

SQL>

0级备份指定备份集数据文件

注意:datafile只能用逗,号隔开,不可以用中横杠-这种方式。备份路径必须在通道后指定,否则会备份到$ORACLE_HOME/dbs下。

错误:

正确指定如下:(可惜发现备份了2次,去掉tablespace JYC则正常)

run {
allocate channel t1 type disk format '/home/oracle/rman/jyc0_%U';
allocate channel t2 type disk format '/home/oracle/rman/jyc0_%U';
allocate channel t3 type disk format '/home/oracle/rman/jyc0_%U';
allocate channel t4 type disk format '/home/oracle/rman/jyc0_%U';
backup as backupset incremental level=0 tablespace JYC
datafile 5,7,8 channel t1 tag=jyc0
datafile 9,10 channel t2 tag=jyc0
datafile 11,12 channel t3 tag=jyc0
datafile 13 channel t4 tag=jyc0;
}

RMAN> run {
2> allocate channel t1 type disk format '/home/oracle/rman/jyc0_%U';
3> allocate channel t2 type disk format '/home/oracle/rman/jyc0_%U';
4> allocate channel t3 type disk format '/home/oracle/rman/jyc0_%U';
5> allocate channel t4 type disk format '/home/oracle/rman/jyc0_%U';
6> backup as backupset incremental level=0 tablespace JYC
7> datafile 5,7,8 channel t1 tag=jyc0
8> datafile 9,10 channel t2 tag=jyc0
9> datafile 11,12 channel t3 tag=jyc0
10> datafile 13 channel t4 tag=jyc0;
11> }

allocated channel: t1
channel t1: SID=171 device type=DISK

allocated channel: t2
channel t2: SID=254 device type=DISK

allocated channel: t3
channel t3: SID=89 device type=DISK

allocated channel: t4
channel t4: SID=249 device type=DISK

Starting backup at 19-321
channel t1: starting incremental level 0 datafile backup set
channel t1: specifying datafile(s) in backup set
input datafile file number=00005 name=/oracle/oradata/pri/jyc.dbf
input datafile file number=00007 name=/oracle/oradata/pri/jyc2.dbf
input datafile file number=00008 name=/oracle/oradata/pri/jyc3.dbf
channel t1: starting piece 1 at 19-321
channel t2: starting incremental level 0 datafile backup set
channel t2: specifying datafile(s) in backup set
input datafile file number=00005 name=/oracle/oradata/pri/jyc.dbf
input datafile file number=00013 name=/oracle/oradata/pri/jyc8.dbf
channel t2: starting piece 1 at 19-321
channel t3: starting incremental level 0 datafile backup set
channel t3: specifying datafile(s) in backup set
input datafile file number=00007 name=/oracle/oradata/pri/jyc2.dbf
input datafile file number=00010 name=/oracle/oradata/pri/jyc5.dbf
channel t3: starting piece 1 at 19-321
channel t4: starting incremental level 0 datafile backup set
channel t4: specifying datafile(s) in backup set
input datafile file number=00008 name=/oracle/oradata/pri/jyc3.dbf
input datafile file number=00011 name=/oracle/oradata/pri/jyc6.dbf
channel t4: starting piece 1 at 19-321
channel t1: finished piece 1 at 19-321
piece handle=/home/oracle/rman/jyc0_1rvq4e8v_1_1 tag=JYC0 comment=NONE
channel t1: backup set complete, elapsed time: 00:00:00
channel t1: starting incremental level 0 datafile backup set
channel t1: specifying datafile(s) in backup set
input datafile file number=00009 name=/oracle/oradata/pri/jyc4.dbf
input datafile file number=00012 name=/oracle/oradata/pri/jyc7.dbf
channel t1: starting piece 1 at 19-321
channel t2: finished piece 1 at 19-321
piece handle=/home/oracle/rman/jyc0_1svq4e8v_1_1 tag=TAG20210319T102743 comment=NONE
channel t2: backup set complete, elapsed time: 00:00:00
channel t2: starting incremental level 0 datafile backup set
channel t2: specifying datafile(s) in backup set
input datafile file number=00009 name=/oracle/oradata/pri/jyc4.dbf
input datafile file number=00010 name=/oracle/oradata/pri/jyc5.dbf
channel t2: starting piece 1 at 19-321
channel t1: finished piece 1 at 19-321
piece handle=/home/oracle/rman/jyc0_1vvq4e8v_1_1 tag=TAG20210319T102743 comment=NONE
channel t1: backup set complete, elapsed time: 00:00:00
channel t3: finished piece 1 at 19-321
piece handle=/home/oracle/rman/jyc0_1tvq4e8v_1_1 tag=TAG20210319T102743 comment=NONE
channel t3: backup set complete, elapsed time: 00:00:00
channel t3: starting incremental level 0 datafile backup set
channel t3: specifying datafile(s) in backup set
input datafile file number=00011 name=/oracle/oradata/pri/jyc6.dbf
input datafile file number=00012 name=/oracle/oradata/pri/jyc7.dbf
channel t3: starting piece 1 at 19-321
channel t4: finished piece 1 at 19-321
piece handle=/home/oracle/rman/jyc0_1uvq4e8v_1_1 tag=TAG20210319T102743 comment=NONE
channel t4: backup set complete, elapsed time: 00:00:00
channel t4: starting incremental level 0 datafile backup set
channel t4: specifying datafile(s) in backup set
input datafile file number=00013 name=/oracle/oradata/pri/jyc8.dbf
channel t4: starting piece 1 at 19-321
channel t2: finished piece 1 at 19-321
piece handle=/home/oracle/rman/jyc0_20vq4e8v_1_1 tag=JYC0 comment=NONE
channel t2: backup set complete, elapsed time: 00:00:00
channel t3: finished piece 1 at 19-321
piece handle=/home/oracle/rman/jyc0_21vq4e8v_1_1 tag=JYC0 comment=NONE
channel t3: backup set complete, elapsed time: 00:00:00
channel t4: finished piece 1 at 19-321
piece handle=/home/oracle/rman/jyc0_22vq4e8v_1_1 tag=JYC0 comment=NONE
channel t4: backup set complete, elapsed time: 00:00:01
Finished backup at 19-321
released channel: t1
released channel: t2
released channel: t3
released channel: t4

RMAN> list backup tag=jyc0;

List of Backup Sets
===================

BS Key  Type LV Size       Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
37      Incr 0  1.17M      DISK        00:00:00     19-321     
        BP Key: 37   Status: AVAILABLE  Compressed: NO  Tag: JYC0
        Piece Name: /home/oracle/rman/jyc0_1rvq4e8v_1_1
  List of Datafiles in backup set 37
  File LV Type Ckp SCN    Ckp Time   Name
  ---- -- ---- ---------- ---------- ----
  5    0  Incr 1063259    19-321 /oracle/oradata/pri/jyc.dbf
  7    0  Incr 1063259    19-321 /oracle/oradata/pri/jyc2.dbf
  8    0  Incr 1063259    19-321 /oracle/oradata/pri/jyc3.dbf

BS Key  Type LV Size       Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
42      Incr 0  168.00K    DISK        00:00:00     19-321     
        BP Key: 42   Status: AVAILABLE  Compressed: NO  Tag: JYC0
        Piece Name: /home/oracle/rman/jyc0_20vq4e8v_1_1
  List of Datafiles in backup set 42
  File LV Type Ckp SCN    Ckp Time   Name
  ---- -- ---- ---------- ---------- ----
  9    0  Incr 1063264    19-321 /oracle/oradata/pri/jyc4.dbf
  10   0  Incr 1063264    19-321 /oracle/oradata/pri/jyc5.dbf

BS Key  Type LV Size       Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
43      Incr 0  168.00K    DISK        00:00:00     19-321     
        BP Key: 43   Status: AVAILABLE  Compressed: NO  Tag: JYC0
        Piece Name: /home/oracle/rman/jyc0_21vq4e8v_1_1
  List of Datafiles in backup set 43
  File LV Type Ckp SCN    Ckp Time   Name
  ---- -- ---- ---------- ---------- ----
  11   0  Incr 1063265    19-321 /oracle/oradata/pri/jyc6.dbf
  12   0  Incr 1063265    19-321 /oracle/oradata/pri/jyc7.dbf

BS Key  Type LV Size       Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
44      Incr 0  96.00K     DISK        00:00:00     19-321     
        BP Key: 44   Status: AVAILABLE  Compressed: NO  Tag: JYC0
        Piece Name: /home/oracle/rman/jyc0_22vq4e8v_1_1
  List of Datafiles in backup set 44
  File LV Type Ckp SCN    Ckp Time   Name
  ---- -- ---- ---------- ---------- ----
  13   0  Incr 1063266    19-321 /oracle/oradata/pri/jyc8.dbf

不指定备份集对应数据文件的话是正常的。但这不是我想要的。

run {
allocate channel t1 type disk;
allocate channel t2 type disk;
allocate channel t3 type disk;
allocate channel t4 type disk;
backup as backupset incremental level=0 tablespace JYC format '/home/oracle/rman/jyc0_%U' tag=jyc0;
}

RMAN> run {
2> allocate channel t1 type disk;
3> allocate channel t2 type disk;
4> allocate channel t3 type disk;
5> allocate channel t4 type disk;
6> backup as backupset incremental level=0 tablespace JYC format '/home/oracle/rman/jyc0_%U' tag=jyc0;
7> }

allocated channel: t1
channel t1: SID=88 device type=DISK

allocated channel: t2
channel t2: SID=255 device type=DISK

allocated channel: t3
channel t3: SID=9 device type=DISK

allocated channel: t4
channel t4: SID=87 device type=DISK

Starting backup at 19-321
channel t1: starting incremental level 0 datafile backup set
channel t1: specifying datafile(s) in backup set
input datafile file number=00005 name=/oracle/oradata/pri/jyc.dbf
input datafile file number=00013 name=/oracle/oradata/pri/jyc8.dbf
channel t1: starting piece 1 at 19-321
channel t2: starting incremental level 0 datafile backup set
channel t2: specifying datafile(s) in backup set
input datafile file number=00007 name=/oracle/oradata/pri/jyc2.dbf
input datafile file number=00010 name=/oracle/oradata/pri/jyc5.dbf
channel t2: starting piece 1 at 19-321
channel t3: starting incremental level 0 datafile backup set
channel t3: specifying datafile(s) in backup set
input datafile file number=00008 name=/oracle/oradata/pri/jyc3.dbf
input datafile file number=00011 name=/oracle/oradata/pri/jyc6.dbf
channel t3: starting piece 1 at 19-321
channel t4: starting incremental level 0 datafile backup set
channel t4: specifying datafile(s) in backup set
input datafile file number=00009 name=/oracle/oradata/pri/jyc4.dbf
input datafile file number=00012 name=/oracle/oradata/pri/jyc7.dbf
channel t4: starting piece 1 at 19-321
channel t1: finished piece 1 at 19-321
piece handle=/home/oracle/rman/jyc0_4cvq5fdk_1_1 tag=JYC0 comment=NONE
channel t1: backup set complete, elapsed time: 00:00:00
channel t2: finished piece 1 at 19-321
piece handle=/home/oracle/rman/jyc0_4dvq5fdk_1_1 tag=JYC0 comment=NONE
channel t2: backup set complete, elapsed time: 00:00:00
channel t3: finished piece 1 at 19-321
piece handle=/home/oracle/rman/jyc0_4evq5fdk_1_1 tag=JYC0 comment=NONE
channel t3: backup set complete, elapsed time: 00:00:00
channel t4: finished piece 1 at 19-321
piece handle=/home/oracle/rman/jyc0_4fvq5fdk_1_1 tag=JYC0 comment=NONE
channel t4: backup set complete, elapsed time: 00:00:00
Finished backup at 19-321
released channel: t1
released channel: t2
released channel: t3
released channel: t4

去掉tablespace JYC则正常:

run {
allocate channel t1 type disk format '/home/oracle/rman/jyc0_%U';
allocate channel t2 type disk format '/home/oracle/rman/jyc0_%U';
allocate channel t3 type disk format '/home/oracle/rman/jyc0_%U';
allocate channel t4 type disk format '/home/oracle/rman/jyc0_%U';
backup as backupset incremental level=0
datafile 5,7,8 channel t1 tag=jyc0
datafile 9,10 channel t2 tag=jyc0
datafile 11,12 channel t3 tag=jyc0
datafile 13 channel t4 tag=jyc0;
}

RMAN> run {
2> allocate channel t1 type disk format '/home/oracle/rman/jyc0_%U';
3> allocate channel t2 type disk format '/home/oracle/rman/jyc0_%U';
4> allocate channel t3 type disk format '/home/oracle/rman/jyc0_%U';
5> allocate channel t4 type disk format '/home/oracle/rman/jyc0_%U';
6> backup as backupset incremental level=0
7> datafile 5,7,8 channel t1 tag=jyc0
8> datafile 9,10 channel t2 tag=jyc0
9> datafile 11,12 channel t3 tag=jyc0
10> datafile 13 channel t4 tag=jyc0;
11> }

allocated channel: t1
channel t1: SID=87 device type=DISK

allocated channel: t2
channel t2: SID=172 device type=DISK

allocated channel: t3
channel t3: SID=253 device type=DISK

allocated channel: t4
channel t4: SID=89 device type=DISK

Starting backup at 22-321
channel t1: starting incremental level 0 datafile backup set
channel t1: specifying datafile(s) in backup set
input datafile file number=00005 name=/oracle/oradata/pri/jyc.dbf
input datafile file number=00007 name=/oracle/oradata/pri/jyc2.dbf
input datafile file number=00008 name=/oracle/oradata/pri/jyc3.dbf
channel t1: starting piece 1 at 22-321
channel t2: starting incremental level 0 datafile backup set
channel t2: specifying datafile(s) in backup set
input datafile file number=00009 name=/oracle/oradata/pri/jyc4.dbf
input datafile file number=00010 name=/oracle/oradata/pri/jyc5.dbf
channel t2: starting piece 1 at 22-321
channel t3: starting incremental level 0 datafile backup set
channel t3: specifying datafile(s) in backup set
input datafile file number=00011 name=/oracle/oradata/pri/jyc6.dbf
input datafile file number=00012 name=/oracle/oradata/pri/jyc7.dbf
channel t3: starting piece 1 at 22-321
channel t4: starting incremental level 0 datafile backup set
channel t4: specifying datafile(s) in backup set
input datafile file number=00013 name=/oracle/oradata/pri/jyc8.dbf
channel t4: starting piece 1 at 22-321
channel t1: finished piece 1 at 22-321
piece handle=/home/oracle/rman/jyc0_4kvqcab9_1_1 tag=JYC0 comment=NONE
channel t1: backup set complete, elapsed time: 00:00:00
channel t2: finished piece 1 at 22-321
piece handle=/home/oracle/rman/jyc0_4lvqcab9_1_1 tag=JYC0 comment=NONE
channel t2: backup set complete, elapsed time: 00:00:00
channel t3: finished piece 1 at 22-321
piece handle=/home/oracle/rman/jyc0_4mvqcab9_1_1 tag=JYC0 comment=NONE
channel t3: backup set complete, elapsed time: 00:00:00
channel t4: finished piece 1 at 22-321
piece handle=/home/oracle/rman/jyc0_4nvqcab9_1_1 tag=JYC0 comment=NONE
channel t4: backup set complete, elapsed time: 00:00:00
Finished backup at 22-321
released channel: t1
released channel: t2
released channel: t3
released channel: t4

或者:

run {
allocate channel t1 type disk;
allocate channel t2 type disk;
allocate channel t3 type disk;
allocate channel t4 type disk;
backup as backupset incremental level=0 format '/home/oracle/rman/jyc0_%U'
datafile 5,7,8 channel t1 tag=jyc00
datafile 9,10 channel t2 tag=jyc00
datafile 11,12 channel t3 tag=jyc00
datafile 13 channel t4 tag=jyc00;
}

RMAN> run {
2> allocate channel t1 type disk;
3> allocate channel t2 type disk;
4> allocate channel t3 type disk;
5> allocate channel t4 type disk;
6> backup as backupset incremental level=0 format '/home/oracle/rman/jyc0_%U'
7> datafile 5,7,8 channel t1 tag=jyc00
8> datafile 9,10 channel t2 tag=jyc00
9> datafile 11,12 channel t3 tag=jyc00
10> datafile 13 channel t4 tag=jyc00;
11> }

allocated channel: t1
channel t1: SID=87 device type=DISK

allocated channel: t2
channel t2: SID=172 device type=DISK

allocated channel: t3
channel t3: SID=253 device type=DISK

allocated channel: t4
channel t4: SID=89 device type=DISK

Starting backup at 22-321
channel t1: starting incremental level 0 datafile backup set
channel t1: specifying datafile(s) in backup set
input datafile file number=00005 name=/oracle/oradata/pri/jyc.dbf
input datafile file number=00007 name=/oracle/oradata/pri/jyc2.dbf
input datafile file number=00008 name=/oracle/oradata/pri/jyc3.dbf
channel t1: starting piece 1 at 22-321
channel t2: starting incremental level 0 datafile backup set
channel t2: specifying datafile(s) in backup set
input datafile file number=00009 name=/oracle/oradata/pri/jyc4.dbf
input datafile file number=00010 name=/oracle/oradata/pri/jyc5.dbf
channel t2: starting piece 1 at 22-321
channel t3: starting incremental level 0 datafile backup set
channel t3: specifying datafile(s) in backup set
input datafile file number=00011 name=/oracle/oradata/pri/jyc6.dbf
input datafile file number=00012 name=/oracle/oradata/pri/jyc7.dbf
channel t3: starting piece 1 at 22-321
channel t4: starting incremental level 0 datafile backup set
channel t4: specifying datafile(s) in backup set
input datafile file number=00013 name=/oracle/oradata/pri/jyc8.dbf
channel t4: starting piece 1 at 22-321
channel t1: finished piece 1 at 22-321
piece handle=/home/oracle/rman/jyc0_4ovqcm2u_1_1 tag=JYC00 comment=NONE
channel t1: backup set complete, elapsed time: 00:00:00
channel t2: finished piece 1 at 22-321
piece handle=/home/oracle/rman/jyc0_4pvqcm2u_1_1 tag=JYC00 comment=NONE
channel t2: backup set complete, elapsed time: 00:00:00
channel t3: finished piece 1 at 22-321
piece handle=/home/oracle/rman/jyc0_4qvqcm2u_1_1 tag=JYC00 comment=NONE
channel t3: backup set complete, elapsed time: 00:00:01
channel t4: finished piece 1 at 22-321
piece handle=/home/oracle/rman/jyc0_4rvqcm2u_1_1 tag=JYC00 comment=NONE
channel t4: backup set complete, elapsed time: 00:00:01
Finished backup at 22-321
released channel: t1
released channel: t2
released channel: t3
released channel: t4

RMAN> list backup tag=jyc00;

List of Backup Sets
===================

BS Key  Type LV Size       Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
129     Incr 0  1.17M      DISK        00:00:00     22-321     
        BP Key: 129   Status: AVAILABLE  Compressed: NO  Tag: JYC00
        Piece Name: /home/oracle/rman/jyc0_4ovqcm2u_1_1
  List of Datafiles in backup set 129
  File LV Type Ckp SCN    Ckp Time   Name
  ---- -- ---- ---------- ---------- ----
  5    0  Incr 1167438    22-321 /oracle/oradata/pri/jyc.dbf
  7    0  Incr 1167438    22-321 /oracle/oradata/pri/jyc2.dbf
  8    0  Incr 1167438    22-321 /oracle/oradata/pri/jyc3.dbf

BS Key  Type LV Size       Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
130     Incr 0  168.00K    DISK        00:00:00     22-321     
        BP Key: 130   Status: AVAILABLE  Compressed: NO  Tag: JYC00
        Piece Name: /home/oracle/rman/jyc0_4pvqcm2u_1_1
  List of Datafiles in backup set 130
  File LV Type Ckp SCN    Ckp Time   Name
  ---- -- ---- ---------- ---------- ----
  9    0  Incr 1167439    22-321 /oracle/oradata/pri/jyc4.dbf
  10   0  Incr 1167439    22-321 /oracle/oradata/pri/jyc5.dbf

BS Key  Type LV Size       Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
131     Incr 0  168.00K    DISK        00:00:00     22-321     
        BP Key: 131   Status: AVAILABLE  Compressed: NO  Tag: JYC00
        Piece Name: /home/oracle/rman/jyc0_4qvqcm2u_1_1
  List of Datafiles in backup set 131
  File LV Type Ckp SCN    Ckp Time   Name
  ---- -- ---- ---------- ---------- ----
  11   0  Incr 1167440    22-321 /oracle/oradata/pri/jyc6.dbf
  12   0  Incr 1167440    22-321 /oracle/oradata/pri/jyc7.dbf

BS Key  Type LV Size       Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
132     Incr 0  96.00K     DISK        00:00:00     22-321     
        BP Key: 132   Status: AVAILABLE  Compressed: NO  Tag: JYC00
        Piece Name: /home/oracle/rman/jyc0_4rvqcm2u_1_1
  List of Datafiles in backup set 132
  File LV Type Ckp SCN    Ckp Time   Name
  ---- -- ---- ---------- ---------- ----
  13   0  Incr 1167441    22-321 /oracle/oradata/pri/jyc8.dbf

RMAN>

1级增量备份:文件放在一个备份集里。

run {
allocate channel t1 type disk;
backup incremental level=1 tablespace JYC filesperset 200 format '/home/oracle/rman/jyc1_%U' tag=jyc1;
release channel t1;
}

RMAN> run {                                                                                          
2> allocate channel t1 type disk;                                                                 
3> backup incremental level=1 tablespace JYC filesperset 200 format '/home/oracle/rman/jyc1_%U' tag=jyc1;
4> release channel t1;                                                                            
5> }

using target database control file instead of recovery catalog
allocated channel: t1
channel t1: SID=249 device type=DISK

Starting backup at 19-321
channel t1: starting incremental level 1 datafile backup set
channel t1: specifying datafile(s) in backup set
input datafile file number=00005 name=/oracle/oradata/pri/jyc.dbf
input datafile file number=00007 name=/oracle/oradata/pri/jyc2.dbf
input datafile file number=00008 name=/oracle/oradata/pri/jyc3.dbf
input datafile file number=00009 name=/oracle/oradata/pri/jyc4.dbf
input datafile file number=00010 name=/oracle/oradata/pri/jyc5.dbf
input datafile file number=00011 name=/oracle/oradata/pri/jyc6.dbf
input datafile file number=00012 name=/oracle/oradata/pri/jyc7.dbf
input datafile file number=00013 name=/oracle/oradata/pri/jyc8.dbf
channel t1: starting piece 1 at 19-321
channel t1: finished piece 1 at 19-321
piece handle=/home/oracle/rman/jyc1_23vq4f82_1_1 tag=JYC1 comment=NONE
channel t1: backup set complete, elapsed time: 00:00:01
Finished backup at 19-321

released channel: t1

RMAN> list backup tag=jyc1;

List of Backup Sets
===================

BS Key  Type LV Size       Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
45      Incr 1  88.00K     DISK        00:00:00     19-321     
        BP Key: 45   Status: AVAILABLE  Compressed: NO  Tag: JYC1
        Piece Name: /home/oracle/rman/jyc1_23vq4f82_1_1
  List of Datafiles in backup set 45
  File LV Type Ckp SCN    Ckp Time   Name
  ---- -- ---- ---------- ---------- ----
  5    1  Incr 1064757    19-321 /oracle/oradata/pri/jyc.dbf
  7    1  Incr 1064757    19-321 /oracle/oradata/pri/jyc2.dbf
  8    1  Incr 1064757    19-321 /oracle/oradata/pri/jyc3.dbf
  9    1  Incr 1064757    19-321 /oracle/oradata/pri/jyc4.dbf
  10   1  Incr 1064757    19-321 /oracle/oradata/pri/jyc5.dbf
  11   1  Incr 1064757    19-321 /oracle/oradata/pri/jyc6.dbf
  12   1  Incr 1064757    19-321 /oracle/oradata/pri/jyc7.dbf
  13   1  Incr 1064757    19-321 /oracle/oradata/pri/jyc8.dbf

RMAN>

相关参考:

http://www.itpub.net/thread-2141161-1-1.html

rman备份指定备份集对应文件相关推荐

  1. RMAN备份之备份多个备份集到带库(一)

    使用RMAN备份到带库时,同时备份多个备份集,需要注意一些问题. 首先是Oracle的初始化参数BACKUP_TAPE_IO_SLAVES必须设置为TRUE,否则备份会报错: RMAN> run ...

  2. 如何自动备份指定文件扩展名的文件?

    关于文件扩展名 文件扩展名,一个点后跟几个字母,例如".doc"或".jpg",构成计算机文档名称的结尾.保存文档时,请务必在单击"保存"之 ...

  3. rman删除7天前备份_RMAN备份

    RMAN备份 rman简介 RMAN(Recovery Manager)是随Oracle服务器软件一同安装的工具软件,它可以用来备份和恢复数据库文件.归档日志和控制文件,用来执行完全或不完全的数据库恢 ...

  4. 【RMAN】数据库备份之冷备份

    冷备份,数据库在非open状态下,个人认为都是可以称之为"冷"的. 数据库经过干净关闭之后,再处于mount或者shutdown状态时,我们可以称之为"冷"的, ...

  5. 傻瓜式实战Oracle10g RMAN之数据库备份和恢复

    参考视频: vedios->[bbk1824] 数据库最重要的是数据,数据最重要的就是可靠性,不能丢失. RMAN产生的一些备份信息,存储在控制文件当中.也就是说,在没有catalog的情况下, ...

  6. mysql 逻辑备份 物理备份_数据库的逻辑备份和物理备份--非RMAN

    数据库的逻辑备份和物理备份--非RMAN,不用借助其他工具,只要归档日志和物理备份就可以实现的备份 数据库的备份和恢复 常规而且重要,恢复得到理想状态 逻辑备份 利用EXP备份,从数据库提取写入操作系 ...

  7. Oracle的Rman差异增量备份

    所谓增量备份,顾名思义即是每次备份操作那些发生了"变化"的数据块.在RMAN增量备份中有两种:Differential(差异备份)和Cumulative(增量备份)方式.由于需求这 ...

  8. oracle8616,ORACLE11G-数据库备份恢复之RMAN全库备份恢复

    文章模拟数据库在有rman全库备份并在备份后有事务产生后数据库崩溃的恢复过程,欢迎交流学习. 1.rman全库备份 RMAN> backup as compressed backupset da ...

  9. mysql备份恢复与集群部署

    MySQL主从复制 1.如果主节点已经运行了一段时间,且有大量数据时,新增一个slave,如何配置并启动新增slave节点 思路步骤: 通过备份恢复数据至从服务器 复制起始位置为备份时,二进制日志文件 ...

最新文章

  1. centos 学习日记 文件默认权限:umaks
  2. 67. Add Binary
  3. 时光不老,我们不散!
  4. jquery 乱码 传参_jquery获取URL中参数解决中文乱码问题的两种方法
  5. centos7.4 kubeadm安装Kubernetes 1.14.1 集群
  6. 【学习笔记】算法导论基础知识1.1
  7. Atitit.播放系统的选片服务器,包厢记时系统 的说明,教程,维护,故障排查手册p825
  8. webpack-dev-server‘ is not recognized as an internal or external command
  9. 中级软件测试笔试题100精讲_软件测试工程师笔试题目(含答案)
  10. ios label 高度紫石英_iOS_NSMutableAttributedString和自适应宽度高度
  11. 新建word 无法切换输入法_为什么word文件中无法切换输入法?
  12. swiper——自动轮播
  13. c# WindowsForm上使用Panel制作画板的一些小功能
  14. 写给静不下心来的朋友们
  15. cisco(思科)交换机配置篇【二】
  16. python双人对决小游戏
  17. 算法设计与分析第四章作业
  18. 基于centos7.3 3.10-514的LVS双机负载均衡部署方案
  19. 毕业答辩PPT制作和讲述要点
  20. 自学前端建立知识体系,是最简单入门以及工作后快速进阶的有效方法

热门文章

  1. Mastercam 2017 图形阵列(矩形阵列与环形阵列)
  2. 一种与生活周旋的能力
  3. 一图看清公募基金十年持仓行业变迁
  4. C语言进阶(牟海军)
  5. iOS与unity交互、opencv 草稿
  6. 如何查看Navicat已保存数据库连接的密码
  7. 会声会影2022永久免费版新手小白必备视频剪辑工具
  8. python入门知识点-1
  9. ccna学习指南中文第5版(PDF版)
  10. 网络爬虫爬取某网数据并制作词云全过程【内附可执行代码注释完整】