controlfile作为RMAN的repository时,对 keep time 的测试
4月2日,首先查看系统状况:
SQL> show parameter control
NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
control_file_record_keep_time        integer     2
control_files                        string      /u01/app/oracle/oradata/orcl/c
                                                 ontrol01.ctl, /u01/app/oracle/
                                                 flash_recovery_area/orcl/contr
                                                 ol02.ctl
control_management_pack_access       string      DIAGNOSTIC+TUNING
SQL>
*********************************************************************
此时,查看备份状态:
[oracle@localhost ~]$ rman target /
Recovery Manager: Release 11.2.0.1.0 - Production on Wed Apr 2 08:29:05 2014
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
connected to target database: ORCL (DBID=1369869147)
RMAN> show all;
using target database control file instead of recovery catalog
RMAN configuration parameters for database with db_unique_name ORCL 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 COMPRESSION ALGORITHM 'BASIC' AS OF RELEASE 'DEFAULT' OPTIMIZE FOR LOAD TRUE ; # default
CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/u01/app/oracle/product/11.2.0/dbhome_1/dbs/snapcf_orcl.f'; # default
RMAN> configure retention policy to recovery window of 1 days;
new RMAN configuration parameters:
CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 1 DAYS;
new RMAN configuration parameters are successfully stored
RMAN> list backup;
List of Backup Sets
===================
BS Key  Type LV Size       Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
3       Full    1.05G      DISK        00:02:01     01-APR-14      
        BP Key: 3   Status: AVAILABLE  Compressed: NO  Tag: TAG20140401T172802
        Piece Name: /u01/app/oracle/flash_recovery_area/ORCL/backupset/2014_04_01/o1_mf_nnndf_TAG20140401T172802_9mo1o2g2_.bkp
  List of Datafiles in backup set 3
  File LV Type Ckp SCN    Ckp Time  Name
  ---- -- ---- ---------- --------- ----
  1       Full 1002637    01-APR-14 /u01/app/oracle/oradata/orcl/system01.dbf
  2       Full 1002637    01-APR-14 /u01/app/oracle/oradata/orcl/sysaux01.dbf
  3       Full 1002637    01-APR-14 /u01/app/oracle/oradata/orcl/undotbs01.dbf
  4       Full 1002637    01-APR-14 /u01/app/oracle/oradata/orcl/users01.dbf
  5       Full 1002637    01-APR-14 /u01/app/oracle/oradata/orcl/example01.dbf
BS Key  Type LV Size       Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
4       Full    9.36M      DISK        00:00:05     01-APR-14      
        BP Key: 4   Status: AVAILABLE  Compressed: NO  Tag: TAG20140401T172802
        Piece Name: /u01/app/oracle/flash_recovery_area/ORCL/backupset/2014_04_01/o1_mf_ncsnf_TAG20140401T172802_9mo1s2ky_.bkp
  SPFILE Included: Modification time: 01-APR-14
  SPFILE db_unique_name: ORCL
  Control File Included: Ckp SCN: 1002728      Ckp time: 01-APR-14
