RMAN :: Restoring Backup From Tape Beyond Retention Policy?

Nov 7, 2013

How we can use RMAN backup to restore oracle database when the RMAN backup pushed to tape already and being a OLD backup ( before retention policy date).Just to elaborate a more..  Say my retention policy is 3 days. I want to restore from a old backup  like 30 days old.So surely the requesting backup is behind retention date and has been pushed to tape.

View 1 Replies


ADVERTISEMENT

Backup & Recovery :: RMAN Backup Multiple Retention

Mar 21, 2012

I am designing the scripts for RMAN backup.

Currently we have 14 days retention policy for daily and weekly backup. but we will have 186days retention for monthly backup, that's mean its should be recoverable around that 3 month (for monthly).

My question is, What should I put the scripts for monthly backup ?

I saw some example its for offline backup:

BACKUP DATABASE UNTIL 'SYSDATE+365' NOLOGS;

But I want the backup should be online ?

Currently our weekly backup like this

#!/bin/bash
# SID= env | grep ORACLE_SID | cut -c12-15
export ORACLE_HOME=/oracle/BWD/112_64
export ORACLE_SID=BWD
LOGFILE=/tmp/BWD-weekly-`date +%y%m%d%H%M`.out
[code].......

And Daily backup:

#!/bin/bash

SID=EPD
export ORACLE_HOME=/oracle/$SID/112_64
export ORACLE_SID=$SID
#LOGFILE=/tmp/EPD-weekly-`date +%y%m%d%H%M`.out
LOGFILE=/tmp/$SID-daily-`date +%y%m%d%H%M`.out
echo>> $LOGFILE
[code]......

View 2 Replies View Related

Sparing Archived Redo Logs From Retention Policy?

Oct 4, 2010

I'm running Oracle 9i on AIX 5.2. I'm not using a recovery catalog, nor am I using media management software. I perform a full, online rman backup of the database and archived redo logs daily to disk, then use operating system commands to copy the backup to tape. There is only space on disk for two days' backups, so I need to have a retention policy of "redundancy = 1", and run a "delete obsolete" prior to the backup. The problem is that I don't want to subject the archived redo logs to this retention policy.

I have two physical standby databases connected by WAN to the primary site, and I might need archived redo logs that are a few days (or more) old in the event of a prolonged WAN outage. I've read about the "keep forever" option, but apparently it isn't available without using a recovery catalog. Is there any way to spare the archived redo logs from my retention policy?

Note: I want to "protect" the actual archived redo logs from the retention policy, not the backups of the archived redo logs.

View 3 Replies View Related

Backup & Recovery :: Tape Streaming Not Happening While Performing RMAN Backup

Oct 29, 2011

Tape streaming is not happening while performing RMAN tape backup. On investigation, you find that it is not because of the incremental backup or the empty file backup and that RMAN is sending data blocks to the tape drive fast enough.What could be a solution to make tape streaming happen during the backup?

A.Configure backup optimization

B.Configure the channel to increase MAXOPENFILES

C.Configure the channel to increase the capacity with the RATE parameter

D.Configure the channel to adjust the tape buffer size with the BLKSIZE option

View 7 Replies View Related

Backup & Recovery :: RMAN - Archivelog Deletion Policy Not Working?

Oct 4, 2012

I'm on a Windows server 2003 R2 64 bit, database is 11.1.0.7. From RMAN connected to the target and the catalog, this is a show all;

RMAN> show all;

RMAN configuration parameters for database with db_unique_name ORCL are:

CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 3 DAYS;
CONFIGURE BACKUP OPTIMIZATION OFF;
CONFIGURE DEFAULT DEVICE TYPE TO DISK;
CONFIGURE CONTROLFILE AUTOBACKUP ON;
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO 'F:oracleadmin

[code]....

I'm running incremental backups, a level 0 on sunday and a level 1 the other days of the week, this is the ctl file:

