Restoring whole db Online backup with redologs backup
Dear all,
I am planning to restore a whole DB online + redo logs backup, i have few doubts . please confirm..
On Step 8, Restore and apply archivelog files ...
First sequence number (first_seq) .. (eg) 7276
Last sequence number (last_seq) .. (eg) 7278
we probably only have to mention the last_seq.... Now question is , is this the last archive created when the backup finished...(ie 7278) and in the backup log, it was mentioned that the Next archivelog is 7279...
another question , when we are restoring this backup next day , can we apply archives created after 7278 to achive DB point in time..
Thanks & regards
Adnan
Hi
U have to recover the databse using the archive files after the backup was taken.
The archive files should be copied from the source system to the target but make sure that u rename those archive files as acceptable to the target system ie log_archive_format parameter of the target system. ie sid should be there in the name of the archive files.
One more thing if u wish to keep the target DB in sync with the source DB then u would need to apply all the archive files generated after the online backup was taken.
Make sure to open the database in resetlogs mode
In short the steps wud be as follows.
1. Issue the following in ur source system
alter database backup controlfile to trace ; .
2.Modify the .trc file as below created under usertrace directory which generally shud be /oracle/SID/saptrace/usertrace
a. CREATE CONTROLFILE SET DATABASE "Target_SID" NORESETLOGS ARCHIVELOG
b.The directory structures of the redo log and datafiles as per the directory structure available in ur target system.
c.Remove all other lines from the file ur file should end with like character set ...;
d. Save the file as something.sql and copy it to the target system.
3. Restore the online backup on the target system ...don't need to restore the redo log files.
Also copy the archive file from the source system to the target system and rename them as per target system.
4. In the target system connect as sysdba
SQL> startup nomount
SQL> @something.sql
It wud say control file created and the DB will be mounted .
5. Now issue the command
Recover database using backup controlfile;
Apply the archives when done issue the following
alter database open resetlogs;
Regards
Kausik
Similar Messages
-
How to restore a table using RMAN with previous backup ?
Hi everyone,
we have to restore a table from 1 week previous backup using RMAN.
Could you show me how to restore a table using RMAN with previous full backup.
please Help me out.
Thanks
Info > oracle 10g, OS: AIX5LHi,
first of all you must have all the archivelogs since you want to recover your table from the previous backups.
anyways if you want to recover your table then you need to perform incomplete recovery to the point where you loss the table for that you need to restore and recover your database.you likely to loose all the transcation which occurs to the point where you you loose your table.
thanks.. -
BR0278E - Access denied in oracle backup and redolog backup
Hello All,
I have been trying to take a redolog backup from DB13 and I am getting the below error
BR0278E Command output of 'E: && cd E:\oracle\QAS\102\database && E:\usr\sap\QAS\SYS\exe\uc\NTAMD64\brtools.exe -f copyfile
12.6.2.0\Backup\hostname\QAS initQAS.ora spfil
Access is denied.
BR0280I BRARCHIVE time stamp: 2009-06-24 11.36.34
BR0279E Return code from 'E: && cd E:\oracle\QAS\102\database && E:\usr\sap\QAS\SYS\exe\uc\NTAMD64\brtools.exe -f copyfile
12.6.2.0\Backup\hostname\QAS initQAS.ora spfile
In my findings I understood that it may be a hardware inconsistency from the note 17163.
BR0278E Command output of '%s': %s
BR0278E Kommando-Ausgabe von '%s': %s
Explanation: The error messages of this command are displayed. In most cases they are messages from the cpio or mt commands. The following are examples:
Sample messages:
Message/Explanation
cpio:cannot read...
cpio:read error...
cpio:can't read input...
cpio:I/O Error...
cpio:read failed:I/O Error.
The file to be backed up cannot be read. In most cases, this is due to hardware problems on the disk on which the file is stored.
But if i take the archievlog backup using brtools in command prompt level and its working fine and also its getting completed succefully.
I gave the full rights of administrator, backup operators, saplocal and sapglobal admin . And also the drive was shared and the folder access is given with full authoriusation for the user SAPServiceSID.
I am not sure about the root cause of this problem.Anyone have idea on this please do suggest me.
Yesterday I posted the same thread and thought that it solved my problem and closed the thread as well, Sorry.
VijayHello All,
Sorry for the late update.
I have followed the note 400241 but still not able to solve the issue. I am not able to take the backup from DB13 by using a local drive and also in the network drive. Both are getting failed due to the same reason
BR0278E Command output of 'E: && cd E:\oracle\QAS\102\database && E:\usr\sap\QAS\SYS\exe\uc\NTAMD64\brtools.exe -f copyfile
21.10.5.10\backup\Test_NEW\QAS initQAS.ora spfi
Access is denied.
I am sure I have created the service user in network drive with the same password but still no luck, even its getting failed if i try to take a local backup.
Services are running under SAPSeriveSID user and this user is also not locked.
For the past one month I am taking the backup using the BRTOOLS and dont know why this is getting failed in DB13.
Any suggestion are highly appreciable.
Regards
Vijay -
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 -
Online backup with redolog failed on newly installed SAP server
Dear All,
Pls check the below log which was taken newly installed SAP server .
BR0051I BRBACKUP 7.00 (24)
BR0055I Start of database backup: beflcufp.and 2011-03-14 15.32.17
BR0484I BRBACKUP log file: D:\oracle\IBQ\sapbackup\beflcufp.and
BR0252W Function remove() failed for 'D:\oracle\IBQ\102\database\sap.ora' at location BrInitOraCreate-1
BR0253W errno 13: Permission denied
BR0252W Function remove() failed for 'D:\oracle\IBQ\102\database\sap.ora' at location BrInitOraCopy-7
BR0253W errno 13: Permission denied
BR0166I Parameter 'control_files' not found in file D:\oracle\IBQ\102\database\initIBQ.ora - default assumed
BR0274W File 'D:\oracle\IBQ\102\database\CTL1IBQ.ORA' not found
BR0280I BRBACKUP time stamp: 2011-03-14 15.32.20
BR0319I Control file copy created: D:\oracle\IBQ\sapbackup\CNTRLIBQ.DBF 12664832
BR0063I 17 of 17 files processed - 26652.203 MB of 26652.203 MB done
BR0204I Percentage done: 100.00%, estimated end time: 15:56
BR0001I **************************************************
BR0280I BRBACKUP time stamp: 2011-03-14 15.56.42
BR0340I Switching to next online redo log file for database instance IBQ ...
BR0321I Switch to next online redo log file for database instance IBQ successful
BR0117I ARCHIVE LOG LIST after backup for database instance IBQ
Parameter Value
Database log mode Archive Mode
Automatic archival Enabled
Archive destination D:\oracle\IBQ\oraarch\IBQarch
Archive format ARC%S_%R.%T
Oldest online log sequence 308
Next log sequence to archive 311
Current log sequence 311 SCN: 2870470
Database block size 8192 Thread: 1
Current system change number 2870472 ResetId: 745348120
BR0017E Offline redo log file 'D:\oracle\IBQ\102\RDBMS\ARC00310_0745348120.001' not found
BR0056I End of database backup: beflcufp.and 2011-03-14 15.56.43
BR0280I BRBACKUP time stamp: 2011-03-14 15.56.43
BR0054I BRBACKUP terminated with errors
BR0280I BRBACKUP time stamp: 2011-03-14 15.56.43
BR0291I BRARCHIVE will be started with options '-U -jid ALLOG20110314153206 -d disk -c force -p initIBQ.sap -cds'
BR0280I BRBACKUP time stamp: 2011-03-14 15.56.44
BR0292I Execution of BRARCHIVE finished with return code 3
RegardsDear all,
Backup got failed pls check below logs (Note : Kernal also upgraded and ORACLE_SID
ORACLE_HOME also set .
BR0063I 17 of 17 files processed - 26652.203 of 26652.203 MB done
BR0204I Percentage done: 100.00%, estimated end time: 15:27
BR0001I **************************************************
BR0280I BRBACKUP time stamp: 2011-03-16 15.27.46
BR0340I Switching to next online redo log file for database instance IBQ ...
BR0321I Switch to next online redo log file for database instance IBQ successful
BR0117I ARCHIVE LOG LIST after backup for database instance IBQ
Parameter Value
Database log mode Archive Mode
Automatic archival Enabled
Archive destination D:\oracle\IBQ\oraarch\IBQarch
Archive format ARC%S_%R.%T
Oldest online log sequence 312
Next log sequence to archive 315
Current log sequence 315 SCN: 2952702
Database block size 8192 Thread: 1
Current system change number 2952704 ResetId: 745348120
BR0018I Waiting for the next offline redo log file...
BR0202I Saving space_log
BR0203I to D:\oracle\IBQ\sapbackup\IBQ ...
BR0202I Saving D:\oracle\IBQ\sapbackup\beflmnyz.and
BR0203I to D:\oracle\IBQ\sapbackup\IBQ ...
BR0202I Saving D:\oracle\IBQ\sapbackup\backIBQ.log
BR0203I to D:\oracle\IBQ\sapbackup\IBQ ...
BR0056I End of database backup: beflmnyz.and 2011-03-16 15.27.54
BR0280I BRBACKUP time stamp: 2011-03-16 15.27.55
BR0053I BRBACKUP completed successfully with warnings
BR0280I BRBACKUP time stamp: 2011-03-16 15.27.55
BR0053I BRBACKUP completed successfully with warnings
BR0280I BRBACKUP time stamp: 2011-03-16 15.27.55
BR0291I BRARCHIVE will be started with options '-U -jid ALLOG20110316151050 -c force -p initIBQ.sap -cds'
BR0280I BRBACKUP time stamp: 2011-03-16 15.27.57
BR0292I Execution of BRARCHIVE finished with return code 3
BRArchive is not done ,
Kindly advise. -
How Do I Restore A Replacement iPod Touch With the Backup From A Previous iPod Touch?
I recently received a replacement iPod Touch because of hardware issues with my previous one. I managed to back up my last iPod Touch with iCloud, I also recall using iCloud to restore it from backup after I first updated to iOS 5. All I'm looking to do is to restore everything exactly as it was (app data etc) on my last iPod before I had it replaced. Yet, when I attempt to restore it from back up, it restores with the wrong back up.
See if the lnk given here helps:
Have a new iOS device and need to move your previous backup onto it? Follow the steps in How to transfer your backup from one iOS device to a new device.
Above from:
http://support.apple.com/kb/ht1766 -
Restoring backup with .mac backup (umbrella)
It's impossible to select single files to restore. The checkboxes fail to work from a certain level, so I can't do anything else but restoring 50GB just to get my 1MB file back!
If anyone can help, please let me know. I'm annoyed because I trusted the software and it worked smooth, and now um f* by it...moenen Erbuer wrote:
It's impossible to select single files to restore. The checkboxes fail to work from a certain level,
Not sure what you mean. They aren't shown? They are shown but you can't click them? You click them but don't get the item you want?
so I can't do anything else but restoring 50GB just to get my 1MB file back!
If anyone can help, please let me know. I'm annoyed because I trusted the software and it worked smooth, and now um f* by it...
There is a workaround for some situations where you can't restore: http://support.apple.com/kb/TS1158
If you're on Leopard, you need to switch to Time Machine or some other backup app for this much data. You're way beyond Apple's recommendations for Backup: http://support.apple.com/kb/HT1284 -
Best Setup for Lion Server Time Machine Backup with Drobo?
I've been thinking about this a lot, yet I don't feel I have a good solution for this, so I'm going to throw it out to the community.
I have a home server setup using a Mac Mini running Lion Server 10.7.2 with a Firewire 800 Drobo attached. The Drobo is used for both Time Machine backups and files. I also have a Powerbook G4 running Leopard and a MacBook 2.4 GHz Intel Core 2 Duo with Lion 10.7.2 which connect to the Server and the Drobo wirelessly thorugh an Airport Extreme.
I want to use Time Machine to have all of my computers back up to the server & Drobo, but realize there are several ways to go, each with their pluses and minuses:
Server Time Machine Backup:
+ Centralizes backup process, rules, and other elements
+ Currently Mac Mini is backing up to the Drobo correctly using this process
+ Have setup size limit on Server backup so that it does not eat up file space
- Would combine laptop backups with server backup into one sparse image: this would lead to the computer with the largest backup needs taking up too much space
Client-Driven Time Machine Backup:
+ Allows for customization of backup processes by computer
+ Can setup specific space requirements for each computer
+ Backups are separate from each other
- Wireless backup from laptops to Drobo is not functioning currently
Any thoughts or experiences on how best to set this up? I tend to do most of my work on the MacBook, hence I am concerned about it having it's backup space eaten up by the server, but that may be more of a theoretical issue than a real one.
Thanks in advance for your help!Well I'm not sure if I am following you but I will explain how I set mine up. When I got the Drobo I inserted 2 drives and selected the highest available volume I could (16TB). My drives are 4 TB each and I knew I would soon add 2 more. Then Drobo did its thing and prepared these drives. The Drobo shows up on my mini desktop as an external drive. When I log into my server from my other computer I can see the mini server volume and the Drobo volume. I can access each no problem. They act as regular volumes. Soon after I added the second two drives and everything stayed the same meaning I could still see and access the Drobo on the desktop of my mini. So it sounds like you used the Drobo dashboard to partition yours for two volumes? Are they both showing on the desktop?
"Maybe the Drobo needs to be mounted on the desktop to be considered AFP feature enabled." I could be wrong and hopefully someone will correct me but I think the Drobo (or volumes) have to be mounted on the desktop to work with AFP. -
how can i restore a iPhone 4s (ios7) with a backup from from a iphone5 (ios8.1.1)?
When I try Easing All Content and Restore. It backup's to ios7. Then I'm unable to install the backup that i have in the cloud.
Help!Are you sure it's a 4S and not a 4?
You can't restore a backup made with a newer version of iOS to a phone running an older one. You must update the phone to the newer version of iOS, wipe it again, then restore the backup.
~Lyssa -
Problem with Whole Database Online+Redo log Backup
Dear Marcus Sir,
I am facing while taking "Whole Database Online+Redo log Backup" through DB13 T-Code.
Below is the "Problem part of the Backup log", however if you need I will send you full log.
Hope you will find out problem soon
#FILE..... /oracle/ANP/sapdata2/sr3_8/sr3.data8
#SAVED.... sr3.data8 ANPB260810/12
BR0280I BRBACKUP time stamp: 2010-08-27 11.03.22
BR0063I 9 of 51 files processed - 19400.070 MB of 135986.469 MB done
BR0204I Percentage done: 14.27%, estimated end time: 11:47
BR0001I *******___________________________________________
BR0202I Saving /oracle/ANP/sapdata2/sr3_9/sr3.data9
BR0203I to /dev/rmt0.1 ...
BR0278E Command output of 'LANG=C dd obs=1024K bs=1024K if=/oracle/ANP/sapdata2/sr3_9/sr3.data9 of=/dev/rmt0.1':
dd read error: I/O error
462+0 records in
462+0 records out
BR0280I BRBACKUP time stamp: 2010-08-27 11.03.36
BR0279E Return code from 'LANG=C dd obs=1024K bs=1024K if=/oracle/ANP/sapdata2/sr3_9/sr3.data9 of=/dev/rmt0.1': 2
BR0222E Copying /oracle/ANP/sapdata2/sr3_9/sr3.data9 to/from /dev/rmt0.1 failed due to previous errors
BR0280I BRBACKUP time stamp: 2010-08-27 11.03.41
BR0317I 'Alter tablespace PSAPSR3 end backup' successful
BR0056I End of database backup: bedziydp.ant 2010-08-27 11.03.36
BR0280I BRBACKUP time stamp: 2010-08-27 11.03.41
BR0054I BRBACKUP terminated with errors
Warm Regards
AhsanHi,
since you are getting a read error, it might as well be, that your datafile is defective.
Try the same dd-command to /dev/null, to see if it is possible to read the entire file.
First make sure that your null-device is existing, otherwise you might face a root-fs full problem.
dd obs=1024K bs=1024K if=/oracle/ANP/sapdata2/sr3_9/sr3.data9 of=/dev/null
or try a dbverify on it, which would also read the entire file and do a checksum test.
brbackup -c -u / -m /oracle/ANP/sapdata2/sr3_9/sr3.data9 -t online -w only_dbv
Good luck
Volker -
Whole Database Online + redo log backup: How Long?
Hi gurus,
There's something I want to ask about online backup with redo log.
If i'm correct, redo log file is created everytime there's operation that change datafile right?
If i schedule this type of backup everyday, it means it will backup all datafiles, along with redo log file when transaction take places, at my pre-defined hours, right?
Then here's what i'm confused about. When will this backup process finished? Is it when all the datafiles have been backed up? Then how about the redo log files? If there are users that keep making transaction (therefore make change to datafiles), new redo log files will be created on disk, and that will prevent the backup process to finish. Then when will this cycle come to an end?
Please confirm if my grasp about oracle online backup is correct or not, and provide explanation to satisfy my curiousity.
Thanks gurus,
Edited by: Bobby Gunawan on Jan 6, 2009 10:16 AMHello Fidel,
i am feeling honored
> Keep in mind that the only thing where a DBA cannot make mistakes is restore/recovery and this depends on your backups
In general i would say you are right, but i have seen already one case where this statement is not true.
Some time ago i got a call from a colleague where his database crashed, the online redolog files were corrupted and the recovery was not working.
If you don't look really close at this point you are in trouble and can not continue the recovery. Let explain this on a example.
This demonstration is done on an oracle 10.2.0.4, but it work on every other version too.
Let's simulate a crash
SQL> shutdown abort;
Corrupt/delete a specifc redolog file
SQL> startup
ORA-00313: open failed for members of log group 3 of thread 1
ORA-00312: online log 3 thread 1: '/oracle/TST/oradata/redolog/redo03.log'
ORA-27037: unable to obtain file status
Ok - so far so good, lets check the groups and files
SQL> select GROUP#, STATUS, MEMBER from v$logfile where TYPE = 'ONLINE';
GROUP# STATUS MEMBER
1 /oracle/TST/oradata/redolog/redo01.log
2 /oracle/TST/oradata/redolog/redo02.log
3 /oracle/TST/oradata/redolog/redo03.log
SQL> select * from v$log;
GROUP# THREAD# SEQUENCE# BYTES MEMBERS ARC STATUS FIRST_CHANGE# FIRST_TIM
1 1 95 52428800 1 NO CURRENT 5117817 06-JAN-09
3 1 94 52428800 1 YES ACTIVE 5117814 06-JAN-09
2 1 93 52428800 1 YES ACTIVE 5112855 15-DEC-08
What's the situation?
The online redolog file of group 3 is lost/corrupted and this group is needed to perform a complete recovery (see status ACTIVE).
But you are lucky, because of this group 3 is already archived - so you can perform a complete recovery.
Now let's perform a complete recovery but with UNTIL clause (because we need to jump between the online and archived redologfiles)
SQL> recover database until cancel;
ORA-00279: change 5116194 generated at 01/06/2009 21:06:48 needed for thread 1
ORA-00289: suggestion : /oracle/TST/oraarch/TST_1_93_6b8c0516_666969185.arc
ORA-00280: change 5116194 for thread 1 is in sequence #93
Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
ORA-00279: change 5117814 generated at 01/06/2009 21:08:47 needed for thread 1
ORA-00289: suggestion : /oracle/TST/oraarch/TST_1_94_6b8c0516_666969185.arc
ORA-00280: change 5117814 for thread 1 is in sequence #94
ORA-00278: log file '/oracle/TST/oraarch/TST_1_93_6b8c0516_666969185.arc' no longer needed for this recovery
Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
ORA-00279: change 5117817 generated at 01/06/2009 21:08:51 needed for thread 1
ORA-00289: suggestion : /oracle/TST/oraarch/TST_1_95_6b8c0516_666969185.arc
ORA-00280: change 5117817 for thread 1 is in sequence #95
ORA-00278: log file '/oracle/TST/oraarch/TST_1_94_6b8c0516_666969185.arc' no longer needed for this recovery
Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
/oracle/TST/oradata/redolog/redo01.log
Log applied.
Media recovery complete.
Now execute an OPEN NORESETLOGS accidentally (maybe the dba think it is not necessary because of the complete recovery) and try an OPEN RESETLOGS after:
SQL> alter database open noresetlogs;
alter database open noresetlogs
ERROR at line 1:
ORA-00313: open failed for members of log group 3 of thread 1
ORA-00312: online log 3 thread 1: '/oracle/TST/oradata/redolog/redo03.log'
ORA-27037: unable to obtain file status
SQL> alter database open resetlogs;
alter database open resetlogs
ERROR at line 1:
ORA-01139: RESETLOGS option only valid after an incomplete database recovery
So now you are lost.. you can't execute an UNTIL CANCEL anymore which would be needed to perform a successful OPEN RESETLOGS.
In this special case you can do mistakes and you have to restore the whole database and perform the same recovery again and end with OPEN RESETLOGS.
Just for information
Regards
Stefan -
Restore using incremental backup with noarchivelog mode
Hello experts,
We are running SAP on Oracle databse(IN NOARCHIVELOG MODE) for which we are having full offline backup on every sunday and post which incremental backups on rest of the days. We have scenario to do restore db to the state till last friday's incremental backup.
Please let us know the procedure for restoring till that point. If possible using brtools utility(which is SAP specific).
Thank You
Regards,
VenkateshwarIf you do not want to read the whole doc This is the snippet for you.
Recovering a NOARCHIVELOG Database with Incremental Backups
Restoring a database running in NOARCHIVELOG mode is similar to restoring a database in ARCHIVELOG mode. The main differences are:
Only consistent backups can be used in restoring a database in NOARCHIVELOG mode.
Media recovery is not possible because no archived redo logs exist.
You can perform limited recovery of changes to a database running in NOARCHIVELOG mode by applying incremental backups. The incremental backups must be consistent, like all backups of a database run in NOARCHIVELOG mode, so you cannot make backups of the database when it is open.
When you are recovering a NOARCHIVELOG database, specify the NOREDO option on the RECOVER command to indicate that RMAN should not attempt to apply archived redo logs. Otherwise, RMAN returns an error.
To recover a NOARCHIVELOG database with incremental backups:
After connecting to the target database and the recovery catalog, place the database in a mounted state:
STARTUP FORCE MOUNT
Restore and recover the database.
For example, you can perform incomplete recovery with the following commands:
RESTORE DATABASE
FROM TAG "consistent_whole_backup";
RECOVER DATABASE NOREDO;
Open the database with the RESETLOGS option.
For example, enter the following command:
ALTER DATABASE OPEN RESETLOGS; -
Cold backup with online redo logs
I am working on 10G in AIX for a single instance
It is just a general db backup & restore question, but I have something confused.
I am going to perform a cold backup with my ARCHIVELOG database.
No wonder why I perform a cold backup because it is a testing database which can suffer from data lost and down time during backup.
I read some guides. They all mentioned to backup all the datafiles and control files.
During the restoration, I have to copy all the backed up datafiles and control files to the default location.
Then Startup mount;
The last step before open the database is recover database until cancel;
For the acknowledgement, I have to do the command of recover database, because the online redo logs were not backed up, thus we have to recover it in order to reset the redo logs.
For my question,Would I be able to skip the command of recover database, then directly startup the database if I have backed up the online redo logs and copy the default location during the restoration?
However, I read many documents which mention that it is not suggested to backup the online redo logs. Is it just the case which ONLY applied in hot backup? Do you all think that for my case, cold backup for online redo logs is recommended?
Thanks alljgarry wrote:
Edit: And never forget, those test databases are some developers production.Absolutely true according to my experience. Loosing the work of a payed developer is just as bad as loosing the work of a production system and may even be worse because it may not be possible to re-enter missing data into the system.
I think a cold backup is only suitable on special occasions, for instance, to relocate/copy the database to a different storage media, or if the database doesn't change or if loosing changes is absolutely irrelevant. Otherwise, put the database into archivelog mode and do a hot backup. After that you will also have alternative options which can make the restore and recovery of the database very easy and efficient, like flashback database, etc. but it will take substantial additional disk space. -
DB13 whole DB online + redo log backup
Hi expetrs,
I am using hp-ux with oracle with ECC6.0 and data protector.
I ran DB13 whole DB online + redo log backup on tape and it ran successful on specified tape.
But if i check data on tape via login on data protector it shows no data.
Also i checked at os level using command mt -f /dev/rmt/0mn status , it also show 0 data. But as per db13 log data written successfully on specified tape.
please help how to check online data files?
Note: presently i have taken backup on single tape.
regards
TarunTablespace TS-Status F-Status File Size Id. Device Link Type MaxSize IncrSize BlkSize
PSAPSR3 ONLINE* ONLINE /oracle/TAQ/sapdata2/sr3_1/sr3.data1 2306875392 4 1073938434 NOLINK FILE 0 0 8192
PSAPSR3 ONLINE* ONLINE /oracle/TAQ/sapdata2/sr3_10/sr3.data10 2139103232 13 1073938434 NOLINK FILE 0 0 8192
PSAPSR3 ONLINE* ONLINE /oracle/TAQ/sapdata2/sr3_11/sr3.data11 2139103232 14 1073938434 NOLINK FILE 0 0 8192
PSAPSR3 ONLINE* ONLINE /oracle/TAQ/sapdata2/sr3_12/sr3.data12 2139103232 15 1073938434 NOLINK FILE 0 0 8192
PSAPSR3 ONLINE* ONLINE /oracle/TAQ/sapdata2/sr3_13/sr3.data13 2118131712 16 1073938434 NOLINK FILE 0 0 8192
PSAPSR3 ONLINE* ONLINE /oracle/TAQ/sapdata2/sr3_14/sr3.data14 2118131712 17 1073938434 NOLINK FILE 0 0 8192
PSAPSR3 ONLINE* ONLINE /oracle/TAQ/sapdata2/sr3_15/sr3.data15 2118131712 18 1073938434 NOLINK FILE 0 0 8192
PSAPSR3 ONLINE* ONLINE /oracle/TAQ/sapdata2/sr3_16/sr3.data16 1415585792 19 1073938434 NOLINK FILE 0 0 8192
PSAPSR3 ONLINE* ONLINE /oracle/TAQ/sapdata2/sr3_17/sr3.data17 2097160192 38 1073938434 NOLINK FILE 0 0 8192
PSAPSR3 ONLINE* ONLINE /oracle/TAQ/sapdata2/sr3_18/sr3.data18 2097160192 39 1073938434 NOLINK FILE 0 0 8192
PSAPSR3 ONLINE* ONLINE /oracle/TAQ/sapdata2/sr3_19/sr3.data19 2097160192 40 1073938434 NOLINK FILE 0 0 8192
PSAPSR3 ONLINE* ONLINE /oracle/TAQ/sapdata2/sr3_2/sr3.data2 2202017792 5 1073938434 NOLINK FILE 0 0 8192
PSAPSR3 ONLINE* ONLINE /oracle/TAQ/sapdata2/sr3_20/sr3.data20 2097160192 41 1073938434 NOLINK FILE 0 0 8192
PSAPSR3 ONLINE* ONLINE /oracle/TAQ/sapdata2/sr3_21/sr3.data21 2097160192 42 1073938434 NOLINK FILE 0 0 8192
PSAPSR3 ONLINE* ONLINE /oracle/TAQ/sapdata2/sr3_22/sr3.data22 2097160192 43 1073938434 NOLINK FILE 0 0 8192
PSAPSR3 ONLINE* ONLINE /oracle/TAQ/sapdata2/sr3_3/sr3.data3 2181046272 6 1073938434 NOLINK FILE 0 0 8192
PSAPSR3 ONLINE* ONLINE /oracle/TAQ/sapdata2/sr3_4/sr3.data4 2181046272 7 1073938434 NOLINK FILE 0 0 8192
PSAPSR3 ONLINE* ONLINE /oracle/TAQ/sapdata2/sr3_5/sr3.data5 2160074752 8 1073938434 NOLINK FILE 0 0 8192
PSAPSR3 ONLINE* ONLINE /oracle/TAQ/sapdata2/sr3_6/sr3.data6 2139103232 9 1073938434 NOLINK FILE 0 0 8192
PSAPSR3 ONLINE* ONLINE /oracle/TAQ/sapdata2/sr3_7/sr3.data7 2139103232 10 1073938434 NOLINK FILE 0 0 8192
PSAPSR3 ONLINE* ONLINE /oracle/TAQ/sapdata2/sr3_8/sr3.data8 2139103232 11 1073938434 NOLINK FILE 0 0 8192
PSAPSR3 ONLINE* ONLINE /oracle/TAQ/sapdata2/sr3_9/sr3.data9 2139103232 12 1073938434 NOLINK FILE 0 0 8192
PSAPSR3 ONLINE* ONLINE /oracle/TAQ/sapdata4/sr3_23/sr3.data23 2097160192 76 1073938436 NOLINK FILE 0 0 8192
PSAPSR3 ONLINE* ONLINE /oracle/TAQ/sapdata4/sr3_24/sr3.data24 2097160192 77 1073938436 NOLINK FILE 0 0 8192
PSAPSR3701 ONLINE* ONLINE /oracle/TAQ/sapdata1/sr3701_19/sr3701.data19 2097160192 49 1073938433 NOLINK FILE 0 0 8192
PSAPSR3701 ONLINE* ONLINE /oracle/TAQ/sapdata1/sr3701_20/sr3701.data20 2097160192 50 1073938433 NOLINK FILE 0 0 8192
PSAPSR3701 ONLINE* ONLINE /oracle/TAQ/sapdata1/sr3701_21/sr3701.data21 2097160192 51 1073938433 NOLINK FILE 0 0 8192
PSAPSR3701 ONLINE* ONLINE /oracle/TAQ/sapdata1/sr3701_22/sr3701.data22 2097160192 52 1073938433 NOLINK FILE 0 0 8192
PSAPSR3701 ONLINE* ONLINE /oracle/TAQ/sapdata1/sr3701_23/sr3701.data23 2097160192 53 1073938433 NOLINK FILE 0 0 8192
PSAPSR3701 ONLINE* ONLINE /oracle/TAQ/sapdata1/sr3701_24/sr3701.data24 2097160192 54 1073938433 NOLINK FILE 0 0 8192
PSAPSR3701 ONLINE* ONLINE /oracle/TAQ/sapdata1/sr3701_25/sr3701.data25 2097160192 55 1073938433 NOLINK FILE 0 0 8192
PSAPSR3701 ONLINE* ONLINE /oracle/TAQ/sapdata1/sr3701_26/sr3701.data26 2097160192 56 1073938433 NOLINK FILE 0 0 8192
PSAPSR3701 ONLINE* ONLINE /oracle/TAQ/sapdata1/sr3701_27/sr3701.data27 2097160192 57 1073938433 NOLINK FILE 0 0 8192
PSAPSR3701 ONLINE* ONLINE /oracle/TAQ/sapdata1/sr3701_28/sr3701.data28 2097160192 58 1073938433 NOLINK FILE 0 0 8192
PSAPSR3701 ONLINE* ONLINE /oracle/TAQ/sapdata1/sr3701_29/sr3701.data29 2097160192 59 1073938433 NOLINK FILE 0 0 8192
PSAPSR3701 ONLINE* ONLINE /oracle/TAQ/sapdata1/sr3701_30/sr3701.data30 2097160192 60 1073938433 NOLINK FILE 0 0 8192
PSAPSR3701 ONLINE* ONLINE /oracle/TAQ/sapdata1/sr3701_31/sr3701.data31 2097160192 61 1073938433 NOLINK FILE 0 0 8192
PSAPSR3701 ONLINE* ONLINE /oracle/TAQ/sapdata1/sr3701_32/sr3701.data32 2097160192 62 1073938433 NOLINK FILE 0 0 8192
PSAPSR3701 ONLINE* ONLINE /oracle/TAQ/sapdata1/sr3701_33/sr3701.data33 2097160192 63 1073938433 NOLINK FILE 0 0 8192
PSAPSR3701 ONLINE* ONLINE /oracle/TAQ/sapdata1/sr3701_34/sr3701.data34 2097160192 64 1073938433 NOLINK FILE 0 0 8192
PSAPSR3701 ONLINE* ONLINE /oracle/TAQ/sapdata1/sr3701_35/sr3701.data35 2097160192 65 1073938433 NOLINK FILE 0 0 8192
PSAPSR3701 ONLINE* ONLINE /oracle/TAQ/sapdata1/sr3701_36/sr3701.data36 2097160192 66 1073938433 NOLINK FILE 0 0 8192
PSAPSR3701 ONLINE* ONLINE /oracle/TAQ/sapdata3/sr3701_1/sr3701.data1 2789220352 20 1073938435 NOLINK FILE 0 0 8192
PSAPSR3701 ONLINE* ONLINE /oracle/TAQ/sapdata3/sr3701_10/sr3701.data10 2810191872 29 1073938435 NOLINK FILE 0 0 8192
PSAPSR3701 ONLINE* ONLINE /oracle/TAQ/sapdata3/sr3701_11/sr3701.data11 2789220352 30 1073938435 NOLINK FILE 0 0 8192
PSAPSR3701 ONLINE* ONLINE /oracle/TAQ/sapdata3/sr3701_12/sr3701.data12 2705334272 31 1073938435 NOLINK FILE 0 0 8192
PSAPSR3701 ONLINE* ONLINE /oracle/TAQ/sapdata3/sr3701_13/sr3701.data13 6123692032 32 1073938435 NOLINK FILE 0 0 8192
PSAPSR3701 ONLINE* ONLINE /oracle/TAQ/sapdata3/sr3701_14/sr3701.data14 2904563712 33 1073938435 NOLINK FILE 0 0 8192
PSAPSR3701 ONLINE* ONLINE /oracle/TAQ/sapdata3/sr3701_15/sr3701.data15 2097160192 45 1073938435 NOLINK FILE 0 0 8192
PSAPSR3701 ONLINE* ONLINE /oracle/TAQ/sapdata3/sr3701_16/sr3701.data16 2097160192 46 1073938435 NOLINK FILE 0 0 8192
PSAPSR3701 ONLINE* ONLINE /oracle/TAQ/sapdata3/sr3701_17/sr3701.data17 2097160192 47 1073938435 NOLINK FILE 0 0 8192
PSAPSR3701 ONLINE* ONLINE /oracle/TAQ/sapdata3/sr3701_18/sr3701.data18 2097160192 48 1073938435 NOLINK FILE 0 0 8192
PSAPSR3701 ONLINE* ONLINE /oracle/TAQ/sapdata3/sr3701_2/sr3701.data2 2747277312 21 1073938435 NOLINK FILE 0 0 8192
PSAPSR3701 ONLINE* ONLINE /oracle/TAQ/sapdata3/sr3701_3/sr3701.data3 3124764672 22 1073938435 NOLINK FILE 0 0 8192
PSAPSR3701 ONLINE* ONLINE /oracle/TAQ/sapdata3/sr3701_4/sr3701.data4 3124764672 23 1073938435 NOLINK FILE 0 0 8192
PSAPSR3701 ONLINE* ONLINE /oracle/TAQ/sapdata3/sr3701_5/sr3701.data5 3208650752 24 1073938435 NOLINK FILE 0 0 8192
PSAPSR3701 ONLINE* ONLINE /oracle/TAQ/sapdata3/sr3701_6/sr3701.data6 2915049472 25 1073938435 NOLINK FILE 0 0 8192
PSAPSR3701 ONLINE* ONLINE /oracle/TAQ/sapdata3/sr3701_7/sr3701.data7 2873106432 26 1073938435 NOLINK FILE 0 0 8192
PSAPSR3701 ONLINE* ONLINE /oracle/TAQ/sapdata3/sr3701_8/sr3701.data8 2873106432 27 1073938435 NOLINK FILE 0 0 8192
PSAPSR3701 ONLINE* ONLINE /oracle/TAQ/sapdata3/sr3701_9/sr3701.data9 2810191872 28 1073938435 NOLINK FILE 0 0 8192
PSAPSR3701 ONLINE* ONLINE /oracle/TAQ/sapdata4/sr3701_37/sr3701.data37 2097160192 68 1073938436 NOLINK FILE 0 0 8192
PSAPSR3701 ONLINE* ONLINE /oracle/TAQ/sapdata4/sr3701_38/sr3701.data38 2097160192 69 1073938436 NOLINK FILE 0 0 8192
PSAPSR3701 ONLINE* ONLINE /oracle/TAQ/sapdata4/sr3701_39/sr3701.data39 2097160192 70 1073938436 NOLINK FILE 0 0 8192
PSAPSR3701 ONLINE* ONLINE /oracle/TAQ/sapdata4/sr3701_40/sr3701.data40 2097160192 71 1073938436 NOLINK FILE 0 0 8192
PSAPSR3701 ONLINE* ONLINE /oracle/TAQ/sapdata4/sr3701_41/sr3701.data41 2097160192 72 1073938436 NOLINK FILE 0 0 8192
PSAPSR3701 ONLINE* ONLINE /oracle/TAQ/sapdata4/sr3701_42/sr3701.data42 2097160192 73 1073938436 NOLINK FILE 0 0 8192
PSAPSR3701 ONLINE* ONLINE /oracle/TAQ/sapdata4/sr3701_43/sr3701.data43 2097160192 74 1073938436 NOLINK FILE 0 0 8192
PSAPSR3701 ONLINE* ONLINE /oracle/TAQ/sapdata4/sr3701_44/sr3701.data44 2097160192 75 1073938436 NOLINK FILE 0 0 8192
PSAPSR3DB ONLINE* ONLINE /oracle/TAQ/sapdata4/sr3db_1/sr3db.data1 2097160192 35 1073938436 NOLINK FILE 0 0 8192
PSAPSR3DB ONLINE* ONLINE /oracle/TAQ/sapdata4/sr3db_2/sr3db.data2 2097160192 36 1073938436 NOLINK FILE 0 0 8192
PSAPSR3DB ONLINE* ONLINE /oracle/TAQ/sapdata4/sr3db_3/sr3db.data3 1048584192 37 1073938436 NOLINK FILE 0 0 8192
PSAPSR3USR ONLINE* ONLINE /oracle/TAQ/sapdata4/sr3usr_1/sr3usr.data1 31465472 34 1073938436 NOLINK FILE 0 0 8192
PSAPTEMP ONLINE# ONLINE /oracle/TAQ/sapdata1/temp_1/temp.data1 1468014592 -1 1073938433 NOLINK FILE 0 0 8192
PSAPUNDO ONLINE- ONLINE /oracle/TAQ/sapdata1/undo_1/undo.data1 5872033792 2 1073938433 NOLINK FILE 0 0 8192
SYSAUX ONLINE* ONLINE /oracle/TAQ/sapdata1/sysaux_1/sysaux.data1 209723392 3 1073938433 NOLINK FILE 0 0 8192
SYSAUX ONLINE* ONLINE /oracle/TAQ/sapdata1/sysaux_2/sysaux.data2 2097160192 67 1073938433 NOLINK FILE 0 0 8192
SYSTEM ONLINE* SYSTEM /oracle/TAQ/sapdata1/system_1/system.data1 891297792 1 1073938433 NOLINK FILE 0 0 8192
SYSTEM ONLINE* SYSTEM /oracle/TAQ/sapdata1/system_2/system.data2 524296192 44 1073938433 NOLINK FILE 0 0 8192
BR0119I Redo log files
File Size Group Device Status Link Type
/oracle/TAQ/origlogA/log_g11m1.dbf 52429824 1 1073872899 INUSE NOLINK FILE
/oracle/TAQ/mirrlogA/log_g11m2.dbf 52429824 1 1073872897 INUSE NOLINK FILE
/oracle/TAQ/origlogB/log_g12m1.dbf 52429824 2 1073872900 INUSE NOLINK FILE
/oracle/TAQ/mirrlogB/log_g12m2.dbf 52429824 2 1073872898 INUSE NOLINK FILE
/oracle/TAQ/origlogA/log_g13m1.dbf 52429824 3 1073872899 INUSE NOLINK FILE
/oracle/TAQ/mirrlogA/log_g13m2.dbf 52429824 3 1073872897 INUSE NOLINK FILE
/oracle/TAQ/origlogB/log_g14m1.dbf 52429824 4 1073872900 INUSE NOLINK FILE
/oracle/TAQ/mirrlogB/log_g14m2.dbf 52429824 4 1073872898 INUSE NOLINK FILE -
Whole database online + redo log backup
Hello all,
we are running SAP on a Oracle Database and doing a daily backup.
In the DBA Planing Calendar, we do have the action
Whole database online + redo log backup
What exactly does that mean?
Thanks,
AnneThis backup will save the CONTENT of the database only, not the database software itself.
To get a full consistent backup you need to backup more things if you want to have everything - depending on the operating system:
On Unix you will need to backup the software directory (/oracle*, oraInventory, oratab (depending on the location)) etc.
On Windows you will need to backup <letter>:\oracle, the registry keys and more things.
However, in case of a recovery you can also install the software after an OS installation and then restore it from tape.
Markus
Maybe you are looking for
-
Creation of a a payment file variant - "RFFOAVIS"
Hi Need help on Creation of a a payment file variant for post finance customer collection (debit direct) Program "RFFOAVIS" Any help mostly appreciated Thanks V.S.K
-
Very slow broadband - can't identify problem
Hi all, My home broadband is running very slow, it is a BT line running into the house, a microfilter plugged into the box with the only corded telephone in the house and a belkin router plugged into it. The phone is also a bit crackly and sometimes
-
Java web start and db connection problem
Hi I have an application that that connects to a db directly using jdbc . The problem i have is that when i start the app thru the web start it shows me this error java.sql.SQLException: Unable to connect to any hosts due to exception: java.security.
-
Lightroom 3 tethered 7d file naming
I know there's other things similar to this that say 'known issue'... I figured I'd write this to help clear up what I was seeing. Hopefully it's not all currently known, but if nothing else hopefully the next person googling finds this info useful.
-
Good morning, I turned on my Mac this am and none of my desktop icons are showing up, and my iTunes app is gone. Is this a common problem or should I take it in to the Apple store for repairs?