再看RMAN的设定变化:
再看RMAN的设定:
RMAN> show all;
RMAN configuration parameters for database with db_unique_name ORCL are:
CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 1 DAYS;
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 COMPRESSION ALGORITHM 'BASIC' AS OF RELEASE 'DEFAULT' OPTIMIZE FOR LOAD TRUE ; # default
CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/u01/app/oracle/product/11.2.0/dbhome_1/dbs/snapcf_orcl.f'; # default
RMAN>
在4月2日执行backup后再看:
RMAN> backup database;
Starting backup at 02-APR-14
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=29 device type=DISK
channel ORA_DISK_1: starting full datafile backup set
channel ORA_DISK_1: specifying datafile(s) in backup set
input datafile file number=00001 name=/u01/app/oracle/oradata/orcl/system01.dbf
input datafile file number=00002 name=/u01/app/oracle/oradata/orcl/sysaux01.dbf
input datafile file number=00005 name=/u01/app/oracle/oradata/orcl/example01.dbf
input datafile file number=00003 name=/u01/app/oracle/oradata/orcl/undotbs01.dbf
input datafile file number=00004 name=/u01/app/oracle/oradata/orcl/users01.dbf
channel ORA_DISK_1: starting piece 1 at 02-APR-14
channel ORA_DISK_1: finished piece 1 at 02-APR-14
piece handle=/u01/app/oracle/flash_recovery_area/ORCL/backupset/2014_04_02/o1_mf_nnndf_TAG20140402T083021_9mppjxh1_.bkp tag=TAG20140402T083021 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:01:45
channel ORA_DISK_1: starting full datafile backup set
channel ORA_DISK_1: specifying datafile(s) in backup set
including current control file in backup set
including current SPFILE in backup set
channel ORA_DISK_1: starting piece 1 at 02-APR-14
channel ORA_DISK_1: finished piece 1 at 02-APR-14
piece handle=/u01/app/oracle/flash_recovery_area/ORCL/backupset/2014_04_02/o1_mf_ncsnf_TAG20140402T083021_9mppn7g5_.bkp tag=TAG20140402T083021 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
Finished backup at 02-APR-14
RMAN> list backup;
List of Backup Sets
===================
BS Key  Type LV Size       Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
3       Full    1.05G      DISK        00:02:01     01-APR-14      
        BP Key: 3   Status: AVAILABLE  Compressed: NO  Tag: TAG20140401T172802
        Piece Name: /u01/app/oracle/flash_recovery_area/ORCL/backupset/2014_04_01/o1_mf_nnndf_TAG20140401T172802_9mo1o2g2_.bkp
  List of Datafiles in backup set 3
  File LV Type Ckp SCN    Ckp Time  Name
  ---- -- ---- ---------- --------- ----
  1       Full 1002637    01-APR-14 /u01/app/oracle/oradata/orcl/system01.dbf
  2       Full 1002637    01-APR-14 /u01/app/oracle/oradata/orcl/sysaux01.dbf
  3       Full 1002637    01-APR-14 /u01/app/oracle/oradata/orcl/undotbs01.dbf
  4       Full 1002637    01-APR-14 /u01/app/oracle/oradata/orcl/users01.dbf
  5       Full 1002637    01-APR-14 /u01/app/oracle/oradata/orcl/example01.dbf
BS Key  Type LV Size       Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
4       Full    9.36M      DISK        00:00:05     01-APR-14      
        BP Key: 4   Status: AVAILABLE  Compressed: NO  Tag: TAG20140401T172802
        Piece Name: /u01/app/oracle/flash_recovery_area/ORCL/backupset/2014_04_01/o1_mf_ncsnf_TAG20140401T172802_9mo1s2ky_.bkp
  SPFILE Included: Modification time: 01-APR-14
  SPFILE db_unique_name: ORCL
  Control File Included: Ckp SCN: 1002728      Ckp time: 01-APR-14
BS Key  Type LV Size       Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
5       Full    1.00G      DISK        00:01:37     02-APR-14      
        BP Key: 5   Status: AVAILABLE  Compressed: NO  Tag: TAG20140402T083021
        Piece Name: /u01/app/oracle/flash_recovery_area/ORCL/backupset/2014_04_02/o1_mf_nnndf_TAG20140402T083021_9mppjxh1_.bkp
  List of Datafiles in backup set 5
  File LV Type Ckp SCN    Ckp Time  Name
  ---- -- ---- ---------- --------- ----
  1       Full 1008677    02-APR-14 /u01/app/oracle/oradata/orcl/system01.dbf
  2       Full 1008677    02-APR-14 /u01/app/oracle/oradata/orcl/sysaux01.dbf
  3       Full 1008677    02-APR-14 /u01/app/oracle/oradata/orcl/undotbs01.dbf
  4       Full 1008677    02-APR-14 /u01/app/oracle/oradata/orcl/users01.dbf
  5       Full 1008677    02-APR-14 /u01/app/oracle/oradata/orcl/example01.dbf