LEVEL 0:
connect target /@ORCL
connect catalog rman/rmanpw@rmancat
RUN
{

[code]....

The level 0 does delete the archive logs (because of the delete input). Each backupset has two copies of the archive logs (which is what I want), and I expected the logs to be deleted after being backed up 2 days (each day is twice, 2 days = 4 times). But it's not deleting the logs, even after 6 runs.

View 4 Replies View Related

Backup & Recovery :: RMAN Crosscheck (tape)?

Nov 16, 2011

Is the crosscheck command suppose to be able to clear catalog entries that are on tape? If so, explain why I still have entries for 11/14/2011 13:28:32 when the current date is 11/16/2011 11:17:45 and I have a retenion policy of 1 day?

This is a test system where I am testing backup to tape... Icurrently disabled the backup to tape and now backing up to disk.

RMAN> show all;
RMAN configuration parameters for database with db_unique_name OTAPDEV are:
CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 1 DAYS;
CONFIGURE BACKUP OPTIMIZATION OFF;

[code]...

RMAN> list backup;

List of Backup Sets
===================
BS Key Type LV Size Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ -------------------
77333 Full 3.09G SBT_TAPE 00:03:05 11-14-2011 13:28:32
BP Key: 77339 Status: AVAILABLE Compressed: NO Tag: TAG_1111141325

[code]...

View 3 Replies View Related

RMAN :: How To Know Control File Name From Tape Backup

Aug 19, 2012

I have RMAN backup on TAPE. I need to restore control file for particular date on another host. How do I restore control file to new host for particular date?

EXAMPLE:

4949 Full 11.25M SBT_TAPE 00:01:09 06-AUG-12
BP Key: 4949 Status: AVAILABLE Compressed: NO Tag: TAG20120806T223455
Handle: COTSPRD_c-4007601229-20120806-00 Media: 030256
SPFILE Included: Modification time: 28-MAR-12
SPFILE db_unique_name: COTSPRD
Control File Included: Ckp SCN: 237324864 Ckp time: 06-AUG-12

Can I rrun command like :
RESTORE CONTROLFILE FROM TAG 'TAG20120806T223455;

I need to clone from tape to another server for particular date.

View 3 Replies View Related

How Much Data Written On Tape On In-progress RMAN Backup

Oct 6, 2011

db environment: 11g
recovery catalog: 10g

I am trying to find if there is a way to know how much data has been written on tape on a 'in progress' rman backup. rman session is also connected with recovery catalog.

is there a way to find-out how much data is transferred per rman channel onto tape? what is backup speed we are getting?

View 1 Replies View Related

Backup & Recovery :: RMAN Copy From Tape To Disk?

Aug 12, 2010

We usually copy backuppeice from disk to tape usig RMAN.Is there any option to copy the backupeice from tape to disk.

View 17 Replies View Related

Backup & Recovery :: RMAN And TAPE Library TS3100?

May 24, 2011

I take backup database with RMAN utility . Now without any third-party software I want to take backup database with RMAN utility and put on TAPE LIBRARY TS3100 . and I got error message.plz guide me how to configure TAPE library for RMAN

RMAN> run {
2> allocate channel stb1 device type stb format '/dev/IBMtape0/Full_dwhtest2_%T_%s';
3> backup ( database include current controlfile );
4> backup format '/dev/IBMtape0/Arc_dwhtest2_%T_%s' ( archivelog all);
5> }

RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03009: failure of allocate command on stb1 channel at 05/22/2011 19:47:14
ORA-19554: error allocating device, device type: STB, device name:
ORA-27001: unsupported device type

View 7 Replies View Related

RMAN :: Restoring Backup From Other Database

Aug 6, 2012

I just duplicate my PRODUCTION database to TEST database (11.2.0.1 both) on windows 7.

I just create a backup from PRODUCTION:

RMAN> backup full database format ='C:Usersmy_usermiBBDDflash_recovery_are aTESTdatabase_%U';and controlfile backup:

RMAN> backup current controlfile format='C:Usersmy_usermiBBDDflash_recover y_areaTESTCONTROL_FILE_%U';now i'm trying to restore this backup into TEST with this script:

RMAN
CONNECT TARGET /
STARTUP NOMOUNT;
SET DBID 486238190;  #DBID of TEST database
RUN

[Code]....

but i'm having a similar error when i tried to duplicate both databases ( post -->Error duplicate databases fallo de la recuperaci¾n del medio fÝsico
canal liberado: c1

RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: fallo del comando recover en 08/06/2012 11:53:06
ORA-00283: recovery session canceled due to errors
RMAN-11003: fallo al analizar/ejecutar la sentencia SQL: alter database recover

if needed start until cancel using backup controlfile

ORA-00283: recovery session canceled due to errors

ORA-01110: data file 1: 'C:USERSmy_userMIBBDDORADATAPRODUCTIONSYSTEM01. D BF'
ORA-01157: cannot identify/lock data file 1 - see DBWR trace file
ORA-01110: data file 1: 'C:USERSmy_userMIBBDDORADATAPRODUCTIONSYSTEM01.D BF'

Controlfile was restored correctly. what am I doing wrong?

View 23 Replies View Related

Backup & Recovery :: Restoring Pre-RMAN Backup

Dec 8, 2011

Just inherited an 8i DB that is being backed up with then common techniques used prior to RMAN. The tablespace is placed in backup mode, an OS copy of the file is taken, the tablespace is returned online, and the process is repeated until all files captured in an usable state.

It is running in archive log mode on a Linux OS and daily backups are initiated through crontab as well as jobs to purge the redo logs after backup. Backup storage recently filled - working since 2004. Not bad!

I have documented procedures for using these files with an operational 8i DB. Will I be able to restore these files directly into an 11g environment? What is the implication of 8i having DBA managed "RBS" (roll back segments) vs. 11g?

I am thinking I will have to build both versions.

View 7 Replies View Related

Backup & Recovery :: RMAN Configuration On Linux Using Tape Drive?

Oct 8, 2011

I want to configure rman backup for oracle 9i database on hp tape drive. Db is running in RHEL.

View 6 Replies View Related

Recovery Manager (RMAN) :: Error While Run Backup Plus Archivelog To Tape

Jan 3, 2013

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;
[code].....

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], [], [], [], [], [], [],

