Online redo logs vs backup
Below quoted sentence is from Oracle documentation
"Online redo logs, unlike archived logs, should never be backed up. The chief danger
associated by having backups of online redo logs is that you may accidentally restore
those backups without meaning to, and corrupt your database"
Can any one explain , how the database will be corrupted if we backup online redo logs. I am having a hard time to understand this quote
thanks for your help
shajan
Redo log file contents is very dynamic. It changes minute after minute, so a backup is useless if you try to do it online. (In fact there is no command to perform such backup).
Let's suppose you shutdown (normal, immediate or transactional) The contents of the redo log files become useless as the checkpoint process has already taken place, so it is enough to have a copy of all of the consistent datafiles to have the last applied transaccion.
In a recovery scenario with archivelog it is important to keep all of the requiered archivelog files plus all of the online redo log files.
In case of a missing logfile it is useless to have a backup of it. If you ever had one, and you tried to restore it, an error would arise, warning you that the contents of the logfile is inconsistent with the expected scn. The only way you can succeed is to have them multiplexed and have them on different paths, just to reduce to probability of loosing all of the members of a group.
rman does not perform backup of redo log files. Classical theory of backup/recovery states that during a hot backup it must be backed up the archive log files, not the redo log files.
Similar Messages
-
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 -
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. -
Status of online redo log file INVALID warning appears during online backup
Hi All,
I have a peculiar problem in one of the SAP ECC 6.0 systems. The daily online backup is getting completed with warnings.
Please find below the warnings in DB12 logs:
BR0335W Status of online redo log file /oracle/AS0/mirrlogB/log_g18m2.dbf is INVALID
BR0274W File '/oracle/AS0/mirrlogB/log_g18m2.dbf' not found
BR0335W Status of online redo log file /oracle/AS0/mirrlogA/log_g50_m2.dbf is INVALID
BR0274W File '/oracle/AS0/mirrlogA/log_g50_m2.dbf' not found
BR0335W Status of online redo log file /oracle/AS0/mirrlogB/log_g51_m2.dbf is INVALID
BR0274W File '/oracle/AS0/mirrlogB/log_g51_m2.dbf' not found
BR0335W Status of online redo log file /oracle/AS0/mirrlogA/log_g52_m2.dbf is INVALID
BR0274W File '/oracle/AS0/mirrlogA/log_g52_m2.dbf' not found
BR0335W Status of online redo log file /oracle/AS0/mirrlogA/log_g53_m2.dbf is INVALID
BR0274W File '/oracle/AS0/mirrlogA/log_g53_m2.dbf' not found
BR0335W Status of online redo log file /oracle/AS0/mirrlogA/log_g54_m2.dbf is INVALID
BR0274W File '/oracle/AS0/mirrlogA/log_g54_m2.dbf' not found
BR0335W Status of online redo log file /oracle/AS0/mirrlogA/log_g55_m2.dbf is INVALID
BR0274W File '/oracle/AS0/mirrlogA/log_g55_m2.dbf' not found
BR0335W Status of online redo log file /oracle/AS0/mirrlogA/log_g56_m2.dbf is INVALID
BR0274W File '/oracle/AS0/mirrlogA/log_g56_m2.dbf' not found
BR0335W Status of online redo log file /oracle/AS0/mirrlogB/log_g57_m2.dbf is INVALID
BR0274W File '/oracle/AS0/mirrlogB/log_g57_m2.dbf' not found
BR0335W Status of online redo log file /oracle/AS0/mirrlogA/log_g58_m2.dbf is INVALID
BR0274W File '/oracle/AS0/mirrlogA/log_g58_m2.dbf' not found
BR0335W Status of online redo log file /oracle/AS0/mirrlogB/log_g59_m2.dbf is INVALID
BR0274W File '/oracle/AS0/mirrlogB/log_g59_m2.dbf' not found
For the above mentioned alerts I followed the recommendations of SAP Note 491160. I dropped and recreated the mirrorlog files. But the next day again when I checked the backup it finished with warnings. At the database level there is no problem
SQL> select * from v$logfile;
GROUP# STATUS TYPE
MEMBER
IS_
59 ONLINE
/oracle/AS0/origlogB/log_g59_m1.dbf
NO
59 ONLINE
/oracle/AS0/mirrlogB/log_g59_m2.dbf
NO
GROUP# STATUS TYPE
MEMBER
IS_
58 ONLINE
/oracle/AS0/origlogA/log_g58_m1.dbf
NO
58 ONLINE
/oracle/AS0/mirrlogA/log_g58_m2.dbf
GROUP# STATUS TYPE
MEMBER
IS_
NO
57 ONLINE
/oracle/AS0/origlogB/log_g57_m1.dbf
NO
57 ONLINE
GROUP# STATUS TYPE
MEMBER
IS_
/oracle/AS0/mirrlogB/log_g57_m2.dbf
NO
56 ONLINE
/oracle/AS0/origlogA/log_g56_m1.dbf
NO
GROUP# STATUS TYPE
MEMBER
IS_
56 ONLINE
/oracle/AS0/mirrlogA/log_g56_m2.dbf
NO
55 ONLINE
/oracle/AS0/origlogA/log_g55_m1.dbf
NO
54 ONLINE
/oracle/AS0/origlogA/log_g54_m1.dbf
GROUP# STATUS TYPE
MEMBER
IS_
NO
54 ONLINE
/oracle/AS0/mirrlogA/log_g54_m2.dbf
NO
53 ONLINE
GROUP# STATUS TYPE
MEMBER
IS_
/oracle/AS0/origlogA/log_g53_m1.dbf
NO
53 ONLINE
/oracle/AS0/mirrlogA/log_g53_m2.dbf
NO
GROUP# STATUS TYPE
MEMBER
IS_
52 ONLINE
/oracle/AS0/origlogA/log_g52_m1.dbf
NO
52 ONLINE
/oracle/AS0/mirrlogA/log_g52_m2.dbf
NO
GROUP# STATUS TYPE
MEMBER
IS_
51 ONLINE
/oracle/AS0/origlogB/log_g51_m1.dbf
NO
51 ONLINE
/oracle/AS0/mirrlogB/log_g51_m2.dbf
GROUP# STATUS TYPE
MEMBER
IS_
NO
50 ONLINE
/oracle/AS0/origlogA/log_g50_m1.dbf
NO
50 ONLINE
GROUP# STATUS TYPE
MEMBER
IS_
/oracle/AS0/mirrlogA/log_g50_m2.dbf
NO
8 ONLINE
/oracle/AS0/origlogB/log_g18m1.dbf
As you can see from the above output at the database level everything is fine. So why during backup it is giving me warnings in DB12. Any help with this regard will be appreciated.
Regards
Mitesh NairHi Joe,
My OS is HP-UX. I dont think its a permission problem. Please find below the contents of origlogA and mirrlogA
predbci2:/oracle/AS0/origlogA#ls -rtl
total 1433712
drwxrwxrwx 2 oraas0 dba 96 Oct 15 03:27 cntrl
-rw-rw---- 1 oraas0 dba 104858624 Dec 4 01:50 log_g52_m1.dbf
-rw-rw---- 1 oraas0 dba 104858624 Dec 4 03:51 log_g50_m1.dbf
-rw-rw---- 1 oraas0 dba 104858624 Dec 4 05:51 log_g54_m1.dbf
-rw-rw---- 1 oraas0 dba 104858624 Dec 4 07:52 log_g53_m1.dbf
-rw-rw---- 1 oraas0 dba 104858624 Dec 4 09:50 log_g55_m1.dbf
-rw-rw---- 1 oraas0 dba 104858624 Dec 4 10:50 log_g56_m1.dbf
-rw-rw---- 1 oraas0 dba 104858624 Dec 4 12:41 log_g58_m1.dbf
predbci2:/oracle/AS0/mirrlogA#ls -rtl
total 1433728
-rw-rw---- 1 oraas0 dba 104858624 Dec 4 01:50 log_g52_m2.dbf
-rw-rw---- 1 oraas0 dba 104858624 Dec 4 03:51 log_g50_m2.dbf
-rw-rw---- 1 oraas0 dba 104858624 Dec 4 05:51 log_g54_m2.dbf
-rw-rw---- 1 oraas0 dba 104858624 Dec 4 07:52 log_g53_m2.dbf
-rw-rw---- 1 oraas0 dba 104858624 Dec 4 09:50 log_g55_m2.dbf
-rw-rw---- 1 oraas0 dba 104858624 Dec 4 10:50 log_g56_m2.dbf
-rw-rw---- 1 oraas0 dba 104858624 Dec 4 12:41 log_g58_m2.dbf
Regards
Mitesh -
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 -
Hi All
Can you please explain for me the main reason that we do not have to backup the online redo log using RMAN ?
ThanksThe online redo logfiles are necessary to perform a complete recovery of the database. During database recovery, Oracle will apply the archived redo logfiles and online redo logfiles to roll the database forward and finally remove uncommitted transactions. If any of the online redo logfile group is active and missing, the database recovery will be incomplete and the database needs to be opened with restlogs, causing a new database incarnation.
You have to shutdown the datrabase to be able to perform a backup of the online redo logfiles, or find another method to create a time based snapshot of the data to prevent data movement while the redo logfiles are in use in order to keep datafile headers, controlfile and redo logfiles in sync. It is for that reason that you multiplex and mirror redo logfiles. -
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 -
Full Online + REDO Log backup failing
Hi Experts,
We have a failing backup when running a 'Full Online + REDO Logs' scheduled via DB13 (ERP6/Windows 2008/Oracle 10.2.0.4)
Whilst it is successful in backing up the datafiles and the REDO logs to the remote destination, it fails to catalog the backup, displaying the following message:
ORA-19625: error identifying file
Backup_Destination\BEFSDJTA\SR3.DATA10
ORA-27041: unable to open file
OSD-04002: unable to open file
O/S-Error: (OS 5) Access is denied.
RMAN>
Recovery Manager complete.
BR0280I BRBACKUP time stamp: 2011-04-21 07.20.49
BR0279E Return code from 'F:\oracle\SID\102\BIN\rman nocatalog': 1
BR0536E RMAN call for database instance EQ1 failed
BR0280I BRBACKUP time stamp: 2011-04-21 07.20.49
BR0532E Cataloging backups of all database files failed
From what I understand, RMAN runs under the OracleService<SID> service, which calls the oracle.exe process, which is owned by the local user SYSTEM. This accounts for the access denied problem when accessing the remote destination using the RMAN utility.
As a test, I'm aware that if I change the ownership of oracle.exe to a non-local, domain user (<SID>adm), I can run RMAN commands without the permission denied error occuring. (performed this on a Sandbox)
The problem when I use this <SID>adm account as the oracle.exe owner, is that the SAP application Work Processes won't connect to oracle.
My questions are:
Is it a valid workaround to change the process owner of oracle.exe to something other than the local SYSTEM user?
If so, what are the criteria that need to be met for the new domain user to ensure that the SAP application is stable?
Does anyone know of an alternative workaround?
Thanks,
Chris WHi Markus,
Thanks for the response.
I've managed to get the SAP application to run with Oracle using the <SID>adm account as the OracleService<SID> owner.
The original problem with the SAP work processes in connecting with the Oracle database was due to the Oracle listener services also being owned by local user SYSTEM.
I changed the listener services ownership to <SID>adm (as well as the OracleService<SID>) and this allowed the connection between the SAP work processes and Oracle.
Also, I gave the domain <SID>adm account local administrator rights (same as SYSTEM) and have seen no problems since the switch.
I can also access a remote host using the RMAN utility - problem appears to be solved.
Chris -
Regarding Online Redo log backup
Dear all,
I am running "Whole database online + Redo log backup" in production server which running successfully with return code 0000.
Is this backup takes online redo log file also?????? because in backup log i didn't see any directory like .../../orilog A, .../../orilog B etc which contains online redo log file.
Without this online redo log backup i don't thing we can do point to point recovery.
I am beginner for oracle so please clear this doubt.
thanks,
TarunTarun verma wrote:
> Oraarch having offline redo log file and saparch having redo log backup log file, but both of this related to offline redo log backup.
>
> I want to know about online redolog backup??? Is it possible to take or not??? and how we can check online redo log backup is running or not??
You have offline redo log files in 'oraarch' --> this means that 'online redo logs' are getting backed up into 'oraarch'.
sql > archive log list
http://www.adp-gmbh.ch/ora/sqlplus/archive_log.html
Above command tells whether the logging is ON or not. If it is ON, then online logs will be generated w.r.t. every sap work and as soon as the online logs gets filled up - it gets backed up into 'oraarch' - to accommodate more logging with time.
Thanks -
can u we take online redo log backups using RMAN.....in 1og
'Backup' solution for online redo logs is multiplexing (members of a group on different independent drives).
Werner -
Can we use online redo log to recover lost datafile in NOARCHIVE mode?
I am working on OCA exam and confued about these 2 sample questions. (similar questions with totally different answer)
Please give me hint about the different between these 2 questions.
** If the database is in NOARCHIVELOG mode, and one of the datafile for tablespace USERS is lost, what kind of recovery is possible? (answer: B)
A. All transactions except those in the USERS tablespace are recoverable up to the loss of the datafile.
B. Recovery is possible only up to the point in time of the last full database backup.
C. The USERS tablespace is recoverable from the online redo log file as long as none of the redo log files have been reused since the last backup.
D. Tablespace point in time recovery is available as long as a full backup of the USERS tablespace exists.
** The database of your company is running in the NOARCHIVELOG mode. You perform a complete backup of the database every night. On Monday morning, you lose the USER1.dbf file belonging to the USERS tablespace. Your database has four redo log groups, and there have been two log switches since Sunday night's backup.
Which is true (answer: B)
A. The database cannot be recovered.
B. The database can be recovered up to the last commit.
C. The database can be recovered only up to the last completed backup.
D. The database can be recovered by performing an incomplete recovery.
E. The database can be recovered by restoring only the USER!.dbf datafile from the most recent backup.I think Gaurav is correct, you can recover to the last commit even in NOARCHIVELOG, as long as all the changes in the redo logs have not been overwritten. So answer should be B for question 2.
Here is my test:
SQL> select log_mode from v$database;
LOG_MODE
NOARCHIVELOG
SQL> select tablespace_name, file_name from dba_data_files;
TABLESPACE_NAME
FILE_NAME
USERS
C:\ORACLE\PRODUCT\10.2.0\ORADATA\ORA101RC\USERS01.DBF
SYSAUX
C:\ORACLE\PRODUCT\10.2.0\ORADATA\ORA101RC\SYSAUX01.DBF
UNDOTBS1
C:\ORACLE\PRODUCT\10.2.0\ORADATA\ORA101RC\UNDOTBS01.DBF
SYSTEM
C:\ORACLE\PRODUCT\10.2.0\ORADATA\ORA101RC\SYSTEM01.DBF
DATA
C:\ORACLE\PRODUCT\10.2.0\ORADATA\ORA101RC\DATA01.DBF
SQL> create table names
2 ( name varchar(16))
3 tablespace users;
Table created.
so this segment 'names' is created in the datafile users01.
At this point I shut down and mount the DB, then:
RMAN> backup database;
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:29
Finished backup at 06-OCT-07
SQL>alter database open
SQL> insert into names values ('pippo');
1 row created.
SQL> commit;
Commit complete.
SQL>shutdown immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.
At this point I delete datafile users01 and restart:
SQL> startup
ORACLE instance started.
Total System Global Area 167772160 bytes
Fixed Size 1247900 bytes
Variable Size 67110244 bytes
Database Buffers 96468992 bytes
Redo Buffers 2945024 bytes
Database mounted.
ORA-01157: cannot identify/lock data file 4 - see DBWR trace file
ORA-01110: data file 4: 'C:\ORACLE\PRODUCT\10.2.0\ORADATA\ORA101RC\USERS01.DBF'
restoring the backup taken before inserting the value 'pippo' in table names:
RMAN> restore database;
Starting restore at 06-OCT-07
using channel ORA_DISK_1
channel ORA_DISK_1: starting datafile backupset restore
channel ORA_DISK_1: specifying datafile(s) to restore from backup set
restoring datafile 00001 to C:\ORACLE\PRODUCT\10.2.0\ORADATA\ORA101RC\SYSTEM01.D
BF
restoring datafile 00002 to C:\ORACLE\PRODUCT\10.2.0\ORADATA\ORA101RC\UNDOTBS01.
DBF
restoring datafile 00003 to C:\ORACLE\PRODUCT\10.2.0\ORADATA\ORA101RC\SYSAUX01.D
BF
restoring datafile 00004 to C:\ORACLE\PRODUCT\10.2.0\ORADATA\ORA101RC\USERS01.DB
F
restoring datafile 00005 to C:\ORACLE\PRODUCT\10.2.0\ORADATA\ORA101RC\DATA01.DBF
channel ORA_DISK_1: reading from backup piece C:\ORACLE\PRODUCT\10.2.0\DB_1\DATA
BASE\0AITR52K_1_1
channel ORA_DISK_1: restored backup piece 1
piece handle=C:\ORACLE\PRODUCT\10.2.0\DB_1\DATABASE\0AITR52K_1_1 tag=TAG20071006
T181337
channel ORA_DISK_1: restore complete, elapsed time: 00:02:07
Finished restore at 06-OCT-07
RMAN> recover database;
Starting recover at 06-OCT-07
using channel ORA_DISK_1
starting media recovery
media recovery complete, elapsed time: 00:00:05
Finished recover at 06-OCT-07
SQL> alter database open;
Database altered.
SQL> select * from names;
NAME
pippo
SQL>
enrico -
Application of online redo logs
Dear all,
In my organisation recently standby database has been configured. Now my task is to restore a full online+redo backup which is created in primary database in the standby database. Once it is over I have to apply the newly created redo logs generated after the online backup.
I am planning to restore the online+redo backup using the following command
brrestore -b "BRBACKUP log file" -m full. Once it is done I have to apply the online redo logs. I am confused how to apply manually the newly created redo logs. Is there any document regarding it. I searched and found many information in net but nothing seems to be very convincing as this is a critical activity.
Best Regards,
TapanHello Tapan,
> brrestore -b "BRBACKUP log file" -m full. Once it is done I have to apply the online redo logs.
Bad idea, you need a standby controlfile and not a backup controlfile on the standby site.
> I am confused how to apply manually the newly created redo logs. Is there any document regarding it.
You can do this manually by your own or by Oracle Dataguard.
I would suggest that you get a training on Oracle Dataguard and then you will understand the concepts and will be able to setup a DR solution. It makes not much sense to explain you all the steps and the functions, because of in a critical moment you should know what to do and why.
If you really want to try it by your own - so start with this:
http://download.oracle.com/docs/cd/B19306_01/server.102/b14239/toc.htm
http://download.oracle.com/docs/cd/B19306_01/server.102/b14230/toc.htm
Regards
Stefan -
Online Redo logs instead of Standby Redo logs
RDBMS Version: 11.2.0.3/Platform : RHEL 6.3
To migrate a 3TB Database to a new DB server , we are going to use RMAN DUPLICATE.
Step1. Take full backup of DB + Standby Control file at primary site and transfer the Bkp files to Standby site
Step2. At standy site, we will run the RMAN duplicate target database for standby
After the above step, we don't want to create the standby redo logs because the newly restored DB in standby server is going to be the new Prod DB which application will be pointing to.
So, Can I skip the Standby Redo log creation part and create Online redo logs instead ?
As mentioned earlier, Our objective is not to create a proper Dataguard Standby DB setup. We just want to clone our DB to another server using RMAN Duplicate.Tom wrote:
RDBMS Version: 11.2.0.3/Platform : RHEL 6.3
To migrate a 3TB Database to a new DB server , we are going to use RMAN DUPLICATE.
Step1. Take full backup of DB + Standby Control file at primary site and transfer the Bkp files to Standby site
Step2. At standy site, we will run the RMAN duplicate target database for standby
After the above step, we don't want to create the standby redo logs because the newly restored DB in standby server is going to be the new Prod DB which application will be pointing to.
So, Can I skip the Standby Redo log creation part and create Online redo logs instead ?
As mentioned earlier, Our objective is not to create a proper Dataguard Standby DB setup. We just want to clone our DB to another server using RMAN Duplicate.
Hi,
Take full backup of DB + Standby Control
We just want to clone our DB to another server using RMAN Duplicate
If you want only clone database of production, why you are take Standby controlfile?
If you don't want create standby database then, why you using DUPLICATE command with FOR STANDBY option.
You can use DUPLICATE command for clone database, without for standby option.
If you say no, we want create standby database and we will perform swithover,
then yes, you can use online redo logs for max performance mode.
and you can create standby redo logs on all database, but this redo logs will use by database when database role
is standby.
Regards
Mahir M. Quluzade -
Online redo log group needed??
hey guys!
Am about to recreate the clone file of the clone db, open it using recover it until cancel using backup controlfile and apply all necessary archive logs!
My question is, does ai need to have online redo log group of the production db? since ai have all the archive log, so ai think while recraeting the control file, online redo log group will be created too?
Thanks!while recraeting the control file, online redo log group will be created tooWhile creating control file, online redo log group doesn't get created. After applying all the archivel logs you have to open the database with RESET LOG option and then oracle will create redo logs for you.
Best of Luck !!
Daljit Singh -
Windows Modified date for online redo logs
I am doing a full database backup (oracle 10g) weekly and incremental backups nightly. The database is running in archivelog mode and I am multiplexing the online redo logs. However, when I look in windows the modified date for all Redo logs is displayed at the time the database was started up (Sunday night)... datafiles, controlfiles etc... show the latest modified date correctly.
Is this normal that the modified date is not updating on redo logs or do I need to do something else to ensure my online redo is operating correctly.
Any help would be appreciated.Redo3 was the setting before the switch... redo1 is now the current log. As regards the alert log... what file should I check... there is nothing showing in OEM.
MEMBER
GROUP# STATUS
D:\ORACLE\PRODUCT\ORADATA\WATLI1\REDO03.LOG
3 ACTIVE
D:\ORACLE\PRODUCT\ORADATA\WATLI1\REDO02.LOG
2 INACTIVE
D:\ORACLE\PRODUCT\ORADATA\WATLI1\REDO01.LOG
1 CURRENT
MEMBER
GROUP# STATUS
E:\BACKUP\ONLINELOGS\REDO01_A.LOG
1 CURRENT
E:\BACKUP\ONLINELOGS\REDO02_A.LOG
2 INACTIVE
E:\BACKUP\ONLINELOGS\REDO03_A.LOG
3 ACTIVE
Maybe you are looking for
-
Not able to get the data from variables contained in more than 1 mxml file
I have got 5 Bindable Public integer variables in total in 5 mxml files (Pages). Each variable is assigned it's value in a Public function in each of the mxml files. What I need to do is add up the values of the 5 variables. The way I approached this
-
I've been trying fresh installation of SQL Server 2008 R2 enterprise on Windows Server 2012 R2 standard VM server several times for two weeks, but always get the error "Attempted to perform an unauthorized operation". At first, I attempted to install
-
Sales order not showing in VKM1 & VKM3
Hi All, Sales document blocked for credit check, Status (VBUK) "B" is updated. But sales document number is not showing in VKM1 and VKM3 release t codes. Header Credit status : Not approved. Pricing and documents perfectly completed. No issue logs
-
Firefox starts but will not open on desktop. Win7 - 64bit
Windows 7, 64 bit OS. Installed Firefox 3.6. Firefox.exe shows in task manager "Processes", but does not show as an open application, nor on the desktop, nor in the trays. Same issue under multiple profiles. Works fine on other machines.
-
My sync is not working ... i am told it's my corporate firewall but cannot locate any info on which port, ip or URL to give to my IT guys. HELP