BS Key  Type LV Size       Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
6       Full    9.36M      DISK        00:00:02     02-APR-14      
        BP Key: 6   Status: AVAILABLE  Compressed: NO  Tag: TAG20140402T083021
        Piece Name: /u01/app/oracle/flash_recovery_area/ORCL/backupset/2014_04_02/o1_mf_ncsnf_TAG20140402T083021_9mppn7g5_.bkp
  SPFILE Included: Modification time: 02-APR-14
  SPFILE db_unique_name: ORCL
  Control File Included: Ckp SCN: 1008751      Ckp time: 02-APR-14
RMAN> quit
******************************************************************
4月3日再进行backup:
[oracle@localhost ~]$ date
Thu Apr  3 08:56:15 CST 2014
Recovery Manager complete.
[oracle@localhost ~]$ rman target /
Recovery Manager: Release 11.2.0.1.0 - Production on Thu Apr 3 08:56:25 2014
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
connected to target database: ORCL (DBID=1369869147)
RMAN> list backup;
using target database control file instead of recovery catalog
List of Backup Sets
===================
BS Key  Type LV Size       Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
3       Full    1.05G      DISK        00:02:01     01-APR-14      
        BP Key: 3   Status: AVAILABLE  Compressed: NO  Tag: TAG20140401T172802
        Piece Name: /u01/app/oracle/flash_recovery_area/ORCL/backupset/2014_04_01/o1_mf_nnndf_TAG20140401T172802_9mo1o2g2_.bkp
  List of Datafiles in backup set 3
  File LV Type Ckp SCN    Ckp Time  Name
  ---- -- ---- ---------- --------- ----
  1       Full 1002637    01-APR-14 /u01/app/oracle/oradata/orcl/system01.dbf
  2       Full 1002637    01-APR-14 /u01/app/oracle/oradata/orcl/sysaux01.dbf
  3       Full 1002637    01-APR-14 /u01/app/oracle/oradata/orcl/undotbs01.dbf
  4       Full 1002637    01-APR-14 /u01/app/oracle/oradata/orcl/users01.dbf
  5       Full 1002637    01-APR-14 /u01/app/oracle/oradata/orcl/example01.dbf
BS Key  Type LV Size       Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
4       Full    9.36M      DISK        00:00:05     01-APR-14      
        BP Key: 4   Status: AVAILABLE  Compressed: NO  Tag: TAG20140401T172802
        Piece Name: /u01/app/oracle/flash_recovery_area/ORCL/backupset/2014_04_01/o1_mf_ncsnf_TAG20140401T172802_9mo1s2ky_.bkp
  SPFILE Included: Modification time: 01-APR-14
  SPFILE db_unique_name: ORCL
  Control File Included: Ckp SCN: 1002728      Ckp time: 01-APR-14
BS Key  Type LV Size       Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
5       Full    1.00G      DISK        00:01:37     02-APR-14      
        BP Key: 5   Status: AVAILABLE  Compressed: NO  Tag: TAG20140402T083021
        Piece Name: /u01/app/oracle/flash_recovery_area/ORCL/backupset/2014_04_02/o1_mf_nnndf_TAG20140402T083021_9mppjxh1_.bkp
  List of Datafiles in backup set 5
  File LV Type Ckp SCN    Ckp Time  Name
  ---- -- ---- ---------- --------- ----
  1       Full 1008677    02-APR-14 /u01/app/oracle/oradata/orcl/system01.dbf
  2       Full 1008677    02-APR-14 /u01/app/oracle/oradata/orcl/sysaux01.dbf
  3       Full 1008677    02-APR-14 /u01/app/oracle/oradata/orcl/undotbs01.dbf
  4       Full 1008677    02-APR-14 /u01/app/oracle/oradata/orcl/users01.dbf
  5       Full 1008677    02-APR-14 /u01/app/oracle/oradata/orcl/example01.dbf
BS Key  Type LV Size       Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
6       Full    9.36M      DISK        00:00:02     02-APR-14      
        BP Key: 6   Status: AVAILABLE  Compressed: NO  Tag: TAG20140402T083021
        Piece Name: /u01/app/oracle/flash_recovery_area/ORCL/backupset/2014_04_02/o1_mf_ncsnf_TAG20140402T083021_9mppn7g5_.bkp
  SPFILE Included: Modification time: 02-APR-14
  SPFILE db_unique_name: ORCL
  Control File Included: Ckp SCN: 1008751      Ckp time: 02-APR-14