View 1 Replies View Related

Backup & Recovery :: Error While Restoring Database Using RMAN

Mar 31, 2011

i am trying to restore database using rman backup on same machine using command

RMAN> run {
2> set until sequence 23;
3> restore database;
4> recover database;
5> }
but it will give me error.
RMAN-00571: =======================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===========
RMAN-00571: =======================================================
RMAN-03002: failure of restore command at 03/31/2011 19:18:11
[code]....

View 3 Replies View Related

Backup & Recovery :: Restoring RMAN Backups On Another Server

May 10, 2011

I have a live server on which Oracle 10g Database is running. We take full RMAN Backups everyday. Now we want to restore the RMAN Backup file from the Live server to another machine (which is going to be a test system). I want to restore the latest RMAN backup on the test machine (which is not on network).

When I copy the RMAN backup set in the flash recovery area of the test machine and then use "list backup", the backup set is not listed. I also tried "crosscheck backup" and then "list backup" but still the backup set does not appear. how can I register the backup set from live server into test machine and then restore it.

View 5 Replies View Related

Recovery Manager (RMAN) :: Restoring A Backup To A New Database Instance

Sep 4, 2013

I have an issue with restoring a RMAN backup that i have with me to a new database instance. What i have with me are: 1. Backup of SPFile.

(O1_MF_NCNNF_CTLFILE_BU_92DVGYO2_.BKP)2. Backup of Control file (O1_MF_NNSNF_SPFILE_BU_92DVGW9H_.BKP)3. Full database backup (O1_MF_NNSNF_FULLPROD_BU_92DVGW9H_.BKP)

 I have received these files from a customer environment and I need to restore these to a new database instance in a local machine. I have given a attempt as follows (in Oracle 10g): 1, Created a new database instance (Test75) using Oracle Database Configuration Assistant2. SET ORACLE_SID = Test753. Connected to this instance using RMAN4. Tried to restore the SPFILE from the received BKP file.I am getting errors and cannot proceed. I am not sure whether I am executing the correct steps.

View 6 Replies View Related

Data Guard :: Restoring Logical Standby Rman Backup On Production

Oct 9, 2012

I have One Production and one logical standby database . Due to tape problem we are unable to take backups of primary . And due to business , we cannot take back up on disk in hot period(Bank database ) .

If i take logical standby database backup(level 0 ) using RMAN , then will i be able to restore it on production dtbs (In case Production down) ? . Logical standby is in sync with primary .

View 2 Replies View Related

Undo Retention And DB-flashback Retention Target Parameters?

Mar 13, 2011

The undo_retention is used for read consistency, to avoid snapshot too old.Flashback database is using files in the db_recovery_file_dest.But whether undo_retention has any influence on Flashback drop; Flashback table or Flashback query?Let's say we have set undo_retention = 3600 = 1 hour.And

db_flashback_retention_target = 1440 = 24 hours.

Will it work Flashback drop; Flashback table; Flashback query to get 12 hours back?Additional question. Why Oracle sets undo_retention in seconds and db_flashback_retention_target in minutes?To use the same measure would be more user-friendly to DBAs .

View 2 Replies View Related

RMAN Disk / Tape?

Apr 25, 2011

I just made the swich to have my RMAN backup directly to tape and here are the parameters I have set.

