Rman backup with archivelog from tape
Hi,
We are doing a level 0 backup on sunday and then level1 backup on all the weekdays.
The archive logs generated are 1GB each and are more in number.
IF we include archivelog in level1 backup , its taking around 12hrs to complete.
So we are thinking of not including the archivelog in level 1 backup,but then we can daily move the archive logs to another location .
So archivelogs will not be in the rman backup.
So in case of restore, how can we apply the archive logs required? rman will not identify the archive logs...how can we manually apply the required archive logs
Please help
Information about ArchiveLogs is available in the controlfile as I outlined in my response post in the thread How to find out which archived logs needed to recover a hot backup?
However, if your CONTROLFILE_RECORD_KEEP_TIME is 7 days and you are attempting a restore of a backup 14 days or 28 days or 35 days old ... you may be out of luck.
You'd need to maintain a listing of ArchiveLogs in some manner (e.g. a log file outside the database that you periodically update with information about ArchiveLogs).
It is much better to also backup the ArchiveLogs using RMAN. Don't forget to ensure that controlfile backups or autobackups are also taken and retained.
Hemant K Chitale
Similar Messages
-
RMAN backup with archivelog (pros/cons)
When performing a "backup database with archivelogs" where does rman store the info contained in the archive logs. If I do a backup like this do I still need to keep the archive logs out on disk? Does this increase time to do backups? I have some production databases that are close to 500gb. Wondering what the pros/cons are doing a backup this way.
Thanks All!user10784896 wrote:
When performing a "backup database with archivelogs" where does rman store the info contained in the archive logs. The info stored in the archive logs (what you asked about, but probably not what you meant) is stored in the archive logs. The backups of those logs are stored in a backup set. The information about the logs is stored in the control file.
If I do a backup like this do I still need to keep the archive logs out on disk?
You have backed them up, right? Archivelogs are not actively used by the running database, right? If you don't delete them after they are backed up, let me know who you buy your disk storage solutions from, as I'd like to buy stock in that company.
Does this increase time to do backups? Anything you do "increases time to do" vs. not doing something. (The most efficient SELECT statement is the one not executed). The question is does this have a practical, measurable degradation of performance that is intolerable to my organization? The answer undoubtedly "no".
I have some production databases that are close to 500gb. Wondering what the pros/cons are doing a backup this way.
Pros are you can recover your database.
Cons are, you can't recover your database.
And it looks like we need to point out that the housekeeping of your archivelogs can and should be handled by rman, not outside of it. Look at "backup archivelog not backed up n times" and "delete archivelog backed up n times", and other variations of 'backup archivelog' and 'delete archivelog'.
>
Thanks All! -
RMAN backup with archivelogs.
Dear all,
Can i delete all archivels after the RMAN backup. Why do we backup archivelogs with RMAN backup. I think it is useless.
Please can somebody explane this.
Regards
upul indikaWhy do we backup archivelogs with RMAN backup. I
think it is useless. You think backing up archivelogs is useless ? Did you ever recover a database ? Did you ever simulate a disaster recovery ? If yes, how did you do it ? If not, then you should have a look at the documentation
Anyway, you can (or even you should) delete archivelogs after the RMAN backup. -
Error while run rman backu plus archivelog to tape
hi all,
am trying to run rman backup plus archivelog TO tape disk
my rman configuration settings are as seen below
RMAN configuration parameters are:
CONFIGURE RETENTION POLICY TO REDUNDANCY 2;
CONFIGURE BACKUP OPTIMIZATION ON;
CONFIGURE DEFAULT DEVICE TYPE TO DISK;
CONFIGURE CONTROLFILE AUTOBACKUP ON;
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default
CONFIGURE DEVICE TYPE DISK BACKUP TYPE TO COPY 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 '/dev/nst0/%u';
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 '/oracle/Ora10R2/Orahome/dbs/snapcf_dse.f
'; # default
get the following error when i do this,
RMAN-03009: failure of backup command on C3 channel at 01/03/2013 11:33:45
ORA-00600: internal error code, arguments: [ksfdfetch1], [], [], [], [], [], [],
Can any one tell why am getting this error?
ThanksHi,
ora-600s are very strange errors, and most times difficult to understand.
there are however some useful notes.
ORA-600/ORA-7445/ORA-700 Error Look-up Tool [Article ID 153788.1]
Master Note for Diagnosing ORA-600 [Article ID 1092832.1]
besides that, you could inform us of the platform, OS, DB version that you are using.
br,
jpinela. -
I tried to do an incremental level 0 backup with archivelogs, it failed with the error messages said that can not recognize file C:\ARCHIVE\ORCL\4_1_684433700.ARC, the error code was ORA-19625. So I added "crosscheck archivelog all;" to the backup script and Redo it.
This time it succeeded, but there is still something I'm confused. I set up two folders to store the archivelogs, during the process, the archivelogs in the folders were not deleted synchronously,for example arhivelog a was deleted from one folder while the same file in the other folder was remained. Below is my backup script
RUN {
ALLOCATE CHANNEL ch00 TYPE DISK;
ALLOCATE CHANNEL ch01 TYPE DISK;
BACKUP
incremental level 0
SKIP INACCESSIBLE
TAG hot_db_bk_level0
FILESPERSET 5
# recommended format
FORMAT '\\dell090121\rman_hotbackup\bk_full_%s_%p_%t'
DATABASE;
sql 'alter system archive log current';
RELEASE CHANNEL ch00;
RELEASE CHANNEL ch01;
# backup all archive logs
ALLOCATE CHANNEL ch00 TYPE DISK;
ALLOCATE CHANNEL ch01 TYPE DISK;
BACKUP
filesperset 20
FORMAT '\\dell090121\rman_hotbackup\al_%s_%p_%t'
ARCHIVELOG ALL DELETE INPUT;
RELEASE CHANNEL ch00;
RELEASE CHANNEL ch01;
# Note: During the process of backing up the database, RMAN also backs up the
# control file. This version of the control file does not contain the
# information about the current backup because "nocatalog" has been specified.
# To include the information about the current backup, the control file should
# be backed up as the last step of the RMAN section. This step would not be
# necessary if we were using a recovery catalog.
ALLOCATE CHANNEL ch00 TYPE DISK;
BACKUP
# recommended format
FORMAT '\\dell090121\rman_hotbackup\cntrl_%s_%p_%t'
CURRENT CONTROLFILE;
RELEASE CHANNEL ch00;
}Even if you have two (or more) archivelog destination directories, the "DELETE INPUT" clause in "BACKUP ARCHIVELOG ..." would delete only archivelogs which it reads for the backup. Thus, because the backup could read from dest_1 (for instance), it would archivelogs from dest_1 but not from dest_2. The Backup is free to backup files at either dest location and delete only what it has backed up, by default with "DELETE INPUT".
However if you specify DELETE ALL INPUT, then Oracle deletes all copies of the ArchiveLogs.
Thus your backup command would be
BACKUP ARCHIVELOG ALL DELETE ALL INPUT;where the first "ALL" is "all archived log sequences available, but only 1 copy of each" while the second "ALL" is "all copies of each archived log backed up by the BACKUP" -
Taking daily rman backup of archivelogs
Hi,
Technical info:
OS: Windows 2003 EE
DB: Oracle 10g EE v. 10.2.0.3
DB size: 30 GB
I need help to create a rman script or suggestions for creating a Job in Grid Control.
I want to take a daily (monday to friday) rman backup of archivelogs in the time interval 9 AM to 5 PM. The script should be run every 2 hours. I want the script to remove the archivelogs that are older than 4 days. The retention policy is 9 days.
Any suggestions will be very much appreciated.Hi,
Yes, I have realized that I can create different jobs in Grid Control one for each day and each time: for example: at 9 AM, 11 AM, etc until 5 PM.
Each job performs a backup archivelog and removes those backups that are older than 4 days.
But I have to create 25 jobs (5 jobs for each day).
Is there a simpler way to achieve the same result? -
Rman backup with standby database
Hi All,
I am looking for some suggestions for rman backup with standby database with datagaurd but no active DG. I wanted to do a rman tablespace backup. but I am stuck at sql 'alter system archive log current' in rman with standby as target. which gives following errors with or without noswitch clause
RMAN> sql 'alter system archive log current noswitch';
sql statement: alter system archive log current noswitch
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03009: failure of sql command on default channel at 10/05/2013 18:15:12
RMAN-11003: failure during parse/execution of SQL statement: alter system archive log current noswitch
ORA-01109: database not open
Recovery Manager: Release 11.2.0.1.0
Oracle databaes Release 11.2.0.1.0 64 bit
OS:RHEL 6 x86-64 bit
Secondly, do I need to cancel manged recovery while taking rman backups on standby.
I scanned thru MOS but could find solutions for rman with active DG.
Thanks in advance726d07e6-b870-431f-8c22-a499c3ec4e0c wrote:
Hi All,
I am looking for some suggestions for rman backup with standby database with datagaurd but no active DG. I wanted to do a rman tablespace backup. but I am stuck at sql 'alter system archive log current' in rman with standby as target. which gives following errors with or without noswitch clause
RMAN> sql 'alter system archive log current noswitch';
sql statement: alter system archive log current noswitch
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03009: failure of sql command on default channel at 10/05/2013 18:15:12
RMAN-11003: failure during parse/execution of SQL statement: alter system archive log current noswitch
ORA-01109: database not open
Recovery Manager: Release 11.2.0.1.0
Oracle databaes Release 11.2.0.1.0 64 bit
OS:RHEL 6 x86-64 bit
Secondly, do I need to cancel manged recovery while taking rman backups on standby.
I scanned thru MOS but could find solutions for rman with active DG.
Thanks in advance
"I scanned thru MOS but could find solutions for rman with active DG."
Howto make a consistent RMAN backup in an Standby database in Active DataGuard mode (Doc ID 1419923.1) -
Hello everyone! Can anyone make backup with NvBackup from his Tungsten E2 and send it to me, please? :3
I got corrupted bluetooth module on my ROM (hard reset does not help ).
Can anyone make backup *after[if you can]* hard reset and send it to me?
Please make link to rghost.ru or dropbox :3
Post relates to: Tungsten E2Hello everyone! Can anyone make backup with NvBackup from his Tungsten E2 and send it to me, please? :3
I got corrupted bluetooth module on my ROM (hard reset does not help ).
Can anyone make backup *after[if you can]* hard reset and send it to me?
Please make link to rghost.ru or dropbox :3
Post relates to: Tungsten E2 -
Rman backup with a missing archivelog.
hello,
I backed my database up yesterday after you guys helped me fix few problems I had on it. I used RMAN with the following command in a run block:
*run {*
allocate channel t1 type disk;
backup current controlfile ;
backup database;
backup archivelog all delete input;
release channel c1;
At the end of the operation, RMAN indicates that and archivelog is missing and it couldn't find it. As a result, recover operation can be compromised. Now am confused because I do not know whether the command executed successfully or not and how to fix the missing archivelog.
Below is the entire output of the operation along with error message:
canal affectÚ : t1
canal t1 : sid=131 typedev=DISK
DÚmarrage de backup dans 16/04/09
canal t1 : dÚmarrage de l'ensemble de sauvegarde de tous les fichiers de donnÚes
canal t1 : insertion du fichier de donnÚes dans l'ensemble de sauvegarde
insertion du fichier de contr¶le en cours dans l'ensemble de sauvegarde
canal t1 : dÚmarrage de l'ÚlÚment 1 dans 16/04/09
canal t1 : ÚlÚment 1 terminÚ dans 16/04/09
pointeur=+ASMTEST/meta4/backupset/2009_04_16/ncnnf0_tag20090416t211049_0.334.684
*364257 Útiquette=TAG20090416T211049 commentaire=NONE*
canal t1 : ensemble de sauvegarde terminÚ, temps ÚcoulÚ : 00:00:14
Fin de backup dans 16/04/09
DÚmarrage de backup dans 16/04/09
canal t1 : dÚmarrage de l'ensemble de sauvegarde de tous les fichiers de donnÚes
canal t1 : insertion du fichier de donnÚes dans l'ensemble de sauvegarde
fichier de donnÚes en entrÚe fno=00008 nom=+ASMTEST/meta4/m4prod.dbf
fichier de donnÚes en entrÚe fno=00010 nom=H:\ORADATA\M4REC.DBF
fichier de donnÚes en entrÚe fno=00009 nom=E:\DATAFILEMETA4\M4PROD02.DBF
fichier de donnÚes en entrÚe fno=00001 nom=+ASMTEST/meta4/system01.dbf
fichier de donnÚes en entrÚe fno=00003 nom=+ASMTEST/meta4/sysaux01.dbf
fichier de donnÚes en entrÚe fno=00006 nom=C:\TEST.DBF
fichier de donnÚes en entrÚe fno=00007 nom=+ASMTEST/meta4/meta4.dbf
fichier de donnÚes en entrÚe fno=00005 nom=+ASMTEST/meta4/example01.dbf
fichier de donnÚes en entrÚe fno=00002 nom=+ASMTEST/meta4/undotbs01.dbf
fichier de donnÚes en entrÚe fno=00004 nom=+ASMTEST/meta4/users01.dbf
canal t1 : dÚmarrage de l'ÚlÚment 1 dans 16/04/09
canal t1 : ÚlÚment 1 terminÚ dans 16/04/09
pointeur=+ASMTEST/meta4/backupset/2009_04_16/nnndf0_tag20090416t211107_0.333.684
*364271 Útiquette=TAG20090416T211107 commentaire=NONE*
canal t1 : ensemble de sauvegarde terminÚ, temps ÚcoulÚ : 00:51:10
canal t1 : dÚmarrage de l'ensemble de sauvegarde de tous les fichiers de donnÚes
canal t1 : insertion du fichier de donnÚes dans l'ensemble de sauvegarde
insertion du fichier de contr¶le en cours dans l'ensemble de sauvegarde
inclusion du SPFILE en cours dans l'ensemble de sauvegarde
canal t1 : dÚmarrage de l'ÚlÚment 1 dans 16/04/09
canal t1 : ÚlÚment 1 terminÚ dans 16/04/09
pointeur=+ASMTEST/meta4/backupset/2009_04_16/ncsnf0_tag20090416t211107_0.345.684
*367351 Útiquette=TAG20090416T211107 commentaire=NONE*
canal t1 : ensemble de sauvegarde terminÚ, temps ÚcoulÚ : 00:00:26
Fin de backup dans 16/04/09
DÚmarrage de backup dans 16/04/09
journal en cours archivÚ
canal libÚrÚ : t1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: Úchec de la commande backup Ó 04/16/2009 22:04:03
RMAN-06059: journal d'archivage attendu introuvable ; la perte du journal d'arch
ivage compromet la possibilitÚ de rÚcupÚration
ORA-19625: erreur lors de l'identification du fichier H:\ARCHIVEMETA4\ARC00001_0
*682674928.001*
ORA-27041: ouverture du fichier impossible
OSD-04002: ouverture impossible du fichier
O/S-Error: (OS 2) Le fichier spÚcifiÚ est introuvable.
Here's my nderstanding and please correct me if am wrong:
The first 3 instructions of the run block executed successfully, but
the last one didn't. Is that so?
Whatever the understanding, do I have a backup? WHat can I do to have a consistent backup?
Thanks in advance.Adomi,
It is sad to see you are still running RMAN in 8i fashion where you are on 10g.
The script is bs, sorry
run {
allocate channel t1 type disk; -- not required
backup current controlfile ; -- not required, as this is already done by backup database
backup database;
backup archivelog all delete input;
release channel c1; -- not required.
If you have controlfile autobackup on, you could just
backup database plus archivelog
and be done with it.
As you didn't make a RMAN backup from the start, your backup archivelog statement should have read
backup archivelog all skip inaccessible delete input;
Once that succeeds Oracle shouldn't need the archivelog anymore, and you should make a second backup without the skip inaccessible clause.
Sybrand Bakker
Senior Oracle DBA -
Create a database from 32bit rman backup with NEW name on a 64bit system
Hello,
i'm more programmer than database admin but i need to set up a 10gR2 apex development server based on our productive instance in a short time.
For that i want to use a rman backup of the productive machine (SLES 10 32bit, DB10GR2+ASM, APEX 3.1).
Because of the less time i got, i want to use an existing machine (SLES 11 64bit, DB10GR2+ASM) as destination.
On this machine i want to create a new instance from the backup i took. I Already read note 881395.1 but i'm quite unsure about 2 things
a) It's VERY IMPORTANT that the development instance has another name than the productive instance.
When i follow 881395.1 and set the enviromental variable ORACLE_SID to another new name. Will this be all? Or will there be problems using another SID because of references in the controlfile or sth. like that?
b) It's VERY IMPORTANT that the datafiles aren't stored in the same path and with the same names as the productive instance. It is another server but there is already a copy of the database (our dba tried to set up a standby solution on this machine) and i don't want to bother this!
How can i rename the datafiles before restoring the backup from scatch?
I found this: set newname for datafile 1 to '<filesystem based filename>';
Will this help? Do i need to rename every single file? Or is it possible to set a path in which all datafiles will be restored?
c) What about the 32bit to 64 bit thing? Will this work? Or do i need to convert the database? How? RMAN Convert?
Or could RMAN convert anyhow used to realize the whole thing?
Thank you very much for your support!
Regards
DanielHello,
i'm more programmer than database admin but i need to set up a 10gR2 apex development server based on our productive instance in a short time.
For that i want to use a rman backup of the productive machine (SLES 10 32bit, DB10GR2+ASM, APEX 3.1).
Because of the less time i got, i want to use an existing machine (SLES 11 64bit, DB10GR2+ASM) as destination.
On this machine i want to create a new instance from the backup i took. I Already read note 881395.1 but i'm quite unsure about 2 things
a) It's VERY IMPORTANT that the development instance has another name than the productive instance.
When i follow 881395.1 and set the enviromental variable ORACLE_SID to another new name. Will this be all? Or will there be problems using another SID because of references in the controlfile or sth. like that?
b) It's VERY IMPORTANT that the datafiles aren't stored in the same path and with the same names as the productive instance. It is another server but there is already a copy of the database (our dba tried to set up a standby solution on this machine) and i don't want to bother this!
How can i rename the datafiles before restoring the backup from scatch?
I found this: set newname for datafile 1 to '<filesystem based filename>';
Will this help? Do i need to rename every single file? Or is it possible to set a path in which all datafiles will be restored?
c) What about the 32bit to 64 bit thing? Will this work? Or do i need to convert the database? How? RMAN Convert?
Or could RMAN convert anyhow used to realize the whole thing?
Thank you very much for your support!
Regards
Daniel -
RMAN backup archive logs on tape that has not been backuped yet...
We are using RMAN with catalog on Legato. Oracle 10gR2.
Our archive log backup is taking every 2 hours with scriipt:
run {
allocate channel t1 type 'SBT_TAPE';
allocate channel t2 type 'SBT_TAPE';
send 'NSR_ENV=(NSR_SERVER=hitbackup.hit.hypohr,NSR_CLIENT=a22ff020.hit.hypobck)';
# 0.0840278 = 121 minutes!
backup archivelog FROM TIME = 'sysdate-0.0840278' filesperset 50 format '/arch1_%d_%u/';
release channel t1;
release channel t2;
}In the night we take everyday full backup where we delete all 9 days old archive log which has been backuped on tape at least once. The script is following:
run {
allocate channel t1 type 'SBT_TAPE';
allocate channel t2 type 'SBT_TAPE';
send 'NSR_ENV=(NSR_SERVER=hitbackup.hit.hypohr,NSR_CLIENT=a22ff020.hit.hypobck)';
backup full database filesperset 2 format '/full_%d_%U/';
release channel t1;
release channel t2;
allocate channel d2 type disk;
delete archivelog until time 'trunc(sysdate)-9'
backed up 1 times to device type SBT_TAPE;
release channel d2;
}Problem is that sometimes archive log backup is not performed (Legato head is busy with other backups or some restore that happened in the time when backup is scheduled and later 2hours frame is missing those logs) and then we backup them with some manual script.
We'd like to know how to backup to tape all archive logs in last 5 days that has not been backuped once to tape. I.E:
backup archivelog FROM TIME = 'sysdate-7' filesperset 50 format '/arch1_%d_%u/'
backed up 0 times to device type SBT_TAPE;This part will be included in daily job...which should recollect all missing archive logs from last seven days.
THXYou could try to use the NOT BACKED UP x TIMES clause from BACKUP command.
-
RMAN backup with smallest backup size
Oralce 11g2 on Redhat 5. The diskspace is our tightest resource, and we want to an incremental backup with level0 on Sunday and level 1 every week days and Saturday. I am to use the comamnds to do the job--Sunday
backup incremental level 0 tag 'level_0' database plus archivelog;
--Other days
backup incremental level 1 database plus archivelog delete all input;I do not think this is the best practice nor produce smallest backup files.
What are you comments and opinions. ThanksPavan, Thank you for reply. Here are the info requested
what is size of DB ??
~250GB, including UNDO and TEMP. It is a dev database and not very big. But we have total 800GB disk space. After setting some housekeeoing folders, and allow some space for data growth, it leaves 180GB for flash_recovery_area.
what would be max size of archive logs generated per day ??
Variable from less than 1 GB to 12 GB
Are you taking backups to tape or Disk ??
Disk. In the 180GB flash_recovery_area, Current backup size is 152GB. If a backup fails to delete obsolete files, the next backup will fill the flash_recovery_area.
Provide the Rman configuration information ??
RMAN> show all;
RMAN configuration parameters for database with db_unique_name TDEV2 are:
CONFIGURE RETENTION POLICY TO REDUNDANCY 1; # default
CONFIGURE BACKUP OPTIMIZATION ON;
CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
CONFIGURE CONTROLFILE AUTOBACKUP ON;
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F';
CONFIGURE DEVICE TYPE DISK PARALLELISM 2 BACKUP TYPE TO BACKUPSET;
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_tdev2.f'; # default -
RMAN Backups with retention policy to redundancy 1 doesn't work fine.
Hi experts,
I have a Oracle database with the following system backups:
Monday: ArchiveLog Backup
Tuesday: Full Backup
Wednesday: ArchiveLog Backup
Thursday: ArchiveLog Backup
Friday : Full Backup
Saturday: ArchiveLog Backup
Sunday: ArchiveLog Backup
ArchiveLog Backup = backup tag 'ARCHIVELOG_BACKUP' device type disk archivelog all not backed up delete all input;
Full Backup = backup tag 'FULL_BACKUP' device type disk database skip readonly plus archivelog tag 'FULL_BACKUP_ARCHIVELOGS';
crosscheck backup;
crosscheck copy;
delete noprompt obsolete;
RMAN configuration parameters are:
CONFIGURE RETENTION POLICY TO REDUNDANCY 1; # default
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 BACKUP TYPE TO COMPRESSED BACKUPSET PARALLELISM 8;
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
What this system has done until last two weeks? For example:
Tuesday : Full Backup
Wednesday: ArchiveLog Backup
Thursday: ArchiveLog Backup
Friday : Full Backup - > After that, Full backup from Tuesday and ArchiveLog backups from Wed, and Thurs, are deleted. (Thanks to Retention policy) .
What this system do now?
Tuesday : Full Backup
Wednesday: ArchiveLog Backup
Thursday: ArchiveLog Backup
Friday : Full Backup - > After that, Full backup from Tuesday are deleted but not ArchiveLog backups from Wed, and Thurs.
When I execute a crosscheck on RMAN return that all are AVAILABLE.
My question is: What is right? The system backups before or after?
Thanks for your help!You are confused about the purpose of crosscheck.
There are two concepts for which you must grasp the distinction.
- Expired
- Obsolete
Expired
When an archive log is written, or rman makes a backup, a record of that archivelog or backupset is written to the repository in the control file.
Crosscheck simply checks the existence of the archivelogs or backupsets that are recorded in the repository. If something went missing (say, if you used an OS command to delete archivelogs), the record of the missing file is marked as 'expired'. If you follow the crosscheck command with a 'delete expired' command, the repository records that have been marked 'expired' are deleted from the repository, so rman has no more memory of those files. Note that 'expired' has nothing to do with retention policy. Also note that if you do not actually issue the 'delete expired' command, the expired records will remain in the repository.
Obsolete
The retention policy deals with when a backupset is obsolete, meaning it is no longer needed to protect the retention period. Backupset are not marked as obsolete. They are evaluated for obsolescence at the time of a command that needs it -- "report obsolete" or "delete obsolete", or when FRA maintenance requires an implied 'delete obsolete'. -
Find backup with archivelog which contains scn no
Hi All,
DB -10g
Is there any possibilty to find a backup piece, if we know the scn number ? Also, need to know, one more thing, if I have level 0 backup from sunday and level1 backup till thursday. Now, level backup generates 10 archives.
Now, if i need to recover till thursday, do i needf to have those archives. I belevie, not, beacuse,we have level1 backup. Would appriciate, your thoughts on this.
hare krishnaAmit Beheria wrote:
Thanks Kamran, this means, I do not need to have archivelogs as long as I have incremental backup.If you have incremental backups taken after level 0 backup, then you don't need archived redo log files generated between level 0 and level 1 backups
Actually, I have a scenario, where,we use rman backup to refresh our uat database and for target location, we have some scripts, which we used to refresh uat database. Until I haven't any information about those script and can't provide anything for you
those scripts also , require controlfile backup from source database. Now, I am facing an issue, where on target, rman trying to restore a file, which does not have in backupset and it was created after the backup has completed on source. Firstly you need to refresh that database and then restore the datafile. You need to have backup of that datafile inside your backup (either in incremental or in the archived redo log files) to be able to restore it.
may be, the latest timestamp controlfile shipped to target location and from there it has the entry a newly created file, but when we actually execute them while restoring a file, it got failed, becuase it does not exist.hare krishna -
Got RMAN error when running RMAN backup of archivelogs on physical standby database
Got below error when running RMAN backup of datafiles and archivelogs on physical standby database.
RMAN-06820: WARNING: failed to archive current log at primary database
ORACLE error from target database:
ORA-17629: Cannot connect to the remote database server
ORA-17627: ORA-00942: table or view does not exist
Could anyone help me? Thanks,Hello;
When you connect RMAN to the source database as TARGET you must specify a password even if RMAN uses operating system authentication.
So the errors ORA-17627 and ORA-00942 appear to be cause and effect.
What version of Oracle? ( 11.2.0.4 according to the tag )
Can you post your backup script?
Best Regards
mseberg
Update
According to :
Database Error Messages 11g Release 2 (11.2) E17766-03
RMAN-06820: WARNING: failed to archive current log at primary database
Cause: An attempt to switch the archived log at the primary database failed.
So I would check my Primary alert log for an issue.
Message was edited by: mseberg
Maybe you are looking for
-
Why is my iMac running slow after upgrading to Mavericks
I have an iMac27 that up until I upgraded to Mavericks ran quite fast. Now applications take much longer to open. When the computer comes out of sleep mode it takes from 30 seconds to a minute to open. All I have is a very dim grey screen and the
-
Where does Leopard save network settings?
When I create various "Locations" in the Network preferences, where are the settings saved? Since I have several "Locations" on my laptop and would NOT want to re-create them if something happens to the settings, I would like to save the file that ho
-
Hello, I am trying to embed a JavaFX scene in swing JComponent as shown below: import java.awt.; import javax.swing.; import org.jfxtras.scene.SceneToJComponent; public class Main extends JFrame { public static JTextField tf = new JTextField("JavaFX
-
iMac flat panel, G4 800 mhz ... how to clean my keyboard inside? I've used compressed air in a can. but through the clear Lucite case, I see lots and lots of cat hair and aglomerated dust. This can't be good. How do I dismantle the keyboard case and
-
How to solve performance issue
Hi How to resolve performance issue in following select query- SELECT * INTO CORRESPONDING FIELDS OF TABLE it_final FROM ce1zcsc WHERE paledger EQ c_10 "Currency Type AND vrgar I