RMAN> show all;
RMAN configuration parameters for database with db_unique_name ORCL are:
CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 1 DAYS;
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 COMPRESSION ALGORITHM 'BASIC' AS OF RELEASE 'DEFAULT' OPTIMIZE FOR LOAD TRUE ; # default
CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/u01/app/oracle/product/11.2.0/dbhome_1/dbs/snapcf_orcl.f'; # default
RMAN> backup database;
Starting backup at 03-APR-14
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=39 device type=DISK
channel ORA_DISK_1: starting full datafile backup set
channel ORA_DISK_1: specifying datafile(s) in backup set
input datafile file number=00001 name=/u01/app/oracle/oradata/orcl/system01.dbf
input datafile file number=00002 name=/u01/app/oracle/oradata/orcl/sysaux01.dbf
input datafile file number=00005 name=/u01/app/oracle/oradata/orcl/example01.dbf
input datafile file number=00003 name=/u01/app/oracle/oradata/orcl/undotbs01.dbf
input datafile file number=00004 name=/u01/app/oracle/oradata/orcl/users01.dbf
channel ORA_DISK_1: starting piece 1 at 03-APR-14
channel ORA_DISK_1: finished piece 1 at 03-APR-14
piece handle=/u01/app/oracle/flash_recovery_area/ORCL/backupset/2014_04_03/o1_mf_nnndf_TAG20140403T085740_9msdjf1h_.bkp tag=TAG20140403T085740 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:02:25
channel ORA_DISK_1: starting full datafile backup set
channel ORA_DISK_1: specifying datafile(s) in backup set
including current control file in backup set
including current SPFILE in backup set
channel ORA_DISK_1: starting piece 1 at 03-APR-14
channel ORA_DISK_1: finished piece 1 at 03-APR-14
piece handle=/u01/app/oracle/flash_recovery_area/ORCL/backupset/2014_04_03/o1_mf_ncsnf_TAG20140403T085740_9msdnrft_.bkp tag=TAG20140403T085740 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:03
Finished backup at 03-APR-14
RMAN> list backup;
List of Backup Sets
===================
BS Key  Type LV Size       Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
3       Full    1.05G      DISK        00:02:01     01-APR-14      
        BP Key: 3   Status: AVAILABLE  Compressed: NO  Tag: TAG20140401T172802
        Piece Name: /u01/app/oracle/flash_recovery_area/ORCL/backupset/2014_04_01/o1_mf_nnndf_TAG20140401T172802_9mo1o2g2_.bkp
  List of Datafiles in backup set 3
  File LV Type Ckp SCN    Ckp Time  Name
  ---- -- ---- ---------- --------- ----
  1       Full 1002637    01-APR-14 /u01/app/oracle/oradata/orcl/system01.dbf
  2       Full 1002637    01-APR-14 /u01/app/oracle/oradata/orcl/sysaux01.dbf
  3       Full 1002637    01-APR-14 /u01/app/oracle/oradata/orcl/undotbs01.dbf
  4       Full 1002637    01-APR-14 /u01/app/oracle/oradata/orcl/users01.dbf
  5       Full 1002637    01-APR-14 /u01/app/oracle/oradata/orcl/example01.dbf
BS Key  Type LV Size       Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
4       Full    9.36M      DISK        00:00:05     01-APR-14      
        BP Key: 4   Status: AVAILABLE  Compressed: NO  Tag: TAG20140401T172802
        Piece Name: /u01/app/oracle/flash_recovery_area/ORCL/backupset/2014_04_01/o1_mf_ncsnf_TAG20140401T172802_9mo1s2ky_.bkp
  SPFILE Included: Modification time: 01-APR-14
  SPFILE db_unique_name: ORCL
  Control File Included: Ckp SCN: 1002728      Ckp time: 01-APR-14