CODECONFIGURE DEFAULT DEVICE TYPE TO 'SBT_TAPE';
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE SBT_TAPE TO '%F';
CONFIGURE DEVICE TYPE 'SBT_TAPE' PARALLELISM 4 BACKUP TYPE TO BACKUPSET;
CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE SBT_TAPE TO 1; # default

[code]...

When I do an active clone I need to set my parameters back to the following in order to makeit work.

CODECONFIGURE 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

[code]....

Instead of un-doing my RMAN TAPE settings, is there something I can do in my active clone script to tell it read/write from/to disk instead of tape. I tried allocatiing disk channels but was unable to get my script to work. The only way it worked was to back out all the tape settings and put everything back to disk.

CODErman catalog=rman/rman@prod target=sys/sys@prod << EOT
connect auxiliary sys/sys@dev
duplicate target database to dev from active database nofilenamecheck
pfile=/u01/app/oracle/product/11g/dbs/initdev.ora;
 exit

View 4 Replies View Related

Backup & Recovery :: Backing Up / Restoring Oracle Database Via Entire Backup Of Server

Aug 7, 2012

I've read a lot about the different types of backup available with Oracle (hot and cold backup). However, I was thinking of a different way of performing this task. I'm currently using Windows Server 2008 R2 and Oracle 11g Standard Edition. I'd like to schedule an entire backup of my server via the utility "Windows Server Backup" (available for free).That way, I could recover my entire server with all the programs and files in case the latter crashes.I'm wondering if this solution could be used as a way of backing up (and recovering) the Oracle database. Should I still set up a regular hot backup with the Archivelog mode enabled in case some operations/transactions were being done at the time of the crash (for the data integrity)?

View 2 Replies View Related

Backup & Recovery :: Restoring Later Backup Control File And Recovering Till Past Scn

Jul 11, 2012

I want to ask if I restore a control file from backup of say day2 and I recover till day1 using RMAN script, then what will be the state of my database? I mean day2 control file may be having SCN-Day2, and I am instructing RMAN to recover till past point in time that is SCN-Day1.

View 3 Replies View Related

Backup & Recovery :: Command For Restoring From Incremental Backup

Mar 8, 2013

Every Sunday in the month - Full Backup

RMAN > BACKUP DATABASE;

Rest of the days - Incremental Level 1 Backup.

RMAN> BACKUP INCREMENTAL LEVEL 1 DATABASE

Day of Month Backup Taken Backup Contents

1st Full Backup All files as of the 1st - Sunday

2nd Incremental #1 Files updates between the 1st and 2nd - Monday
3rd Incremental #2 Files updates between the 2nd and 3rd - Tuesday
4th Incremental #3 Files updates between the 3rd and 4th - Wednesday
5th Incremental #4 Files updates between the 4th and 5th - Thrusday
6th Incremental #6 Files updates between the 5th and 6th - Friday
7th Incremental #7 Files updates between the 6th and 7th - Saturday
8th Full Backup #8 Files updates from 1st,2nd to 7th - Sunday
9th Incremental #9 Files updates between the 8th and 9th _ Monday
10th Incremental #10Files updates between the 9th and 10th - Tuesday
11th Incremental #11 Files updates between the 10th and 11th - Wednesday
12th Incremental #12 Files updates between the 11th and 12th - Thrusday
13th Incremental #13 Files updates between the 12th and 13th - Friday
14th Incremental #14 Files updates between the 13th and 14th - Saturday
15th Full Backup CRASHES - NOT COMPLETED - Sunday

I would need to restore now from #8 ( full backup ) and #9 to #14 ( incremental backup )

Tell me the "restore command" to achieve the output?

View 6 Replies View Related

Recovery Manager (RMAN) :: Allocate Channel T1 Type SBT-TAPE?

Dec 16, 2012

what is the meaning of 'SBT_TAPE' in the following command in RMAN? In the following command, does it refer to a tape drive, or a hard disk backup?

allocate channel t1 type 'SBT_TAPE' parms
'ENV=(NSR_SERVER=<a backup server server name>,NSR_CLIENT=<a oracle server>,NSR_DATA_VOLUME_POOL=ORACLE ARCHIVE LOG)';

View 1 Replies View Related

Secure Backup Only For Tape Drive Not For Disk

Oct 27, 2010

Is oracle providing secure backup only for Tape drive not for disk(means Hard-disk),configure oracle secure backup.

View 1 Replies View Related

RMAN-06023 When Restoring Full Database (new Datafiles)

Jun 20, 2013

