Bonjour,
Je suis entrain de m'entrainer a sauvegarder une base 11g en ARCHIVELOG.
Je fais une sauvegarde RMAN FULL le WE, une Incrémentale de niveau 1 tous les jours, et une archivelog toute les heures.
Je travaille avec un catalogue RMAN.
Seulement, pour chaque sauvegarde, j'ai plein de fichier:
J'ai un fichier de controle par archivelog ...
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27 79052 -rw-r----- 1 oracle dba 80860672 jun 23 22:31 DATA_FULL_TURNER_20130623_1693.DBF 2048828 -rw-r----- 1 oracle dba 2095947776 jun 23 22:50 DATA_FULL_TURNER_20130623_1694.DBF 1348 -rw-r----- 1 oracle dba 1375744 jun 23 22:50 DATA_FULL_TURNER_20130623_1695.DBF 11280 -rw-r----- 1 oracle dba 11534336 jun 23 22:50 CTRL_TURNER_c-1386029296-20130623-00.DBF 29896 -rw-r----- 1 oracle dba 30573056 jun 24 07:00 DATA_LOG_TURNER_20130624_1697.DBF 11280 -rw-r----- 1 oracle dba 11534336 jun 24 07:00 CTRL_TURNER_c-1386029296-20130624-00.DBF 3196 -rw-r----- 1 oracle dba 3265536 jun 24 08:00 DATA_LOG_TURNER_20130624_1699.DBF 11280 -rw-r----- 1 oracle dba 11534336 jun 24 08:00 CTRL_TURNER_c-1386029296-20130624-01.DBF 3184 -rw-r----- 1 oracle dba 3252736 jun 24 09:00 DATA_LOG_TURNER_20130624_1701.DBF 11280 -rw-r----- 1 oracle dba 11534336 jun 24 09:00 CTRL_TURNER_c-1386029296-20130624-02.DBF 3364 -rw-r----- 1 oracle dba 3440128 jun 24 10:00 DATA_LOG_TURNER_20130624_1703.DBF 11280 -rw-r----- 1 oracle dba 11534336 jun 24 10:00 CTRL_TURNER_c-1386029296-20130624-03.DBF 3136 -rw-r----- 1 oracle dba 3204096 jun 24 11:00 DATA_LOG_TURNER_20130624_1705.DBF 11280 -rw-r----- 1 oracle dba 11534336 jun 24 11:00 CTRL_TURNER_c-1386029296-20130624-04.DBF 3252 -rw-r----- 1 oracle dba 3323904 jun 24 12:00 DATA_LOG_TURNER_20130624_1707.DBF 11280 -rw-r----- 1 oracle dba 11534336 jun 24 12:00 CTRL_TURNER_c-1386029296-20130624-05.DBF 3252 -rw-r----- 1 oracle dba 3323904 jun 24 13:00 DATA_LOG_TURNER_20130624_1709.DBF 11280 -rw-r----- 1 oracle dba 11534336 jun 24 13:00 CTRL_TURNER_c-1386029296-20130624-06.DBF 3208 -rw-r----- 1 oracle dba 3277312 jun 24 14:00 DATA_LOG_TURNER_20130624_1711.DBF 11280 -rw-r----- 1 oracle dba 11534336 jun 24 14:00 CTRL_TURNER_c-1386029296-20130624-07.DBF 3236 -rw-r----- 1 oracle dba 3308032 jun 24 15:00 DATA_LOG_TURNER_20130624_1713.DBF 11280 -rw-r----- 1 oracle dba 11534336 jun 24 15:00 CTRL_TURNER_c-1386029296-20130624-08.DBF 3232 -rw-r----- 1 oracle dba 3303936 jun 24 16:00 DATA_LOG_TURNER_20130624_1715.DBF 11280 -rw-r----- 1 oracle dba 11534336 jun 24 16:00 CTRL_TURNER_c-1386029296-20130624-09.DBF 26892 -rw-r----- 1 oracle dba 27503616 jun 24 17:00 DATA_LOG_TURNER_20130624_1717.DBF 11280 -rw-r----- 1 oracle dba 11534336 jun 24 17:00 CTRL_TURNER_c-1386029296-20130624-0a.DBF
ca fait beaucoup je trouve non ?
Voici ma conf RMAN:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 RMAN> show all; RMAN configuration parameters for database with db_unique_name TURNER are: CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 14 DAYS; CONFIGURE BACKUP OPTIMIZATION ON; CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default CONFIGURE CONTROLFILE AUTOBACKUP ON; CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/common/rman/CTRL_%d_%F.DBF'; CONFIGURE DEVICE TYPE DISK BACKUP TYPE TO COMPRESSED BACKUPSET PARALLELISM 1; 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 '/common/rman/DATA_%d_%T_%s.DBF'; 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 '/usr/local/oracle_std/dbhome_1/dbs/snapcf_TURNER.f'; # default
Est ce normal qu'il y ai autant de fichier ?
puis je supprimer les archivelogs sauvegardé ?
Concernant la base sauvegardée, elle ne travaille pas beaucoup (1 ligne ajouté toute les 5 min)
Mon script de sauvegarde pour les archivelogs est :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7 run { ALLOCATE CHANNEL C1 DEVICE TYPE DISK FORMAT '/common/rman/DATA_LOG_%d_%T_%s.DBF'; SQL 'ALTER SYSTEM SWITCH LOGFILE'; BACKUP ARCHIVELOG ALL TAG 'ARCHIVELOG'; SQL 'ALTER SYSTEM ARCHIVE LOG CURRENT'; }
Partager