BS Key  Type LV Size       Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
5       Full    1.00G      DISK        00:01:37     02-APR-14      
        BP Key: 5   Status: AVAILABLE  Compressed: NO  Tag: TAG20140402T083021
        Piece Name: /u01/app/oracle/flash_recovery_area/ORCL/backupset/2014_04_02/o1_mf_nnndf_TAG20140402T083021_9mppjxh1_.bkp
  List of Datafiles in backup set 5
  File LV Type Ckp SCN    Ckp Time  Name
  ---- -- ---- ---------- --------- ----
  1       Full 1008677    02-APR-14 /u01/app/oracle/oradata/orcl/system01.dbf
  2       Full 1008677    02-APR-14 /u01/app/oracle/oradata/orcl/sysaux01.dbf
  3       Full 1008677    02-APR-14 /u01/app/oracle/oradata/orcl/undotbs01.dbf
  4       Full 1008677    02-APR-14 /u01/app/oracle/oradata/orcl/users01.dbf
  5       Full 1008677    02-APR-14 /u01/app/oracle/oradata/orcl/example01.dbf
BS Key  Type LV Size       Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
6       Full    9.36M      DISK        00:00:02     02-APR-14      
        BP Key: 6   Status: AVAILABLE  Compressed: NO  Tag: TAG20140402T083021
        Piece Name: /u01/app/oracle/flash_recovery_area/ORCL/backupset/2014_04_02/o1_mf_ncsnf_TAG20140402T083021_9mppn7g5_.bkp
  SPFILE Included: Modification time: 02-APR-14
  SPFILE db_unique_name: ORCL
  Control File Included: Ckp SCN: 1008751      Ckp time: 02-APR-14
BS Key  Type LV Size       Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
7       Full    1.01G      DISK        00:02:25     03-APR-14      
        BP Key: 7   Status: AVAILABLE  Compressed: NO  Tag: TAG20140403T085740
        Piece Name: /u01/app/oracle/flash_recovery_area/ORCL/backupset/2014_04_03/o1_mf_nnndf_TAG20140403T085740_9msdjf1h_.bkp
  List of Datafiles in backup set 7
  File LV Type Ckp SCN    Ckp Time  Name
  ---- -- ---- ---------- --------- ----
  1       Full 1010406    03-APR-14 /u01/app/oracle/oradata/orcl/system01.dbf
  2       Full 1010406    03-APR-14 /u01/app/oracle/oradata/orcl/sysaux01.dbf
  3       Full 1010406    03-APR-14 /u01/app/oracle/oradata/orcl/undotbs01.dbf
  4       Full 1010406    03-APR-14 /u01/app/oracle/oradata/orcl/users01.dbf
  5       Full 1010406    03-APR-14 /u01/app/oracle/oradata/orcl/example01.dbf
BS Key  Type LV Size       Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
8       Full    9.36M      DISK        00:00:05     03-APR-14      
        BP Key: 8   Status: AVAILABLE  Compressed: NO  Tag: TAG20140403T085740
        Piece Name: /u01/app/oracle/flash_recovery_area/ORCL/backupset/2014_04_03/o1_mf_ncsnf_TAG20140403T085740_9msdnrft_.bkp
  SPFILE Included: Modification time: 03-APR-14
  SPFILE db_unique_name: ORCL
  Control File Included: Ckp SCN: 1010627      Ckp time: 03-APR-14