I'm testing out various RMAN restore/recovery scenarios for 10g R1. Took a full level-0 backup of one of our larger databases (16 tb) and I'm trying to restore the whole thing on another server. While the backup was running (for about a day & a half), a few datafiles were added. The backup completed fine, including "backup current controlfile;". Now my restore is failing with "RMAN-06023: no backup or copy of datafile xxxx found to restore", with reference to the 4 files that were added while the backup was in progress.

I guess if the datafiles were added after the backup had finished, we'd be fine because they'd be created during recovery with our archive logs (we have all of those).

I found some suggestions for first doing a "restore controlfile;" -- did that and it worked fine -- then mounting the database and creating the datafiles manually. I added that to my RMAN restore script and tried it, like so:

run {
allocate channel d4 type disk format '/BK01/dbX/stream1/df_%t_s%s_s%p' ;
sql "alter database create datafile ''/uXX/oradata/dbX/datafile_58.dbf''";
restore database ;
}

The datafiles were created successfully, and the restore began .. but then it failed with this:

creating datafile fno=4216 name=/uXX/oradata/dbX/datafile_58.dbf
...
RMAN-03002: failure of restore command at 06/20/2013 17:27:28
ORA-01119: error in creating database file '/uXX/oradata/dbX/datafile_58.dbf
ORA-27038: created file already exists

So RMAN seems to be telling me that if these 4 datafiles don't exist in the backupset, then RMAN won't automatically create them. But if I manually create them first, then RMAN will try to restore them and complain that they already exist. And for that matter, I would have expected that RMAN would be smart enough to detect that those 4 files were added while the backup was active, and just include them in the backup. Maybe there's something I needed to do to tell RMAN to do that?

This is just a test, so of course I can redo the backup from scratch and try again, but we have some pretty large databases which cannot be shut down for cold backups, so it's entirely possible this scenario could show up in a real disaster recovery. RMAN does such a good job of managing things.

View 1 Replies View Related

Data Guard :: How To Restore Archive_log From Tape Backup

Aug 16, 2012

I got missed the archivelog from primary DB.now its got deleted. But now it is stored in Tape_backup. i don't know about tape backup. how to access and restore the archive_log from tape backup. My tape setup is Legato..ultrium.

os:Hp-ux
DB:Oracle9i

View 6 Replies View Related

Restoring Oracle Backup

Jul 12, 2011

My boss gave me a 1GB Oracle .dmp file, and I told him that I could handle it easily (ie, install Oracle on a machine, import the .dmp file, and export / move it onto a MS SQL server).

Oracle has turned out to be far more difficult to learn than I originally thought, however. Even after a week of reading search results and watching YouTube videos, I still feel completely in the dark.

Restoring an Oracle backup? (Once the backup is restored, that should be it - I have an ETL tool (Scribe Insight) for reading an Oracle database and moving it to SQL. I can use GoToMeeting for screen sharing.)

View 2 Replies View Related

Backup & Recovery :: Control-file Piece Handle Lost From Tape?

May 9, 2011

We are trying to restore a database to a cold backup DBID.However while our datafiles were backuped up for 6 months retention we found out subsequent delete obsolete command wiped out the Control file related to this backup piece..Now what is left with this backup piece is just datafiles..

Can we still recover the database with a subsequent controlfile autobackup for the same DBID.?

View 2 Replies View Related

Recovery Manager (RMAN) :: Duplicate Restoring Older Version Of File Than Expected?

Feb 28, 2013

We are running 11.2.0.3.2.

In my catalog for the "source" database (rman target db), I have the backupsets for a full database backup ended at Feb. 7, 03:43:37. These are online backups. So, there are archived redo logs being generated while it runs and the following archived redo logs finished at Feb. 7, 04:00:24.

We duplicate databases all the time. So, this is not a new concept for us. The one thing that has changed is that we now back up to disk (using the flashback recovery area) and then later on, initiate a backup to tape. Prior to this go-live, we did all of our backups directly to tape. The catalog does not seem confused. It knows it needs to go to tape because it's beyond the retention for disk backups. The only problem is that it is going to the backup prior to the backupset I want, only for a couple of files.

In the past, when all went directly to tape, we would do a set until time 'Feb. 7, 03:43:37' and it would automatically restore the backupset that finished then and apply archived redo logs as necessary to make a consistent copy. Now, if I use the same model, it's going to a backup set from the prior date for 3 particular files. If I change the time to when the archived redo logs ended their backup, 04:00, it still goes back to the day before, but only for 2 files.

I can list a backup of each specific file and see that the file is in the backupset for which I expect RMAN to pull. How can I figure out a date/time to go back to if not using the method of reviewing the catalog entries and timestamps?

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved