Archive newspaper vs. Full Backup Concept
HelloI just need some clarification on how backups and Archives Records work. Lets say from 13:00 I have archive records 1,2,3,4,5 and then I perform a full backup at 18:00.
I take then generate logs archiving at 18:00 to get newspapers 6,7,8,9,10. Then, I stop at 23:00.
If my interpretation is correct, the archive logs should allow me to restore oracle to a point in time anywhere between 13:00 and 23:00. But if I have only the full backup, then I can only restore to a single point, which is from 18:00. My understanding is correct?
Archive logs only applied to data files during backup or only during a restore? There is no archive newspaper applied on the fly.
Thanks in advance.
thelok wrote:
Thanks for the great explanation! If I can do a restore time to any time point since the data changed files have been written (or when I have the last set of data files backed up more archive logs). What you say, I can force the data files to write about recovery logs (by a control point with 'alter set archive current log' or 'backup database more archivelog'), and then I can delete all archive logs have an SCN less than the SNA control point on the data files. Is this true? It would be for the purpose of preservation of disk space.
Hello
See this example. I hope this explains your doubt.
# My current date is 06-11-2011 17:15
# I not have backup of this database
# My retention policy is to have 1 backup
# I start listing archive logs.
RMAN> list archivelog all;
using target database control file instead of recovery catalog
List of Archived Log Copies
Key Thrd Seq S Low Time Name
------- ---- ------- - ------------------- ----
29 1 8 A 29-10-2011 12:01:58 +HR/dbhr/archivelog/2011_10_31/thread_1_seq_8.399.766018837
30 1 9 A 31-10-2011 23:00:30 +HR/dbhr/archivelog/2011_11_03/thread_1_seq_9.409.766278025
31 1 10 A 03-11-2011 23:00:23 +HR/dbhr/archivelog/2011_11_04/thread_1_seq_10.391.766366105
32 1 11 A 04-11-2011 23:28:23 +HR/dbhr/archivelog/2011_11_06/thread_1_seq_11.411.766516065
33 1 12 A 05-11-2011 23:28:49 +HR/dbhr/archivelog/2011_11_06/thread_1_seq_12.413.766516349
## See I have archive logs from time "29-10-2011 12:01:58" until "05-11-2011 23:28:49" but I dont have any backup of database.
# So I perfom backup of database including archive logs.
RMAN> backup database plus archivelog delete input;
Starting backup at 06-11-2011 17:15:21
## Note above RMAN forcing archive current log, this archivelog generated will be usable only for previous backup.
## Is not my case... I don't have backup of database.
current log archived
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=159 devtype=DISK
channel ORA_DISK_1: starting archive log backupset
channel ORA_DISK_1: specifying archive log(s) in backup set
input archive log thread=1 sequence=8 recid=29 stamp=766018840
input archive log thread=1 sequence=9 recid=30 stamp=766278027
input archive log thread=1 sequence=10 recid=31 stamp=766366111
input archive log thread=1 sequence=11 recid=32 stamp=766516067
input archive log thread=1 sequence=12 recid=33 stamp=766516350
input archive log thread=1 sequence=13 recid=34 stamp=766516521
channel ORA_DISK_1: starting piece 1 at 06-11-2011 17:15:23
channel ORA_DISK_1: finished piece 1 at 06-11-2011 17:15:38
piece handle=+FRA/dbhr/backupset/2011_11_06/annnf0_tag20111106t171521_0.268.766516525 tag=TAG20111106T171521 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:16
channel ORA_DISK_1: deleting archive log(s)
archive log filename=+HR/dbhr/archivelog/2011_10_31/thread_1_seq_8.399.766018837 recid=29 stamp=766018840
archive log filename=+HR/dbhr/archivelog/2011_11_03/thread_1_seq_9.409.766278025 recid=30 stamp=766278027
archive log filename=+HR/dbhr/archivelog/2011_11_04/thread_1_seq_10.391.766366105 recid=31 stamp=766366111
archive log filename=+HR/dbhr/archivelog/2011_11_06/thread_1_seq_11.411.766516065 recid=32 stamp=766516067
archive log filename=+HR/dbhr/archivelog/2011_11_06/thread_1_seq_12.413.766516349 recid=33 stamp=766516350
archive log filename=+HR/dbhr/archivelog/2011_11_06/thread_1_seq_13.414.766516521 recid=34 stamp=766516521
Finished backup at 06-11-2011 17:15:38
## RMAN finish backup of Archivelog and Start Backup of Database
## My backup start at "06-11-2011 17:15:38"
Starting backup at 06-11-2011 17:15:38
using channel ORA_DISK_1
channel ORA_DISK_1: starting full datafile backupset
channel ORA_DISK_1: specifying datafile(s) in backupset
input datafile fno=00001 name=+HR/dbhr/datafile/system.386.765556627
input datafile fno=00003 name=+HR/dbhr/datafile/sysaux.396.765556627
input datafile fno=00002 name=+HR/dbhr/datafile/undotbs1.393.765556627
input datafile fno=00004 name=+HR/dbhr/datafile/users.397.765557979
input datafile fno=00005 name=+BFILES/dbhr/datafile/bfiles.257.765542997
channel ORA_DISK_1: starting piece 1 at 06-11-2011 17:15:39
channel ORA_DISK_1: finished piece 1 at 06-11-2011 17:16:03
piece handle=+FRA/dbhr/backupset/2011_11_06/nnndf0_tag20111106t171539_0.269.766516539 tag=TAG20111106T171539 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:24
Finished backup at 06-11-2011 17:16:03
## And finish at "06-11-2011 17:16:03", so I can recovery my database from this time.
## I will need archivelogs (transactions) which was generated during backup of database.
## Note during backup some blocks are copied others not. The SCN is inconsistent state.
## To make it consistent I need apply archivelog which have all transactions recorded.
## Starting another backup of archived log generated during backup.
Starting backup at 06-11-2011 17:16:04
## So automatically RMAN force another "checkpoint" after backup finished,
## forcing archive current log, because this archivelog have all transactions to bring database in a consistent state.
current log archived
using channel ORA_DISK_1
channel ORA_DISK_1: starting archive log backupset
channel ORA_DISK_1: specifying archive log(s) in backup set
input archive log thread=1 sequence=14 recid=35 stamp=766516564
channel ORA_DISK_1: starting piece 1 at 06-11-2011 17:16:05
channel ORA_DISK_1: finished piece 1 at 06-11-2011 17:16:06
piece handle=+FRA/dbhr/backupset/2011_11_06/annnf0_tag20111106t171604_0.272.766516565 tag=TAG20111106T171604 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:02
channel ORA_DISK_1: deleting archive log(s)
archive log filename=+HR/dbhr/archivelog/2011_11_06/thread_1_seq_14.414.766516565 recid=35 stamp=766516564
Finished backup at 06-11-2011 17:16:06
## Note: I can recover my database from time "06-11-2011 17:16:03" (finished backup full)
## until "06-11-2011 17:16:04" (last archivelog generated) that is my recover window in this scenary.
## Listing Backup I have:
## Archive Logs in backupset before backup full start - *BP Key: 40*
## Backup Full database in backupset - *BP Key: 41*
## Archive Logs in backupset after backup full stop - *BP Key: 42*
RMAN> list backup;
List of Backup Sets
===================
BS Key Size Device Type Elapsed Time Completion Time
------- ---------- ----------- ------------ -------------------
40 196.73M DISK 00:00:15 06-11-2011 17:15:37
*BP Key: 40* Status: AVAILABLE Compressed: NO Tag: TAG20111106T171521
Piece Name: +FRA/dbhr/backupset/2011_11_06/annnf0_tag20111106t171521_0.268.766516525
List of Archived Logs in backup set 40
Thrd Seq Low SCN Low Time Next SCN Next Time
---- ------- ---------- ------------------- ---------- ---------
1 8 766216 29-10-2011 12:01:58 855033 31-10-2011 23:00:30
1 9 855033 31-10-2011 23:00:30 896458 03-11-2011 23:00:23
1 10 896458 03-11-2011 23:00:23 937172 04-11-2011 23:28:23
1 11 937172 04-11-2011 23:28:23 976938 05-11-2011 23:28:49
1 12 976938 05-11-2011 23:28:49 1023057 06-11-2011 17:12:28
1 13 1023057 06-11-2011 17:12:28 1023411 06-11-2011 17:15:21
BS Key Type LV Size Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ -------------------
41 Full 565.66M DISK 00:00:18 06-11-2011 17:15:57
*BP Key: 41* Status: AVAILABLE Compressed: NO Tag: TAG20111106T171539
Piece Name: +FRA/dbhr/backupset/2011_11_06/nnndf0_tag20111106t171539_0.269.766516539
List of Datafiles in backup set 41
File LV Type Ckp SCN Ckp Time Name
---- -- ---- ---------- ------------------- ----
1 Full 1023422 06-11-2011 17:15:39 +HR/dbhr/datafile/system.386.765556627
2 Full 1023422 06-11-2011 17:15:39 +HR/dbhr/datafile/undotbs1.393.765556627
3 Full 1023422 06-11-2011 17:15:39 +HR/dbhr/datafile/sysaux.396.765556627
4 Full 1023422 06-11-2011 17:15:39 +HR/dbhr/datafile/users.397.765557979
5 Full 1023422 06-11-2011 17:15:39 +BFILES/dbhr/datafile/bfiles.257.765542997
BS Key Size Device Type Elapsed Time Completion Time
------- ---------- ----------- ------------ -------------------
42 3.00K DISK 00:00:02 06-11-2011 17:16:06
*BP Key: 42* Status: AVAILABLE Compressed: NO Tag: TAG20111106T171604
Piece Name: +FRA/dbhr/backupset/2011_11_06/annnf0_tag20111106t171604_0.272.766516565
List of Archived Logs in backup set 42
Thrd Seq Low SCN Low Time Next SCN Next Time
---- ------- ---------- ------------------- ---------- ---------
1 14 1023411 06-11-2011 17:15:21 1023433 06-11-2011 17:16:04
## Here make sense what I trying explain
## As I don't have backup of database before of my Last backup, all archivelogs generated before of my backup full is useless.
## Deleting what are obsolete in my env, RMAN choose backupset 40 (i.e all archived logs generated before my backup full)
RMAN> delete obsolete;
RMAN retention policy will be applied to the command
RMAN retention policy is set to redundancy 1
using channel ORA_DISK_1
Deleting the following obsolete backups and copies:
Type Key Completion Time Filename/Handle
-------------------- ------ ------------------ --------------------
*Backup Set 40* 06-11-2011 17:15:37
Backup Piece 40 06-11-2011 17:15:37 +FRA/dbhr/backupset/2011_11_06/annnf0_tag20111106t171521_0.268.766516525
Do you really want to delete the above objects (enter YES or NO)? yes
deleted backup piece
backup piece handle=+FRA/dbhr/backupset/2011_11_06/annnf0_tag20111106t171521_0.268.766516525 recid=40 stamp=766516523
Deleted 1 objects
In the example above, I could before running Backup "archivelog all delete" because they are not necessary, but as an example, I followed this unnecessarily. (archivelog backup and deletion after)
Kind regards
Levi Pereira
Published by: Levi Pereira on November 7, 2011 01:02
Tags: Database
Similar Questions
-
is the level 0 = full backup backup?
The level 0 backup is a starting point that contains all blocks.
If Yes, is it even that the entire database backup?
If so, why is it called backup incremental to level 0?
a little confused.Its a terminology that makes it confusing. Its actually the backup set but in the incremental backup, it serves as a base as well. In oracle. There are terms like that. For example, oracle uses B/R manuals, two concepts for backup, all backup data backup and full, when in fact there is just a single command, Backup Database. But the terminology says, if you include your archive logs, spfile with the data files and control files, its entire backup if not, its just full backup. It is the same sort of thing, so don't be confused.
Rest details are in this link already given to you. Have a good read of it.
HTH
Aman... -
Time Machine - keep backups on a disk-without having a full backup?
After that I moved all my old backup data on a new player and liked that I expected Time Machine (TM) just continue where we left it when the smaller drive has been marked as complete. On the contrary, it seems that TM took a full backup take a lot of space for backups that already existed between the data leave the smaller drive?
This kind of destroyed the concept of TM "incremental forever" which I assumed could survive a movement of backup of data from a smaller to a larger drive?
If I missed something along the way I would like to be reminded...
-
RMAN how to handle simple full backups every day with the archivelogs
Hello
My use of Oracle DB is about 200 GB on a file system 1 TB from a NetApp file server. (i.e. 20% currently use)
I'm not so attracted to use the RMAN catalog for the love of simplicity.
Also, I have an affinity to run a full backup "Instant NetApp" every day, without running all the incremental backups.
My snapshots of NetApp have a framework for the retention of 7 days.
I think to implement a RMAN full backup script that includes the following to run every night:
Run {}
delete archivelog all; (to clean up the archive logs that are accumulated for each day)
backup database; (for a full backup every night)
}
This will be a good idea?
Will this coverage to back up all that I could restore if there is a problem.
Part of the great mystery for me is on the restoration of the data that is generated during the execution of the "backup database" command in the RMAN.
Any advice would be appreciated.
Thank you!
-Steve
If you perform the backup in this order, you will get in big trouble.
It is preferable to run the backup as follows:
(1) the following parameters, you have to do only once:
configure backup optimization
Configure retention policy to recovery of 7-day window;
Configure controlfile autobackup on;
(2) backup every day:
backup database more entered archivelog delete;
delete noprompt obsolete;
unrecoverable report;
RMAN automatically takes care of cleaning the old backups<7 days="" and="" saved="">7>
Concerning
Patrick
-
When vDR to perform full backups?
I'll set up an installation of vDR test as a proof of concept, and contrary to read the documentation, it appeared on me... when vDR do full backups? I know that the first virtual computer backup is a complete and incremental after that. But when the following is executed? I did some Google'ing and looking through the documentation, but have not yet found an answer.
Currently I ave the configuration of the backup task to keep 6 daily backups every 4 weeks and 1 month. When the first full backup has expired, another take? Also, is it possible to force a full backup on one computer virtual other than to create a new backup job?
void269 wrote:
.. .in makes vDR do full backups? I know that the first virtual computer backup is a complete and incremental after that. But when the following is executed?
My understanding is that VDR still to complete and never traditional backups "extra." However, given that the backup data store uses a deduplication technology each "Full" backup will only grow with the blocks changed since the last backup.
-
Hello
I have create this shell script for rman for Oracle version 8i for full backup (database + controlfile archivelog):
Now I need rman script to Oracle 10.2.0.5 for full backup (database + controlfile archivelog).rman nocatalog <<EOF >> $LOG 2>&1 connect target sys/password@sid run { allocate channel c1 type disk format '/backup_full/backup%d_DB_%u_%s_%p'; backup database; sql 'alter system archive log current'; backup format 'backup%d_CL_%u_%s_%p' current controlfile; backup format 'backup%d_AR_%u_%s_%p' archivelog all delete input; release channel c1; }
Is this right? Should I change?
Thanks in advance!RAF Royal wrote:
I have create this shell script:MY_PATH="/backup_rman_full/" export MY_PATH rman nocatalog <
> $LOG 2>&1 connect target run { allocate channel c1 type disk format '${MY_PATH}back%d_%u_%s_%p'; backup database; sql 'alter system archive log current'; backup format '${MY_PATH}back%d_C_%u_%s_%p' current controlfile; backup format '${MY_PATH}back%d_A_%u_%s_%p' archivelog all delete input; release channel c1; } exit EOF Is to correct the syntax?
Hello
Your script above looks perfect with the exception of '$LOG' which is not defined. But I prefer to add ORACLE_HOME and ORACLE_SID in your script and also change the format specifier "%u" "%U" while RMAN generates the uniqueness in the backup files. Here's the updated script for you.
ORACLE_HOME=
export ORACLE_HOME ORACLE_SID= export ORACLE_SID MY_PATH="/backup_rman_full/" export MY_PATH rman nocatalog < Think of your son of fence by providing appropriate points if you think they have been answered. Please clean the forum.
-
ARCHIVE NEWSPAPER DELETTION POLICY
Hi all...
I configured saparate location for archve log...
my retention policy is set to 1 redundancy...
last backup I took was on Saturday...
Since last week, there was a lot of archived newspapers generated...
so today I have dedcided to remove all not required archive log...
so I run the command...
report obsolete...
and then delete obsolete...
WHN I run the command delete obsolete it has deleted all the obsolete backup... pieces but for fun he removed several newspapers archived in the location of log_archive_dest_1...
I wonder why he deleted archived journal because I did not to any command to remove the archived newspaper...user13762949 wrote:
I use 11.1.0.6.0...
the command that I published was...RMAN > obsolete report
RMAN > remove obsolete
so I stray m that order they should have removed the obsolete backup of FRA and no archived log destination...
fact RMAN automatically recognizes the log... If obsolete archive so much so I was show teas command last week but never happened like this...no idea what could have happened
Yes-RMAN knows your destination of the newspaper archive and it automatically deletes obsolete backups more is not necessary-for-recovery of the archivelogs when you issue remove obsolete command.
concerning
-
Apply the bow logs after the full backup
DB version: 10 gr 2
NOCATALOG mode, I'll take a full backup (hot) DBx (800 GB) using the command
and restore it in DBy.run { allocate channel c1 TYPE DISK connect 'sys/dempo' FORMAT '/u04/bkp/stprod_%U.rbk'; backup as compressed backupset database tag 'full' plus archivelog; }
But how do I apply archive logs generated dbx during the full backup after the full backup?
The restored control file does not have these archived logs. Right?But the control file which will be restored isn't aware of these new logs archived 5
Take an another controlfile after the log backups backup archive 5.
However, you can also CATALOG (search for documentation of RMAN for the "CATALOG" as a command RMAN) backup archivelog items 'Add' in the backup controlfile preceded.
Hemant K Collette
-
Unable to see in the full backup
Hello
I can't see the full backup to my iPhone to iTunes to remove so that I can free up space on my mac
What do you mean by incomplete?
Did you delete the backup listed in iTunes > Preferences > devices?
The following lists where the backup file > can you go and delete it?
Find backups of your iPhone, iPad and iPod touch - Apple Support
You close iTunes?
-
When doing a full backup computer falls down and must be closed
Hello
When doing a full backup of the computer falls down and must be closed using the power switch, it is very good when you make a partial backup.
I'm trying to backup to an external hard drive via a usb connection.The hard drive is formatted in NTFS
Someone has any ideas
FredHello
I will try to resume that you issue.
The HARD disk has several partitions (I guess 2 partitions)
The backup procedure works fine if you safe data only from single partition, but it crashes if you try to create a backup of all partitions of set. Am I wrong?My first question; What backup utility do you use?
Are you sure that this backup tool supports the backup of the two partitions at the same time?I put t know if it will help but a similar problem happened to me.
I've used Norton ghost and I wasn't able to create a backup of a partition.The procedure began, but after several minutes, the screen goes white and the notebook frisottés.
I ran the scandisk, chkdsk and I defragment the whole HARD drive.This helped!
-
Full backup impossible. An error occurred during the creation of the backup folder.
Having had a HARD drive failure and have replaced I have now bought a WD 3 to WD My Book for Mac. Plug and put in place to save. However will not achieve, and gives this error message
Full backup impossible. An error occurred during the creation of the backup folder.
Does anyone else have this problem?
Paul
How the drive is formatted?
-
Given the 10.5.8 to 10.6 Snow Leopard upgrade. Meet the Intel/memory minimum requirments. After a full backup of course. Anything I should be aware of before trying this? Possible to the functions/effects? My data (mp3, photos, documents, etc.) will not be affected? I also have Windows for Mac. It will not be affected? Recent browser performance is untenable in weeks. Safari 5.0.6. Now even my Firefox is fact-zo. Process seems simple enough, but thought I would ask a preview as many reviews on here seem to go anyway in regard to recommend it. Thought that I have gathered a few comments before the trigger (or not) thank you to all those wh
Just to start with this one:
I also have Windows for Mac.
I assume you mean that you run Windows in a virtual machine such as Parallels? If so, the machine virtual peut must be updated.
When you install Snow Leopard, make sure to choose the option to do a custom install, so you can select the check box for Rosetta, or it will not install and PowerPC applications will not run. Not a huge deal if you miss. The first time you try to run a PPC application if Rosetta has not been installed, OS X offers to download and install it for you.
Firefox works under Snow Leopard, which is the oldest version of OS X Mozilla always supports. Safari installed with SL will remain grossly outdated and should not be used.
Nothing will happen to your documents, although I can't say with certainty that all the apps from third party that allows you to open will not be updated. They can. They cannot. For example, Office 2004 will run as long as Rosetta is installed.
-
K450e - How can I restore files/folders full backup?
I did a full backup of the system using "a touch." Is it possible to restore the files and folders individual? Where is the documentation on this feature?
Mod edit: System model added to the front of the subject line to improve visibility / clarity.
-
Cannot perform a full backup of my drive hard using a 16 GB Flash drive
Original title: backup
I am trying to perform a full backup of my hard drive using a 16 GB Flash disk. Windows does not allow me to do so; or he will put in the form of USB key when prompted to do so. Help me Mr Wizard.
Hello1. which is the version of Windows installed on the computer? For example, Windows 7, Vista2. do you use the Windows backup feature to backup?3. What is the size of the data you want to save on the Flash drive?4. what happens when you perform the backup? You get an error as well?If you use Windows 7, check out these links.See: how much space storage do I need back up files?See also:Hope the information is useful. -
creating a bootable cd/dvd after creating a full backup of the system
After you create a full backup of the system through acer backup manager, I wonder if I want to create a bootable cd/dvd to restore the backup.
I madea a bootable dvd once already. Do I have to do a new bootable dvd every time I do a backup? If so, it's a lot of DVDs.
No, just one of the first time you perform a backup.
Maybe you are looking for
-
No imessage notification ios 10
Hello I Don t receive a notification for incoming messages from imessage. (App end Whats work) Not the lockscreen and not to the home screen. Everyone has the same problem after the update of IOS10? THX
-
Hello. When I was on the internet with previous Firefox, there was Trusteer report (j.4 Banking UK software: http://www.trusteer.com/) icon was still there. However after Firefox gave me an alart update for version 9.0.1 Mac OS x 10.6.8 today and aft
-
Which is equivalent to "pointers of C/C++" programming Labview?
-
DVD player showing an error of not finding the application
When you try to play a DVD, the YEAR error message as not finding the application. Please respond to the problem.
-
Unable to get controller Xbox 360 on Run
Basically, this does not work, and I don't know why. Here are the basics: With the rechargeable pack wireless controller Windows 8 Dell Inspiron with 6 GB of RAM and dual core 2.5 GHZ Program that runs in Windows 7 compatibility mode The controller c