RMAN> quit
此时,4月1日的backup集合的情报仍然在此处出现。
******************************************************************
4月4日再进行backup:
[oracle@localhost ~]$ date
Fri Apr  4 09:49:26 CST 2014
[oracle@localhost ~]$ rman target /
Recovery Manager: Release 11.2.0.1.0 - Production on Fri Apr 4 09:49:31 2014
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
connected to target database: ORCL (DBID=1369869147)
RMAN> backup database;
Starting backup at 04-APR-14
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=30 device type=DISK
channel ORA_DISK_1: starting full datafile backup set
channel ORA_DISK_1: specifying datafile(s) in backup set
input datafile file number=00001 name=/u01/app/oracle/oradata/orcl/system01.dbf
input datafile file number=00002 name=/u01/app/oracle/oradata/orcl/sysaux01.dbf
input datafile file number=00005 name=/u01/app/oracle/oradata/orcl/example01.dbf
input datafile file number=00003 name=/u01/app/oracle/oradata/orcl/undotbs01.dbf
input datafile file number=00004 name=/u01/app/oracle/oradata/orcl/users01.dbf
channel ORA_DISK_1: starting piece 1 at 04-APR-14
channel ORA_DISK_1: finished piece 1 at 04-APR-14
piece handle=/u01/app/oracle/flash_recovery_area/ORCL/backupset/2014_04_04/o1_mf_nnndf_TAG20140404T094940_9mw3y603_.bkp tag=TAG20140404T094940 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:03:05
channel ORA_DISK_1: starting full datafile backup set
channel ORA_DISK_1: specifying datafile(s) in backup set
including current control file in backup set
including current SPFILE in backup set
channel ORA_DISK_1: starting piece 1 at 04-APR-14
channel ORA_DISK_1: finished piece 1 at 04-APR-14
piece handle=/u01/app/oracle/flash_recovery_area/ORCL/backupset/2014_04_04/o1_mf_ncsnf_TAG20140404T094940_9mw43jmo_.bkp tag=TAG20140404T094940 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:07
Finished backup at 04-APR-14
RMAN> list backup;
List of Backup Sets
===================
BS Key  Type LV Size       Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
4       Full    9.36M      DISK        00:00:05     01-APR-14      
        BP Key: 4   Status: AVAILABLE  Compressed: NO  Tag: TAG20140401T172802
        Piece Name: /u01/app/oracle/flash_recovery_area/ORCL/backupset/2014_04_01/o1_mf_ncsnf_TAG20140401T172802_9mo1s2ky_.bkp
  SPFILE Included: Modification time: 01-APR-14
  SPFILE db_unique_name: ORCL
  Control File Included: Ckp SCN: 1002728      Ckp time: 01-APR-14
BS Key  Type LV Size       Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
5       Full    1.00G      DISK        00:01:37     02-APR-14      
        BP Key: 5   Status: AVAILABLE  Compressed: NO  Tag: TAG20140402T083021
        Piece Name: /u01/app/oracle/flash_recovery_area/ORCL/backupset/2014_04_02/o1_mf_nnndf_TAG20140402T083021_9mppjxh1_.bkp
  List of Datafiles in backup set 5
  File LV Type Ckp SCN    Ckp Time  Name
  ---- -- ---- ---------- --------- ----
  1       Full 1008677    02-APR-14 /u01/app/oracle/oradata/orcl/system01.dbf
  2       Full 1008677    02-APR-14 /u01/app/oracle/oradata/orcl/sysaux01.dbf
  3       Full 1008677    02-APR-14 /u01/app/oracle/oradata/orcl/undotbs01.dbf
  4       Full 1008677    02-APR-14 /u01/app/oracle/oradata/orcl/users01.dbf
  5       Full 1008677    02-APR-14 /u01/app/oracle/oradata/orcl/example01.dbf
BS Key  Type LV Size       Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
6       Full    9.36M      DISK        00:00:02     02-APR-14      
        BP Key: 6   Status: AVAILABLE  Compressed: NO  Tag: TAG20140402T083021
        Piece Name: /u01/app/oracle/flash_recovery_area/ORCL/backupset/2014_04_02/o1_mf_ncsnf_TAG20140402T083021_9mppn7g5_.bkp
  SPFILE Included: Modification time: 02-APR-14
  SPFILE db_unique_name: ORCL
  Control File Included: Ckp SCN: 1008751      Ckp time: 02-APR-14
