我遇到运行在openSuSE 11.2上的Oracle 10g XE版本10.2.0.1的问题。 RMAN显示即使成功完全备份后,也需要备份所有数据文件:
RMAN> report need backup;
using target database control file instead of recovery catalog
RMAN retention policy will be applied to the command
RMAN retention policy is set to redundancy 2
Report of files with less than 2 redundant backups
File #bkps Name
---- ----- -----------------------------------------------------
1 0 /usr/lib/oracle/xe/oradata/XE/system.dbf
2 0 /usr/lib/oracle/xe/oradata/XE/undo.dbf
3 0 /usr/lib/oracle/xe/oradata/XE/sysaux.dbf
4 0 /usr/lib/oracle/xe/oradata/XE/users.dbf
5 0 /oracle/XE/oradata/XE/datafile01.dbf
6 0 /oracle/XE/oradata/XE/index01.dbf
RMAN> list backup summary;
List of Backups
===============
Key TY LV S Device Type Completion Time #Pieces #Copies Compressed Tag
------- -- -- - ----------- --------------- ------- ------- ---------- ---
1671 B F A DISK 26-DEC-12 1 1 YES TAG20121226T010015
1674 B A A DISK 26-DEC-12 1 1 YES TAG20121226T011359
1676 B F A DISK 27-DEC-12 1 1 YES TAG20121227T010018
1679 B A A DISK 27-DEC-12 1 1 YES TAG20121227T011434
1687 B F A DISK 28-DEC-12 1 1 YES TAG20121228T010021
1689 B F A DISK 28-DEC-12 1 1 NO TAG20121228T011355
1690 B A A DISK 28-DEC-12 1 1 YES TAG20121228T011408
1691 B F A DISK 28-DEC-12 1 1 NO TAG20121228T011506
RMAN参数如下:
RMAN> show all;
RMAN configuration parameters are:
CONFIGURE RETENTION POLICY TO REDUNDANCY 2;
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 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 '/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/dbs/snapcf_XE.f'; # default
数据库功能正常;但是,RMAN不会自动删除早于保留策略的备份(2天)。我必须每天手动删除旧备份,以避免磁盘空间不足。
总之,问题如下:
我不清楚#2是症状还是单独的问题。
非常感谢任何建议或想法。
答案 0 :(得分:0)
#bkps = 0的问题看起来很奇怪,对你有好处,你已经整理出来了。
RMAN不会自动删除备份。在安排备份时,您还应安排此RMAN命令:
DELETE NOPROMPT OBSOLETE;
如果您在备份(delete input
)后没有立即删除archivelog,您也应该处理它。
DELETE ARCHIVELOG ALL COMPLETED BEFORE 'SYSDATE-3';
您应该被告知从媒体“消失”的RMAN文件(即有人在操作系统级别移动/删除它们,但留下了RMAN元数据):
LIST EXPIRED;