Compress backup Incremental
Hi
Can I compress my backups level 0 with RMAN? Is necessary compress my backups level 1 too? This affect something?
Thanks for your answer!
Yes you can, you can configure backupsets to compress
CONFIGURE DEVICE TYPE DISK BACKUP TYPE TO COMPRESSED BACKUPSET ;
Example: BACKUP AS BACKUPSET INCREMENTAL LEVEL 0 DATABASE PLUS ARCHIVELOG NOT BACKED UP 2 TIMES;
Reference: http://download.oracle.com/docs/cd/B19306_01/server.102/b14239/rman.htm
Similar Messages
-
How to check wether we are using Compressed backup option or not in 11gR1?
Actually I'm trying save some space in FRA? Any Ideas will be really welcome.
One option I can think of is Compressed backup sets
I don't see anyhting like 'Compress' in my scripts below....Also in 'Backup Settings' under 'Availability' Tab in Grid
I see 'Backup Set' selected and not 'Compressed Backup set'.
Is there anywhere else I can check wether I'm taking compressed backups or not?
Thanks in Advance
run {
RECOVER COPY OF DATABASE WITH TAG "ngprod_incr_backup";
allocate channel 'dev_0' type 'sbt_tape' parms 'SBT_LIBRARY=/ora00/app/oracle/product/11/db1/lib/libobk.so';
send 'NSR_ENV=(NSR_SERVER=corpntw01.amhc.amhealthways.net, NSR_CLIENT=NGPROD.amhc.amhealthways.net, NSR_DATA_VOLUME_POOL=UNIX Daily)';
allocate channel 'dev_1' type 'sbt_tape' parms 'SBT_LIBRARY=/ora00/app/oracle/product/11/db1/lib/libobk.so';
send 'NSR_ENV=(NSR_SERVER=corpntw01.amhc.amhealthways.net, NSR_CLIENT=NGPROD.amhc.amhealthways.net, NSR_DATA_VOLUME_POOL=UNIX Daily)';
backup recovery area;
release channel dev_0;
release channel dev_1;
BACKUP INCREMENTAL LEVEL 0 DATABASE TAG "ngprod_incr_backup" ;
run {
RECOVER COPY OF DATABASE WITH TAG "ngprod_incr_backup";
BACKUP INCREMENTAL LEVEL 1 FOR RECOVER OF COPY WITH TAG "ngprod_incr_backup" DATABASE;
run {
allocate channel 'dev_0' type 'sbt_tape'
send 'NSR_ENV=(NSR_SERVER=corpntw01.amhc.amhealthways.net, NSR_CLIENT=NGPROD.amhc.amhealthways.net, NSR_DATA_VOLUME_POOL=UNIX Daily)';
allocate channel 'dev_1' type 'sbt_tape'
send 'NSR_ENV=(NSR_SERVER=corpntw01.amhc.amhealthways.net, NSR_CLIENT=NGPROD.amhc.amhealthways.net, NSR_DATA_VOLUME_POOL=UNIX Daily)';
allocate channel 'dev_2' type 'sbt_tape'
send 'NSR_ENV=(NSR_SERVER=corpntw01.amhc.amhealthways.net, NSR_CLIENT=NGPROD.amhc.amhealthways.net, NSR_DATA_VOLUME_POOL=UNIX Daily)';
allocate channel 'dev_3' type 'sbt_tape'
send 'NSR_ENV=(NSR_SERVER=corpntw01.amhc.amhealthways.net, NSR_CLIENT=NGPROD.amhc.amhealthways.net, NSR_DATA_VOLUME_POOL=UNIX Daily)';
backup filesperset 1 tag='NGPROD' format 'ARCH<NGPROD_%s:%t:%p>' archivelog all not backed up 2 times;
delete noprompt archivelog all backed up 2 times to device type sbt;
release channel dev_0;
release channel dev_1;
release channel dev_2;
release channel dev_3;
}hi,
also you may define default behaviour of backing up:
RMAN> CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO COMPRESSED BACKUPSET;
Turn on this great feature:
SQL> alter database enable block change tracking using file '/u01/oradata/ora1/change_tracking.f';
and use incremental backups. -
Backup incremental level 1 for recover of copy datafile (BLOCKING?)
Hi,
I recently added a datafile copy backup to the backup strategy. This is an extra backup to supplement compressed backupsets.
The datafile copy incremental was set to run at 5 am. I noticed that a process that was set to run at the same time as the backup stalled. It normally takes a few minutes to run but it took over an hour. Enterprise Manager did not report any blocked sessions over this hour (EM is configured to do so). No notable CPU spike either during this time. this morning I have moved the datafile copy backup to
a different time so as to avoid the 5 am job and sure enough that job completed in 6 minutes.
Does backup incremental for recover block in some way?
Thanks!The other job loads data via sql loader and PL/SQL
Actually, no blocking was detected. I could not check the waits since the job was done by the time I was aware that there was a problem. Rescheduling the backup seems to have avoided the problem. It happened twice though. I am unaware that a backup might cause this behavior. I suspect that the "for recover" might be the source of the updates being suspended. I would not expect that though since the backup copy is being recovered (not the actual datafile) -
Creating Standby From RMAN Compressed backup taken on Primary ....
I am creating a Standby from RMAN Compressed backup taken on Primary.
On Primary, I have taken Compressed backup as follows:
RMAN> run
allocate channel c1 type disk;
allocate channel c2 type disk;
allocate channel c3 type disk;
BACKUP AS COMPRESSED BACKUPSET DATABASE PLUS ARCHIVELOG format '/dboracle/orbit_pr_bkp/primary_%U';
backup current controlfile for standby format '/dboracle/orbit_pr_bkp/primary_cntl.bkp';
oracle@apl06635orbvu1:/dboracle/orbit_pr_bkp>ls -ltr
total 51652
-rw-r----- 1 oracle dba 11972608 Jan 7 13:45 primary_0tm1h32n_1_1
-rw-r----- 1 oracle dba 15762432 Jan 7 13:45 primary_0sm1h32n_1_1
-rw-r----- 1 oracle dba 16785920 Jan 7 13:45 primary_0rm1h32n_1_1
-rw-r----- 1 oracle dba 1088000 Jan 7 13:45 primary_0um1h32v_1_1
-rw-r----- 1 oracle dba 32768 Jan 7 13:45 primary_12m1h33r_1_1
-rw-r----- 1 oracle dba 7143424 Jan 7 13:47 primary_cntl.bkp
On Standby, I restored the control file as below:
RMAN> restore standby controlfile from '/dboracle/orbit_pr_bkp/primary_cntl.bkp';
Starting restore at 10-JAN-11
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=156 devtype=DISK
channel ORA_DISK_1: restoring control file
channel ORA_DISK_1: restore complete, elapsed time: 00:00:01
output filename=/dboracle/orbit_dr/oradata/ORBIT_DR/controlfile/o1_mf_6lo6nwfr_.ctl
output filename=/dboracle/orbit_dr/flash_recovery_area/ORBIT_DR/controlfile/o1_mf_6lo6nwky_.ctl
Finished restore at 10-JAN-11
But, When I am trying to restore the datafiles, RMAN is throwing error:
RMAN> run {
allocate channel d1 type disk format '/dboracle/orbit_pr_bkp/primary_%U';
allocate channel d2 type disk format '/dboracle/orbit_pr_bkp/primary_%U';
restore database;
2> 3> 4> 5>
released channel: ORA_DISK_1
allocated channel: d1
channel d1: sid=155 devtype=DISK
allocated channel: d2
channel d2: sid=151 devtype=DISK
Starting restore at 10-JAN-11
released channel: d1
released channel: d2
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 01/10/2011 05:38:56
RMAN-06026: some targets not found - aborting restore
RMAN-06023: no backup or copy of datafile 4 found to restore
RMAN-06023: no backup or copy of datafile 3 found to restore
RMAN-06023: no backup or copy of datafile 2 found to restore
RMAN-06023: no backup or copy of datafile 1 found to restore
What would be the correct RMAN command?
Regards, AnirbanAfter your RESTORE the (standby) controlfile, you must MOUNT the database instance with "ALTER DATABASE MOUNT".
You can also then query the controlfile with a "LIST BACKUP" or "LIST BACKUP SUMMARY" in RMAN to see if the deseired backups have been cataloged in the controlfile.
Don't specify the format for the ALLOCATE CHANNEL when you RESTORE DATABASE. In fact, you don't need to ALLOCATE CHANNEL at all when the device type is the default value of DISK if your are on 10gR2 or above.
Hemant K Chitale -
It ok to compress backup files?
Hello All,
OS: AIX 5.2
We are creating Oracle backup files on daily basis.
We transfer the files to backup server.
No we have been asked to compress files into one file.
My question is it ok to compress backup files?
Please note: I created a folder called backup.pax (include all seven files)
Now I will compress this folder as
compress backup.pax.
Is it fine to do that?
I am worry about recovery situation. (in case)
DNhow to produce compress backup via rman?
My current script for backup is as follows:
. $HOME/.profile
export ORACLE_SID=sid
rman nocatalog << EOF
connect target
ALLOCATE CHANNEL FOR MAINTENANCE DEVICE TYPE disk;
configure controlfile autobackup on;
backup database plus archivelog delete input;
delete noprompt obsolete;
exit
EOF -
BACKUP INCREMENTAL 1 FROM SCN 2083442766 database tag 'FORSTANDBY';
Hi all,
While taking a incremntal backup for stadnby at primary DB, rman got failed
RMAN> BACKUP INCREMENTAL 1 FROM SCN 2083442766 database tag 'FORSTANDBY';
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01005: syntax error: found "integer": expecting one of: "level"
RMAN-01007: at line 1 column 20 file: standard inputDB-oracle 9.2.0.8user13389425 wrote:
Hi all,
While taking a incremntal backup for stadnby at primary DB, rman got failed
RMAN> BACKUP INCREMENTAL 1 FROM SCN 2083442766 database tag 'FORSTANDBY';
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01005: syntax error: found "integer": expecting one of: "level"
RMAN-01007: at line 1 column 20 file: standard inputDB-oracle 9.2.0.8First this command need write as below
BACKUP INCREMENTAL level 1 FROM SCN 2083442766 database tag 'FORSTANDBY';But i am not sure this work or not in 9.2.0.8. -
RMAN Backup Incremental levels
hi experts,
This is a 10g database running in archivelog mode.
This is the backup scheme I'm currently using:
backup database plus archivelog; (runs once per day)
backup incremental level 1 database; this runs every 3 hours
All the incrementals I make are level 1.
** Would I be able to restore, if I have no Level 0 incremental? **
Thanks, Johnuser629010 wrote:
Thanks for the replies.
So I should make a level 0 backup immediately after the whole backup (backup database;) is that correct?
No its not correct as level 0 is actually the whole backup only. This is the point which includes everything and from hereonly, you start your next batch of incremental backups. You can throw away the last backups done if you have taken a level 0 backup as it covers everything and is a complete backup.
HTH
Aman.... -
Find DBID in compressed backup
Hi all,
Is there anyway to find dbid from a compressed backup ? autobackup is turned OFF.
Thanks in advanceHi SRP,
thank you for your prompt reply.
Actually im just doing some testing here.
I have backed up all my datafile, controlfile, spfile and archivelog and controlfile using compress method. autobackup is set to OFF. Then i have deleted all the physical files. including databafile, control, redo spfile.. all.... only have the binaries here. Currently using RMAN i am able to use a dummy i am able to nomount. Since the backupset is compressed i am unable to use any of the method to retrieve the DBID. -
Slow Restore of a Compressed Backup
All,
I am seeing a strange behavior when restoring a compressed backup for standby duplication.
The target and auzillary database version is 11.1.0.6 Enterprise Edition
The size of the database uncompressed is 131.41G
The Size of the compressed Full Backup is 58.21G
The Duplication script is as follows:
run {
SET NEWNAME FOR DATAFILE 1 TO '+DGROUPDATA1';
SET NEWNAME FOR DATAFILE 10 TO '+DGROUPDATA1';
SET NEWNAME FOR DATAFILE 100 TO '+DGROUPS1V1';
SET NEWNAME FOR DATAFILE 101 TO '+DGROUPS1V1';
SET NEWNAME FOR DATAFILE 102 TO '+DGROUPS1V1';
DUPLICATE TARGET DATABASE FOR STANDBY
NOFILENAMECHECK;
From the alert log on the standby during the recovery process I see that a 4GB file recovery takes a little more than an hour:
Full restore complete of datafile 66 to datafile copy +DGROUPRPRTRDATA1/mpstndby/datafile/reporter_data1.269.676544573. Elapsed time: 1:03:45
Is there anyway to speed up the recovery process from a compressed backup?
Thanks,
RobertIt would seem that i have plenty of resources, but i think that i may have a bigger issue.
I am using defaults for filesperset and using just one channel.
The restore process is also failing to execute the final step of the duplication.
contents of Memory Script:
switch clone datafile all;
executing Memory Script
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN> **end-of-file**
RMAN>
so now not only do i have a slow restore but i have a restore that hasnt switched the files. So the database is in a very angry and confused state becasue it obviously doesnt know what the new names of the files are.
Thanks for your help to date -
Difference between backup incremental level 0 Vs incremental level 1?
I am getting confuse. I have 2 commands:
-- Weekly full backup --
backup incremental level 0 database plus archivelog delete all input;
-- Daily backup --
backup incremental level 1 cumulative database plus archvielog delete all inputs;
What is the different if I put "level 1" in the weekly full backup and "level 0" in daily backup?
FANIts not much tricky read the doc
http://download.oracle.com/docs/cd/B19306_01/backup.102/b14191/rcmconc1005.htm#sthref242What you are not getting everything is written there.
Khurram -
I am using Java Swing as Front end and Visual FoxPro as Database.
In an application, i need to back up the database files. I need the compressed back up ie the files to be compressed as Winzip by the Java itself and can be stored in Floppy. Later during Restore, the application should automatically UnZip that and copy files into the Respective folder in HardDisc.
Please give me a solution asap.Hi Gopinath,
I am not sure whether you found your answer for a solution in Java for Compressed Backup and Restore. I was hoping you did and if you did, would you be kind enough to share that information. U can send me an email @ [email protected]
TIA,
Raj. -
Hi,
i have 10gr1 db , and has a standby db.For a reason i have ora-00326 error on standby db . After some works, the only thing i can do for standby db is recreate standby.But this doc shows that this is not necessary
http://www.stanford.edu/dept/itss/docs/oracle/10gR2/backup.102/b14191/rcmdupdb008.htm
But , i could not execute "backup incremental from scn" command for 10gr1.Is there any way to execute this or not ?
Thanks.Hi,
You mentioned you have a 10gR1 database and the feature was introduced in 10.2.0.1
The complete scenario is there : http://download.oracle.com/docs/cd/B19306_01/server.102/b14239/scenarios.htm#CIHEGFEG
but you won't find it in 10gR1.
If you often have unresolveable gaps I think you should focus on this problem though.
Best regards
Phil
Edited by: Philippe Florent on Feb 7, 2011 5:03 PM -- I am too slow :) -
How to decompress the compressed backup files in BRTOOLS
Hi Friends,
I am new to SAP Technologies,.When i take offline backup,I took backup in compression mode instead of taking backup in Initialization of BRBACKUP tape volumes.Below i have attached the mistakes i did from log files.Please also tell me where the compressed files stored,bec i didnt mention any tape volumes and tape names.Can we decompress the backuped files without restoring?Please help me..
BRBACKUP options for determination of compression rates
1 - BRBACKUP profile (profile) ...... [initDV1.sap]
2 - Database user/password (user) ... [/]
3 - BRBACKUP run type (type) ........ [offline]
4 ~ Files for compression (mode) .... [all]
5 - Confirmation mode (confirm) ..... [yes]
6 - Query mode (query) .............. [no]
7 - Parallel execution (execute) .... [0]
8 - Additional output (output) ...... [no]
9 - Message language (language) ..... [E]
10 - BRBACKUP command line (command) . [-p initDV1.sap -k only -t offline -m all -e 0 -l E]>
Asshok wrote:
> 10 - BRBACKUP command line (command) . [-p initDV1.sap -k only -t offline -m all -e 0 -l E]
Hi,
you did not backup anything at all.
-k only
just calculates the compression ratio, so that brbackup is able to calculate the required tape swaps.
So with "compress_only" no real backup had been done!
Sorry, you'll have to redo that with "-k yes" and write to a device (-d tape)
Volker -
Compressed backup abnormal file size
Dear all,
11.1.0.7 on solaris
Am using the below script to take rman backup
DATE_SUFFIX=`date +%b%d.%H%M`
tmpdir=/u03/rman_daily
tmpfile="$tmpdir/logs/RMAN_BKP$DATE_SUFFIX.log"
mkdir -p /u03/rman_daily/RMAN_BKP$DATE_SUFFIX
DIRNAME=/u03/rman_daily/RMAN_BKP$DATE_SUFFIX
rman target=system/manager@PROD nocatalog msglog /u03/rman_daily/logs/RMAN_BKP$DATE_SUFFIX.log <<EOF
backup as compressed backupset full database tag='PRODBKP' format '$DIRNAME/PROD_t%t_s%s_p%p_c%c';
backup current controlfile format '$DIRNAME/PROD_cntrl_t%t_s%s_p%p_c%c';
backup archivelog all format '$DIRNAME/PROD_arch%t_s%s_p%p_c%c';
delete noprompt archivelog all completed before 'sysdate-3';
crosscheck backup;
delete noprompt obsolete;DB Size daily increasing by 200MB (at the maximum) , but the size of the above backup is
increasing daily abnormally ?
bash-3.00$ du -sh *
226K logs
14G RMAN_BKPFeb26.0014
16G RMAN_BKPFeb27.0014
20G RMAN_BKPFeb28.0014
26G RMAN_BKPFeb29.0014
31G RMAN_BKPMar01.0014
41G RMAN_BKPMar02.0014Any idea why ?
KaiKaiS wrote:
Dear all,
11.1.0.7 on solaris
Am using the below script to take rman backup
DATE_SUFFIX=`date +%b%d.%H%M`
tmpdir=/u03/rman_daily
tmpfile="$tmpdir/logs/RMAN_BKP$DATE_SUFFIX.log"
mkdir -p /u03/rman_daily/RMAN_BKP$DATE_SUFFIX
DIRNAME=/u03/rman_daily/RMAN_BKP$DATE_SUFFIX
rman target=system/manager@PROD nocatalog msglog /u03/rman_daily/logs/RMAN_BKP$DATE_SUFFIX.log <<EOF
backup as compressed backupset full database tag='PRODBKP' format '$DIRNAME/PROD_t%t_s%s_p%p_c%c';
backup current controlfile format '$DIRNAME/PROD_cntrl_t%t_s%s_p%p_c%c';
backup archivelog all format '$DIRNAME/PROD_arch%t_s%s_p%p_c%c';
delete noprompt archivelog all completed before 'sysdate-3';
crosscheck backup;
delete noprompt obsolete;DB Size daily increasing by 200MB (at the maximum) , but the size of the above backup is
increasing daily abnormally ?
bash-3.00$ du -sh *
226K logs
14G RMAN_BKPFeb26.0014
16G RMAN_BKPFeb27.0014
20G RMAN_BKPFeb28.0014
26G RMAN_BKPFeb29.0014
31G RMAN_BKPMar01.0014
41G RMAN_BKPMar02.0014Any idea why ?
KaiHi,
Are these log files? Aren't you?
bash-3.00$ du -sh *
226K logs
14G RMAN_BKPFeb26.0014
16G RMAN_BKPFeb27.0014
20G RMAN_BKPFeb28.0014
26G RMAN_BKPFeb29.0014
31G RMAN_BKPMar01.0014
41G RMAN_BKPMar02.0014
Talip Hakan Ozturk
http://taliphakanozturken.wordpress.com/ -
Backup incremental level 0 cumulative database
On RMAN Level 0 backup when I say cumulative like below what the difference that command make;
backup filesperset 1 format '<%d_%s:%t:%p:%f>.df' incremental level 0 cumulative database;Edited by: Sivaprasad S on Sep 1, 2012 12:42 AM
Edited by: Sivaprasad S on Sep 1, 2012 12:44 AMIn a cumulative level 1 backup, RMAN backs up all blocks used since the most recent level 0 incremental backup in either the current or parent incarnation. Cumulative incremental backups reduce the work needed for a restore by ensuring that you only need one incremental backup from any particular level. Cumulative backups require more space and time than differential backups because they duplicate the work done by previous backups at the same level.
Maybe you are looking for
-
How to get one value from multiple duplication for a key figure field
Hi expert, I have a infoprovider, with following format: employee hourly_rate action_type count of action there are multiple rows for each employee, I want to create query as follows: employee hourly_rate actio
-
Preserve a single space at the end of line using spool command
Hi, Can you please help me to write the result of an sql query into a file with the last column of the row ending with a single space? For example: COL1DATA|COL2DATA|COL3DATA<space1> As mentioned in the example the col3 value in the file should end w
-
Problem with Foreign Key check in an editable ALV
Hi, I've implemented an editable ALV. The underlying context node is referenced to a structure and within the structure the foreign keys are defined. In my example, I have two editable columns with different foreign key checks. My problem is, the for
-
Calling the procedure from URL is not working
Hi Experts, We are in the process of 11i to R12 upgrade of oracle EBS system. In 11i they have done some personalization in the form which will trigger a URL and a notfication will open in the browser. 11i url HTTPS://abc.xyz.t.COM:8070/PLS/abc/XXM_P
-
Please PLEASE help, how do I go to the Camera Raw in PSE 7
Hi, I have the elements 7 and have gone online and followed all the directions to up load the new plug in for camera raw, well I still have no clue how to open the Camera Raw window in PSE..... I am about ready to toss the computer out the window lol