BS Key  Type LV Size       Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
7       Full    1.01G      DISK        00:02:25     03-APR-14      
        BP Key: 7   Status: AVAILABLE  Compressed: NO  Tag: TAG20140403T085740
        Piece Name: /u01/app/oracle/flash_recovery_area/ORCL/backupset/2014_04_03/o1_mf_nnndf_TAG20140403T085740_9msdjf1h_.bkp
  List of Datafiles in backup set 7
  File LV Type Ckp SCN    Ckp Time  Name
  ---- -- ---- ---------- --------- ----
  1       Full 1010406    03-APR-14 /u01/app/oracle/oradata/orcl/system01.dbf
  2       Full 1010406    03-APR-14 /u01/app/oracle/oradata/orcl/sysaux01.dbf
  3       Full 1010406    03-APR-14 /u01/app/oracle/oradata/orcl/undotbs01.dbf
  4       Full 1010406    03-APR-14 /u01/app/oracle/oradata/orcl/users01.dbf
  5       Full 1010406    03-APR-14 /u01/app/oracle/oradata/orcl/example01.dbf
BS Key  Type LV Size       Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
8       Full    9.36M      DISK        00:00:05     03-APR-14      
        BP Key: 8   Status: AVAILABLE  Compressed: NO  Tag: TAG20140403T085740
        Piece Name: /u01/app/oracle/flash_recovery_area/ORCL/backupset/2014_04_03/o1_mf_ncsnf_TAG20140403T085740_9msdnrft_.bkp
  SPFILE Included: Modification time: 03-APR-14
  SPFILE db_unique_name: ORCL
  Control File Included: Ckp SCN: 1010627      Ckp time: 03-APR-14
BS Key  Type LV Size       Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
9       Full    1.01G      DISK        00:02:58     04-APR-14      
        BP Key: 9   Status: AVAILABLE  Compressed: NO  Tag: TAG20140404T094940
        Piece Name: /u01/app/oracle/flash_recovery_area/ORCL/backupset/2014_04_04/o1_mf_nnndf_TAG20140404T094940_9mw3y603_.bkp
  List of Datafiles in backup set 9
  File LV Type Ckp SCN    Ckp Time  Name
  ---- -- ---- ---------- --------- ----
  1       Full 1013694    04-APR-14 /u01/app/oracle/oradata/orcl/system01.dbf
  2       Full 1013694    04-APR-14 /u01/app/oracle/oradata/orcl/sysaux01.dbf
  3       Full 1013694    04-APR-14 /u01/app/oracle/oradata/orcl/undotbs01.dbf
  4       Full 1013694    04-APR-14 /u01/app/oracle/oradata/orcl/users01.dbf
  5       Full 1013694    04-APR-14 /u01/app/oracle/oradata/orcl/example01.dbf
BS Key  Type LV Size       Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
10      Full    9.36M      DISK        00:00:08     04-APR-14      
        BP Key: 10   Status: AVAILABLE  Compressed: NO  Tag: TAG20140404T094940
        Piece Name: /u01/app/oracle/flash_recovery_area/ORCL/backupset/2014_04_04/o1_mf_ncsnf_TAG20140404T094940_9mw43jmo_.bkp
  SPFILE Included: Modification time: 04-APR-14
  SPFILE db_unique_name: ORCL
  Control File Included: Ckp SCN: 1014440      Ckp time: 04-APR-14
RMAN>
可以看到,4月1日的文件虽然还有,但和之前相比,已经从2个减少到1个。
上述试验说明,control_file_record_keep_time 虽然进行了设定,也并不是就马上把超过窗口期的数据清除的。
controlfile作为RMAN的repository时,对 keep time 的测试的更多相关文章
- RMAN备份介质的移动与再恢复测试 [ catalog start with ‘dir’ ]
		
--RMAN备份介质的移动与再恢复测试 ---------------------------------------------------------2013/09/21 由于目前生产环境中没 ...
 - Oracle使用rman备份数据库时出现cannot reclaim的错误
		
1. 按照<2 day DBA>中的guide,设置fast recovery area. SQL> ALTER SYSTEM SET DB_RECOVERY_FILE_DEST_S ...
 - RMAN duplciate 准备时,需要检查的target数据库参数内容
		
SQL> show parameter audit_file_dest; NAME TYPE VALUE------ ...
 - 屏幕旋转时 Activity 的生命周期 —— 测试与结论
		
