- 最后登录
- 2023-8-16
- 在线时间
- 1686 小时
- 威望
- 2135
- 金钱
- 50532
- 注册时间
- 2011-10-12
- 阅读权限
- 200
- 帖子
- 5207
- 精华
- 39
- 积分
- 2135
- UID
- 2
|
6#
发表于 2012-5-5 19:42:42
[oracle@vrh1 ~]$ rman target /
Recovery Manager: Release 11.2.0.3.0 - Production on Sat May 5 07:22:33 2012
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
connected to target database: VPROD (DBID=896680541)
RMAN> backup incremental level 0 database archivelog all delete input;
Starting backup at 05-MAY-12
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=33 instance=VPROD1 device type=DISK
channel ORA_DISK_1: starting archived log backup set
channel ORA_DISK_1: specifying archived log(s) in backup set
input archived log thread=1 sequence=6 RECID=2 STAMP=781836215
input archived log thread=2 sequence=1 RECID=1 STAMP=781835802
input archived log thread=2 sequence=2 RECID=5 STAMP=781837663
input archived log thread=1 sequence=7 RECID=3 STAMP=781837662
input archived log thread=1 sequence=8 RECID=4 STAMP=781837663
input archived log thread=2 sequence=3 RECID=6 STAMP=781839271
input archived log thread=1 sequence=9 RECID=8 STAMP=781847588
input archived log thread=2 sequence=4 RECID=7 STAMP=781839272
input archived log thread=2 sequence=5 RECID=9 STAMP=781856278
input archived log thread=1 sequence=10 RECID=10 STAMP=781856278
input archived log thread=2 sequence=6 RECID=13 STAMP=781862341
input archived log thread=1 sequence=11 RECID=11 STAMP=781862339
input archived log thread=1 sequence=12 RECID=12 STAMP=781862339
input archived log thread=2 sequence=7 RECID=14 STAMP=781862356
input archived log thread=1 sequence=13 RECID=18 STAMP=781862360
input archived log thread=2 sequence=8 RECID=15 STAMP=781862356
input archived log thread=2 sequence=9 RECID=16 STAMP=781862357
input archived log thread=2 sequence=10 RECID=17 STAMP=781862357
input archived log thread=1 sequence=14 RECID=19 STAMP=781869113
input archived log thread=2 sequence=11 RECID=21 STAMP=781869134
input archived log thread=1 sequence=15 RECID=20 STAMP=781869114
input archived log thread=2 sequence=12 RECID=22 STAMP=781869137
input archived log thread=1 sequence=16 RECID=24 STAMP=781885360
input archived log thread=2 sequence=13 RECID=23 STAMP=781869143
input archived log thread=2 sequence=14 RECID=27 STAMP=781930843
input archived log thread=1 sequence=17 RECID=25 STAMP=781914193
input archived log thread=1 sequence=18 RECID=26 STAMP=781930841
input archived log thread=1 sequence=19 RECID=28 STAMP=781952296
input archived log thread=2 sequence=15 RECID=31 STAMP=781952728
input archived log thread=1 sequence=20 RECID=29 STAMP=781952353
input archived log thread=1 sequence=21 RECID=30 STAMP=781952727
input archived log thread=1 sequence=22 RECID=32 STAMP=781999253
input archived log thread=2 sequence=16 RECID=34 STAMP=782136028
input archived log thread=1 sequence=23 RECID=33 STAMP=782125207
input archived log thread=1 sequence=24 RECID=35 STAMP=782172037
input archived log thread=2 sequence=17 RECID=38 STAMP=782195051
input archived log thread=1 sequence=25 RECID=36 STAMP=782195049
input archived log thread=1 sequence=26 RECID=37 STAMP=782195049
input archived log thread=2 sequence=18 RECID=39 STAMP=782195109
input archived log thread=1 sequence=27 RECID=43 STAMP=782195248
input archived log thread=2 sequence=19 RECID=40 STAMP=782195109
input archived log thread=2 sequence=20 RECID=41 STAMP=782195246
input archived log thread=2 sequence=21 RECID=42 STAMP=782195247
input archived log thread=1 sequence=28 RECID=44 STAMP=782195637
input archived log thread=2 sequence=22 RECID=47 STAMP=782195970
input archived log thread=1 sequence=29 RECID=45 STAMP=782195969
input archived log thread=1 sequence=30 RECID=46 STAMP=782195970
input archived log thread=2 sequence=23 RECID=48 STAMP=782195999
input archived log thread=2 sequence=24 RECID=49 STAMP=782203584
input archived log thread=1 sequence=31 RECID=51 STAMP=782278420
input archived log thread=2 sequence=25 RECID=50 STAMP=782203585
input archived log thread=1 sequence=32 RECID=52 STAMP=782360889
input archived log thread=1 sequence=33 RECID=53 STAMP=782431232
input archived log thread=1 sequence=34 RECID=54 STAMP=782460010
channel ORA_DISK_1: starting piece 1 at 05-MAY-12
^C
user interrupt received
Finished backup at 05-MAY-12
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03099: job cancelled at user request
RMAN> backup archivelog all delete input;
Starting backup at 05-MAY-12
current log archived
using channel ORA_DISK_1
channel ORA_DISK_1: starting archived log backup set
channel ORA_DISK_1: specifying archived log(s) in backup set
input archived log thread=1 sequence=6 RECID=2 STAMP=781836215
input archived log thread=2 sequence=1 RECID=1 STAMP=781835802
input archived log thread=2 sequence=2 RECID=5 STAMP=781837663
input archived log thread=1 sequence=7 RECID=3 STAMP=781837662
input archived log thread=1 sequence=8 RECID=4 STAMP=781837663
input archived log thread=2 sequence=3 RECID=6 STAMP=781839271
input archived log thread=1 sequence=9 RECID=8 STAMP=781847588
input archived log thread=2 sequence=4 RECID=7 STAMP=781839272
input archived log thread=2 sequence=5 RECID=9 STAMP=781856278
input archived log thread=1 sequence=10 RECID=10 STAMP=781856278
input archived log thread=2 sequence=6 RECID=13 STAMP=781862341
input archived log thread=1 sequence=11 RECID=11 STAMP=781862339
input archived log thread=1 sequence=12 RECID=12 STAMP=781862339
input archived log thread=2 sequence=7 RECID=14 STAMP=781862356
input archived log thread=1 sequence=13 RECID=18 STAMP=781862360
input archived log thread=2 sequence=8 RECID=15 STAMP=781862356
input archived log thread=2 sequence=9 RECID=16 STAMP=781862357
input archived log thread=2 sequence=10 RECID=17 STAMP=781862357
input archived log thread=1 sequence=14 RECID=19 STAMP=781869113
input archived log thread=2 sequence=11 RECID=21 STAMP=781869134
input archived log thread=1 sequence=15 RECID=20 STAMP=781869114
input archived log thread=2 sequence=12 RECID=22 STAMP=781869137
input archived log thread=1 sequence=16 RECID=24 STAMP=781885360
input archived log thread=2 sequence=13 RECID=23 STAMP=781869143
input archived log thread=2 sequence=14 RECID=27 STAMP=781930843
input archived log thread=1 sequence=17 RECID=25 STAMP=781914193
input archived log thread=1 sequence=18 RECID=26 STAMP=781930841
input archived log thread=1 sequence=19 RECID=28 STAMP=781952296
input archived log thread=2 sequence=15 RECID=31 STAMP=781952728
input archived log thread=1 sequence=20 RECID=29 STAMP=781952353
input archived log thread=1 sequence=21 RECID=30 STAMP=781952727
input archived log thread=1 sequence=22 RECID=32 STAMP=781999253
input archived log thread=2 sequence=16 RECID=34 STAMP=782136028
input archived log thread=1 sequence=23 RECID=33 STAMP=782125207
input archived log thread=1 sequence=24 RECID=35 STAMP=782172037
input archived log thread=2 sequence=17 RECID=38 STAMP=782195051
input archived log thread=1 sequence=25 RECID=36 STAMP=782195049
input archived log thread=1 sequence=26 RECID=37 STAMP=782195049
input archived log thread=2 sequence=18 RECID=39 STAMP=782195109
input archived log thread=1 sequence=27 RECID=43 STAMP=782195248
input archived log thread=2 sequence=19 RECID=40 STAMP=782195109
input archived log thread=2 sequence=20 RECID=41 STAMP=782195246
input archived log thread=2 sequence=21 RECID=42 STAMP=782195247
input archived log thread=1 sequence=28 RECID=44 STAMP=782195637
input archived log thread=2 sequence=22 RECID=47 STAMP=782195970
input archived log thread=1 sequence=29 RECID=45 STAMP=782195969
input archived log thread=1 sequence=30 RECID=46 STAMP=782195970
input archived log thread=2 sequence=23 RECID=48 STAMP=782195999
input archived log thread=2 sequence=24 RECID=49 STAMP=782203584
input archived log thread=1 sequence=31 RECID=51 STAMP=782278420
input archived log thread=2 sequence=25 RECID=50 STAMP=782203585
input archived log thread=1 sequence=32 RECID=52 STAMP=782360889
input archived log thread=1 sequence=33 RECID=53 STAMP=782431232
input archived log thread=1 sequence=34 RECID=54 STAMP=782460010
input archived log thread=1 sequence=35 RECID=55 STAMP=782464979
channel ORA_DISK_1: starting piece 1 at 05-MAY-12
channel ORA_DISK_1: finished piece 1 at 05-MAY-12
piece handle=+BACKUPDG/vprod/backupset/2012_05_05/annnf0_tag20120505t072259_0.332.782464981 tag=TAG20120505T072259 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:07
channel ORA_DISK_1: deleting archived log(s)
archived log file name=+BACKUPDG/vprod/archivelog/2012_04_29/thread_1_seq_6.276.781836215 RECID=2 STAMP=781836215
Finished backup at 05-MAY-12
RMAN> sql 'alter system archive log current';
sql statement: alter system archive log current
RMAN> backup incremental level 0 database archivelog all delete input;
Starting backup at 05-MAY-12
using channel ORA_DISK_1
channel ORA_DISK_1: starting incremental level 0 datafile backup set
channel ORA_DISK_1: specifying datafile(s) in backup set
input datafile file number=00001 name=+DATA/vprod/datafile/system.730.781835417
input datafile file number=00002 name=+DATA/vprod/datafile/sysaux.731.781835417
input datafile file number=00005 name=+DATA/vprod/datafile/example.738.781835515
input datafile file number=00003 name=+DATA/vprod/datafile/undotbs1.732.781835419
input datafile file number=00006 name=+DATA/vprod/datafile/undotbs2.739.781835687
input datafile file number=00004 name=+DATA/vprod/datafile/users.733.781835419
channel ORA_DISK_1: starting piece 1 at 05-MAY-12
^C
user interrupt received
Finished backup at 05-MAY-12
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03099: job cancelled at user request
RMAN> sql 'alter system archive log current';
sql statement: alter system archive log current
RMAN> sql 'alter system archive log current';
sql statement: alter system archive log current
RMAN> sql 'alter system archive log current';
sql statement: alter system archive log current
RMAN> sql 'alter system archive log current';
sql statement: alter system archive log current
RMAN> sql 'alter system archive log current';
sql statement: alter system archive log current
RMAN> sql 'alter system archive log current';
sql statement: alter system archive log current
RMAN> backup incremental level 0 database archivelog all delete input;
Starting backup at 05-MAY-12
using channel ORA_DISK_1
channel ORA_DISK_1: starting incremental level 0 datafile backup set
channel ORA_DISK_1: specifying datafile(s) in backup set
input datafile file number=00001 name=+DATA/vprod/datafile/system.730.781835417
input datafile file number=00002 name=+DATA/vprod/datafile/sysaux.731.781835417
input datafile file number=00005 name=+DATA/vprod/datafile/example.738.781835515
input datafile file number=00003 name=+DATA/vprod/datafile/undotbs1.732.781835419
input datafile file number=00006 name=+DATA/vprod/datafile/undotbs2.739.781835687
input datafile file number=00004 name=+DATA/vprod/datafile/users.733.781835419
channel ORA_DISK_1: starting piece 1 at 05-MAY-12
^C
user interrupt received
Finished backup at 05-MAY-12
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03099: job cancelled at user request
SQL> create table large_redo tablespace users as select * from dba_objects;
Table created.
SQL> insert into large_redo select * from large_redo;
72820 rows created.
SQL> /
145640 rows created.
SQL> /
291280 rows created.
SQL> commit;
Commit complete.
SQL> insert into large_redo select * from large_redo;
582560 rows created.
SQL> /
1165120 rows created.
SQL> commit;
Commit complete.
SQL> insert into large_redo select * from large_redo;
2330240 rows created.
SQL> commit;
Commit complete.
SQL> Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options
[oracle@vrh1 ~]$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.3.0 Production on Sat May 5 07:30:24 2012
Copyright (c) 1982, 2011, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options
SQL> archive log list;
Database log mode Archive Mode
Automatic archival Enabled
Archive destination +BACKUPDG
Oldest online log sequence 53
Next log sequence to archive 54
Current log sequence 54
RMAN> backup incremental level 0 database archivelog all delete input;
Starting backup at 05-MAY-12
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=163 instance=VPROD1 device type=DISK
channel ORA_DISK_1: starting archived log backup set
channel ORA_DISK_1: specifying archived log(s) in backup set
input archived log thread=1 sequence=36 RECID=56 STAMP=782465045
input archived log thread=1 sequence=37 RECID=57 STAMP=782465221
input archived log thread=1 sequence=38 RECID=58 STAMP=782465224
input archived log thread=1 sequence=39 RECID=59 STAMP=782465228
input archived log thread=1 sequence=40 RECID=60 STAMP=782465231
input archived log thread=1 sequence=41 RECID=61 STAMP=782465234
input archived log thread=1 sequence=42 RECID=62 STAMP=782465238
input archived log thread=1 sequence=43 RECID=63 STAMP=782465302
input archived log thread=1 sequence=44 RECID=64 STAMP=782465318
input archived log thread=1 sequence=45 RECID=65 STAMP=782465322
input archived log thread=1 sequence=46 RECID=66 STAMP=782465325
input archived log thread=1 sequence=47 RECID=67 STAMP=782465328
input archived log thread=1 sequence=48 RECID=68 STAMP=782465342
input archived log thread=1 sequence=49 RECID=69 STAMP=782465346
input archived log thread=1 sequence=50 RECID=70 STAMP=782465348
input archived log thread=1 sequence=51 RECID=71 STAMP=782465350
input archived log thread=1 sequence=52 RECID=72 STAMP=782465351
input archived log thread=1 sequence=53 RECID=73 STAMP=782465353
channel ORA_DISK_1: starting piece 1 at 05-MAY-12
"backup incremental level 0 database archivelog all delete input;" 备份的优先级 应当根据 需要备份ARCHIVELOG归档日志的大小(不是个数,而是实际需要备份的ARCHIVELOG的容量) 和相关的内部算法决定。
在以上 示例测试中 当有 少量redo archivelog需要备份时 , "backup incremental level 0 database archivelog all delete input;" 优先备份了 incremental level 0 database ,之后才备份了 archivelog
当有大量redo archivelog 需要备份时, "backup incremental level 0 database archivelog all delete input;" 优先备份了归档日志
这可能是 某个版本以后加入的 rman 优先级算法,算是一个比较隐秘的特性。 相关的隐藏参数可能是 _rman_io_priority |
|