How to backup incremental backup [message #185858] |
Thu, 03 August 2006 19:44 |
rmalhi
Messages: 42 Registered: May 2006 Location: Australia
|
Member |
|
|
Hi gurus,
I have a question for you may be this is simple But i want to make sure with you gurus before putting to management.
We have 4hours SLA for the database recovery. means in worst case we can only lose 4 hours data.
My problem is our database is not heavily used and there is no archive logs be written.
I am backing up my full database using RMAN every night 2am. I am thinking to do incremental backup every 4 hours. But question is there is no archive logs written on disk. I have 3 redologs files of 100 M each.
When i have run
SQL> alter system switch logfile;
It is writting the archive logs.
Could please someone suggest me what is better way to do the backup that covers 4 hours SLA.
Thank you in advance.
Regards
Rupi
|
|
|
|
Re: How to backup incremental backup [message #185871 is a reply to message #185861] |
Thu, 03 August 2006 23:35 |
rmalhi
Messages: 42 Registered: May 2006 Location: Australia
|
Member |
|
|
Thanks Brian for your time and reply to my question.
But my question is if the server is totally crashed in middle of the day. My understanding is that i can only recover upto last backup. But management want the data to be backed up fully upto the point. Worst is we can lose only 4 hours data as per SLA. This is goverment agency so they want everying in papers. How we are doing???
Thanks again for your help
Regards
Rupi
|
|
|
|
Re: How to backup incremental backup [message #189982 is a reply to message #185922] |
Mon, 28 August 2006 19:38 |
rmalhi
Messages: 42 Registered: May 2006 Location: Australia
|
Member |
|
|
Hi ebrian,
Thanks for you help related the incremental RMAN backups.
As you have suggested i have writtenthe script to backup archive logs every 4 hours.
But when i ran fullbackup. Full RMAN backup does not clear the archive logs written by archivelog script every 4 hours.
please find my both scripts and PLEASE suggest. You always help me.
Regards
Rupinder
|
|
|
|
Re: How to backup incremental backup [message #190242 is a reply to message #190211] |
Tue, 29 August 2006 19:54 |
rmalhi
Messages: 42 Registered: May 2006 Location: Australia
|
Member |
|
|
Thank ebrain for your reply,
I think i am using "delete force noprompt obsolete recovery window of 1 days" in my fullbackup.rcv. My understanding is that it will keep only full database backup for last 2 days.
Even i have deleted "delete force noprompt obsolete recovery window of 1 days" from my archivelogbackup.rcv. But still it is keeping last day one.
please see below.
PROD-sd_db:Be-Careful!$pwd
/rman_bkp/backups/arch
PROD-sd_db:Be-Careful!$ls -l
total 375436
-rw-r----- 1 oracle dba 46019584 Aug 29 01:02 alPRDSD1_t599706146_s1832_p1
-rw-r----- 1 oracle dba 2560 Aug 29 01:02 alPRDSD1_t599706146_s1833_p1
-rw-r----- 1 oracle dba 45653504 Aug 29 11:38 alPRDSD1_t599744337_s1834_p1
-rw-r----- 1 oracle dba 58997248 Aug 30 01:03 alPRDSD1_t599792601_s1840_p1
-rw-r----- 1 oracle dba 2560 Aug 30 01:03 alPRDSD1_t599792601_s1841_p1
-rw-r----- 1 oracle dba 41396224 Aug 30 10:47 alPRDSD1_t599827662_s1842_p1
PROD-sd_db:Be-Careful!$
see the timings. I have ran manually archivelogbackup.sh on 29th at 11.38 and i have ran today again on 30th Aug at 10.47. But still it is not deleted the old archive log.
as you can see i am running my full backup script at 1am everynight.
Please suggest.
Regards
Rupinder
|
|
|
|
Re: How to backup incremental backup [message #190457 is a reply to message #190340] |
Wed, 30 August 2006 19:29 |
rmalhi
Messages: 42 Registered: May 2006 Location: Australia
|
Member |
|
|
Hi ebrain,
This is what i have configured yesterday and changed my archivelogbackup.rcv as below
run
{
allocate channel d1 type disk format '/rman_bkp/backups/arch/al%d_t%t_s%s_p%p';
sql 'alter system archive log current';
backup
(archivelog all
delete input);
release channel d1;
}
I am not using any recovery window now.
I am planning to run backuparchivelog.sh like
#0 4,7,10,13,16,19,22 * * * /rman_bkp/backups/scripts/SDbackuparchivelog.sh
and fullbackup on
0 1 * * * /rman_bkp/backups/scripts/fullbackupall.sh
As i have changed the recovery wondow to 0day. still my fullbackup is not clearing the arcvhive logs. But you are right the archive logs files are only for last day only.
My understanding is When we run RMAN Fullbackup it will clear all the backup archive logs.
Thanks again for your help.
Really appreciated your time. I am also looking on metalink to find the answer!!
Warm Regards
Rupi
|
|
|
|
Re: How to backup incremental backup [message #190701 is a reply to message #190578] |
Thu, 31 August 2006 19:20 |
rmalhi
Messages: 42 Registered: May 2006 Location: Australia
|
Member |
|
|
Thanks ebrain for nice explanation.
you are right there is only 2days full backup remaining on disk and it is deleted all the backups older than 2 days.
My question is when i do archivelog backup every 4 hours writting on the disk. All the archivelogs must be cleared when the fullbackup script runs to backup full database at 1am night.
But i can see still the archivelogs backset remaing for 1 day on disk.
I am wondering it shold be cleared or not. When we ran full backup.
Thanks again for your time really appreciated.
Warm regards
Rupi
|
|
|
|
|