关于 Android 手机横竖屏切换时 Activity 的生命周期问题,网上有很多相似的文章,大多数都是说明在竖屏切换横屏时 Activity 会重启一次,而在横屏切换竖屏时 Activity 会重 ...
 - 【OF框架】框架Cache/Session在负载均衡部署时,切换Memory/Redis测试
		
一.切换Memory/Redis 第一步:安装运行Redis服务,获得连接参数. 第二步:在appsettings.json中配置 EnableRedisCache 和 Redisconnection ...
 - 工具请求接口参数为string类型的JSON字符串时需要加转义字符模拟测试
		
例如postMan传String类型的json字符串请后台接口时,需要\转义
 - 学习c语言时对一些疑问的测试
		
#include<stdio.h>#include<string.h> int main(){/* 1 */// int a[3][3]={6,1,2,3,4,5};// in ...
 - ibdata1文件损坏时恢复InnoDB单表测试
		
Preface ibdata1 file is a shared system tablespace of innodb engine.Although we always set v ...
 - RMAN duplicate from active 时遭遇 ORA-17627 ORA-12154
		
最近在从活动数据库进行异机克隆时碰到了ORA-17629,ORA-17627,ORA-12154的错误,起初以为是一个Bug呢.Oracle Bug着实太多了,已经成了习惯性思维了.汗!错误提示是无法 ...
 
随机推荐
- JSTL核心标签库——<c:set>标签、<c:out>标签
			
<c:set>标签 index.jsp <%@ page import="java.util.Map" %> <%@ page import=&quo ...
 - springboot 学习之路 17(webflux 入门 (1))
			
Webflux: webflux是在springboot2系列引入的技术:补充一些概念: 1> Reactive Streams 是 JVM 中面向流的库标准和规范: 处理可能无限数量的元素 按 ...
 - Oracle EBS 创建 RMA
			
DECLARE l_api_version_number NUMBER := 1; l_return_status VARCHAR2(2000); l_msg_count NUMBER; l_msg_ ...
 - python自学——文件处理(截取文件内容)
			
#截断文件内容使用的函数为truncate()来截断文件中的内容# 注意当truncate()括号内没有定义对象时则会删除文件内容:当括号内为指定某个条件时文件会截取从0到指定位置的内容f=open( ...
 - UNIX高级环境编程(16)文件系统 < 雨后 >
			
来点绿色放松一下眼睛吧 :) 文件系统是对文件和目录的组织集合. 一 设备文件 设备文件和系统的某个设备相对应. 设备驱动程序 处理设备的所有IO请求. 提供了一致的API接口,对应于系统调用的ope ...
 - Linux命令网络命令之netstat
			
Linux命令网络命令之netstat 这一年感觉到技术上成长到了一个瓶颈.可能是感觉自己学的东西足够应付目前的工作了,因此精神上就产生了懈怠,不思进取.到了一个技术氛围不错的公司,有许多专业能力很不 ...
 - MySQL基础之  排序与限制,聚合
			
排序与限制 ORDER BY 作用:取出按照某个字段进行排序后的记录结果集. 配合:常与DESC 和ASC一块使用:默认是ASC,表示升序.DESC表示降序 LIMIT 作用:用于显示数据的一部分记 ...
 - Hadoop HBase概念学习系列之META表和ROOT表(六)
			
在 HBase里的HRegion 里,谈过,HRegion是按照表名+开始/结束主键,即表名+主键范围来区分的.由于主键范围是连续的,所以一般用开始主键就可以表示相应的HRegion了. 不过,因为我 ...
 - 内网arp攻击
			
内网arp攻击 环境:一台kali虚拟机(攻击者),一台win7虚拟机(用户) 网络:NAT模式 网段:192.168.41.0/24 网关:192.168.41.2/24 win7的IP地址:192 ...
 - Gitkraken的使用
			
一个优秀的团队合作离不开git,一个优秀的程序员也离不开git.gitkraken是我在进行软工实践这门课接触到的git的UI界面的工具,它给我留下的印象就是非常好用和方便 怎么个方便法呢? 方便的安 ...