Why Redo log files not backup
Hi everyone,
I have a scenario where the my DB is running in archivelog mode and users are making changes to DB as usual, and all of a sudden my db crashes due to some power outage or failed disks or something bad..
Now my DB is inconsistent i can't access my DB due to a failed disk. I need to perform a complete recovery of the database as the database is in archivelog mode I can restore from a previous backup and apply the redo from the archived logfiles. Here comes my doubt what about the current online redologfile that has not been archived and which contain info about the commited transaction. how to recover the db upto the point of failure. help need in this situation..
Edited by: user8710159 on Feb 14, 2010 1:18 PM
user8710159 wrote:
Hi everyone,
I have a scenario where the my DB is running in archivelog mode and users are making changes to DB as usual, and all of a sudden my db crashes due to some power outage or failed disks or something bad..
Now my DB is inconsistent i can't access my DB due to a failed disk. I need to perform a complete recovery of the database as the database is in archivelog mode I can restore from a previous backup and apply the redo from the archived logfiles. Here comes my doubt what about the current online redologfile that has not been archived and which contain info about the commited transaction. how to recover the db upto the point of failure. help need in this situation..
Edited by: user8710159 on Feb 14, 2010 1:18 PMIf you still had a viable copy of the online redo and current control file, the recover would apply them as well. Without them, you'll have to do an incomplete recovery and reset logs.
Which is why you always want to multiplex your control file and online redo - and have the multiplexed copies as physically separate as possible. Those multiplexed copies are your backup for the online redo logs that have not yet been archived.
Edited by: EdStevens on Feb 14, 2010 5:07 PM
Similar Messages
-
hello.............
how can we see the redo log file is empty and full. is there any view to see this.Anand... wrote:
Hi
how can we see the redo log file is empty and full. is there any view to see this.I would definitely like to know - Why?
AnandMy reaction exactly.
To the OP: What technical or business decision will be based on knowing if a redo log file is empty or full? BTW, notice I said <b><i><u>a</u></i></b> redo log file, not <b><i><u>the</u></i></b> redo log file. There is never just one redo log file. -
What is the difference between undo tablespace and online redo log files.
what is the difference between undo tablespace and online redo log files. I am confused
as per my knowledge undo tablespace is used to store the undo information when a table is being updated so that, just incase we need to rollback a transaction we know what was present in the table earlier.
when a transaction fails the SMON performs the rollback of the data.
This undo data is stored in the undo tablespace and read consistency if any is enforced.
is my understanding till here correct?
Now, can this undo data/before image not be stored in the redo log buffer and online redolog files?
can redo-log files not store this information?
in fact, is it that when undo tablespaces exist in a database, the undo data/before image is stored in both the undo tablespace and also the redo log files?
kindly clarify my doubt.
thank you.This question has been asked many times before. The answer is always the same.
Yes, redo contains the before image of data (and the after-image). Therefore, it **COULD** be used to roll back a transaction.
BUT... Redo is written sequentially. Using it to rollback your transaction would involve reading through all the redo written by maybe thousands of other people. It would be painfully slow.
Your transaction is, however, directly linked to just the UNDO that it generates (which is JUST the before image of the data). So, your undo is your undo and doesn't share space with anyone else's undo. Therefore, using it to roll back YOUR transaction is fast.
The fact that undo is only the before image of the data also makes it faster than wading through a sea of before and AFTER images as you'd find in redo. About twice as fast, in fact, since there's half the data. Roughly.
Redo also gets written and flushed to disk whenever there's a commit, 3 seconds are up or too much (1MB, actually) redo gets generated between flushes caused by other factors. Your redo gets flushed when those things happen, even if you haven't actually committed your transaction. And redo logs recycle themselves, meaning that your redo -even if your transaction hasn't been committed yet- can be over-written by later transactions. Try rolling back when that's happened, if redo was the source of your rollback data!
Undo, however, cannot be over-written if the transaction has not been committed. Ever. If you don't commit for three years, there will be three years' undo stored in your database (assuming you had the space, of course!).
I could go on, but that will do. Redo is there fore RECOVERY, after catastrophe. Undo is there for read-consistency (and the occasional change of mind). Two different functions. Two different mechanisms. Each one highly tuned to doing what it does, why it does it, most efficiently and effectively. -
Bottleneck when switching the redo log files.
Hello All,
I am using Oracle 11.2.0.3.
The application team reported that they are facing slowness at certain time.
I monitored the database and I found that at some switching of the redo log files (not always) I am facing a slowness at the application level.
I have 2 threads since my database is RAC, each thread have 3 redo log groups multiplexed to the FRA, with size 300 MB each.
Is there any way to optimize the switch of redo log files? knowing that my database is running in ARCHIVELOG mode.
Regards,Hello Nikolay,
Thanks for your input I am sharing with you the below information. I have 2 instances so I will provide the info from each instance
Instance 1:
Load Profile Per Second Per Transaction Per Exec Per Call
~~~~~~~~~~~~ --------------- --------------- ---------- ----------
DB Time(s): 4.9 0.0 0.00 0.00
DB CPU(s): 1.1 0.0 0.00 0.00
Redo size: 3,014,876.2 3,660.4
Logical reads: 32,619.3 39.6
Block changes: 7,969.0 9.7
Physical reads: 0.2 0.0
Physical writes: 164.0 0.2
User calls: 7,955.4 9.7
Parses: 288.9 0.4
Hard parses: 96.0 0.1
W/A MB processed: 0.2 0.0
Logons: 0.9 0.0
Executes: 2,909.4 3.5
Rollbacks: 0.0 0.0
Instance 2:
Load Profile Per Second Per Transaction Per Exec Per Call
~~~~~~~~~~~~ --------------- --------------- ---------- ----------
DB Time(s): 5.5 0.0 0.00 0.00
DB CPU(s): 1.4 0.0 0.00 0.00
Redo size: 3,527,737.9 3,705.7
Logical reads: 29,916.5 31.4
Block changes: 8,893.7 9.3
Physical reads: 0.2 0.0
Physical writes: 194.0 0.2
User calls: 7,742.8 8.1
Parses: 262.7 0.3
Hard parses: 99.5 0.1
W/A MB processed: 0.4 0.0
Logons: 1.0 0.0
Executes: 2,822.5 3.0
Rollbacks: 0.0 0.0
Transactions: 952.0
Instance 1:
Top 5 Timed Foreground Events
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Avg
wait % DB
Event Waits Time(s) (ms) time Wait Class
DB CPU 1,043 21.5
log file sync 815,334 915 1 18.9 Commit
gc buffer busy acquire 323,759 600 2 12.4 Cluster
gc current block busy 215,132 585 3 12.1 Cluster
enq: TX - row lock contention 23,284 264 11 5.5 Applicatio
Instance 2:
Top 5 Timed Foreground Events
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Avg
wait % DB
Event Waits Time(s) (ms) time Wait Class
DB CPU 1,340 24.9
log file sync 942,962 1,125 1 20.9 Commit
gc buffer busy acquire 377,812 594 2 11.0 Cluster
gc current block busy 211,270 488 2 9.1 Cluster
enq: TX - row lock contention 30,094 299 10 5.5 Applicatio
Instance 1:
Operating System Statistics Snaps: 1016-1017
-> *TIME statistic values are diffed.
All others display actual values. End Value is displayed if different
-> ordered by statistic type (CPU Use, Virtual Memory, Hardware Config), Name
Statistic Value End Value
AVG_BUSY_TIME 17,451
AVG_IDLE_TIME 81,268
AVG_IOWAIT_TIME 1
AVG_SYS_TIME 6,854
AVG_USER_TIME 10,548
BUSY_TIME 420,031
IDLE_TIME 1,951,741
IOWAIT_TIME 288
SYS_TIME 165,709
USER_TIME 254,322
LOAD 3 6
OS_CPU_WAIT_TIME 523,000
RSRC_MGR_CPU_WAIT_TIME 0
VM_IN_BYTES 311,280
VM_OUT_BYTES 75,862,008
PHYSICAL_MEMORY_BYTES 62,813,896,704
NUM_CPUS 24
NUM_CPU_CORES 6
NUM_LCPUS 24
NUM_VCPUS 6
GLOBAL_RECEIVE_SIZE_MAX 4,194,304
GLOBAL_SEND_SIZE_MAX 4,194,304
TCP_RECEIVE_SIZE_DEFAULT 16,384
TCP_RECEIVE_SIZE_MAX 9.2233720368547758E+18
TCP_RECEIVE_SIZE_MIN 4,096
TCP_SEND_SIZE_DEFAULT 16,384
TCP_SEND_SIZE_MAX 9.2233720368547758E+18
TCP_SEND_SIZE_MIN 4,096
Operating System Statistics - Detail Snaps: 1016-101
Snap Time Load %busy %user %sys %idle %iowait
22-Aug 11:33:55 2.7 N/A N/A N/A N/A N/A
22-Aug 11:50:23 6.2 17.7 10.7 7.0 82.3 0.0
Instance 2:
Operating System Statistics Snaps: 1016-1017
-> *TIME statistic values are diffed.
All others display actual values. End Value is displayed if different
-> ordered by statistic type (CPU Use, Virtual Memory, Hardware Config), Name
Statistic Value End Value
AVG_BUSY_TIME 11,823
AVG_IDLE_TIME 86,923
AVG_IOWAIT_TIME 0
AVG_SYS_TIME 4,791
AVG_USER_TIME 6,991
BUSY_TIME 475,210
IDLE_TIME 3,479,382
IOWAIT_TIME 410
SYS_TIME 193,602
USER_TIME 281,608
LOAD 3 6
OS_CPU_WAIT_TIME 615,400
RSRC_MGR_CPU_WAIT_TIME 0
VM_IN_BYTES 16,360
VM_OUT_BYTES 72,699,920
PHYSICAL_MEMORY_BYTES 62,813,896,704
NUM_CPUS 40
NUM_CPU_CORES 10
NUM_LCPUS 40
NUM_VCPUS 10
GLOBAL_RECEIVE_SIZE_MAX 4,194,304
GLOBAL_SEND_SIZE_MAX 4,194,304
TCP_RECEIVE_SIZE_DEFAULT 16,384
TCP_RECEIVE_SIZE_MAX 9.2233720368547758E+18
TCP_RECEIVE_SIZE_MIN 4,096
TCP_SEND_SIZE_DEFAULT 16,384
TCP_SEND_SIZE_MAX 9.2233720368547758E+18
TCP_SEND_SIZE_MIN 4,096
Operating System Statistics - Detail Snaps: 1016-101
Snap Time Load %busy %user %sys %idle %iowait
22-Aug 11:33:55 2.6 N/A N/A N/A N/A N/A
22-Aug 11:50:23 5.6 12.0 7.1 4.9 88.0 0.0
------------------------------------------------------------- -
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 -
Redo log file corupted, database not getting open
I am Oracle Funda-1 student.
Have install standard Oracle 9I on Windows XP pro service pack 2.
I made some changes in sample table & given commit. So log buffer will flush to redo log file.
Then I open current redo log file from OS & selected all junk characters [select all] & deleted same. Save the file. Causing redo file size 0KB.
Then made more changes to table & issue commit. no errors ! every thing working file.
Even chked V$log & V$logfile.
Again I open current redo log file from OS & selected all junk characters [ select all ] & deleted same. Save the file. Causing redo file size 0KB.
Then issue manual log switch. Alter system switch logfile
I got disconnected from database & database was close.
When I reconnected & try to open database in normal mode. Gave error saying redolog_1.log is corrupted & needed for recovery.
Now not even allowing me clear redo group 1. with alter database clear logfile group 1. as database is not coming to open stage.
just able to mount the database. with error rdolog_1 corrupted.
Wasn't oracle suppose to be halted when very 1st time I corrupted redo log file.
Why it disconnected me & got close.
When then one use alter database clear logfile group 1.I may try this ALTER DATABASE OPEN RESETLOGS;
As no backup & not multiplex.
Still looking for explanation why database got close down instead of getting halt.
I have found one more status in V$log, which is not given in Oracle university book or online document.
INVALIDATED
Which come as a result when oracle unable to switch to next on line group due to non availability of next group redo log physical file.
SQL> select group#,members,status from V$log;
GROUP# MEMBERS STATUS
1 1 INVALIDATED
2 1 INACTIVE
4 1 UNUSED
As matter of fact, it's only portion of a big
document which happen to cover what you are testing
in detail.
I would invest time to read the document to
understand how things work instead of getting dirty
quick answers. -
Redo log files are not applying to standby database
Hi everyone!!
I have created standby database on same server ( windows XP) and using oracle 11g . I want to synchronize my standby database with primary database . So I tried to apply redo logs from primary to standby database as follow .
My standby database is open and Primary database is not started (instance not started) because only one database can run in Exclusive Mode as DB_NAME is same for both database. I run the following command on the standby database.
SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE DISCONNECT FROM SESSION;
It returns "Database altered" . But when I checked the last archive log on primary database, its sequence is 189 while on standby database it is 177. That mean archived redo logs are not applied on standby database.
The tnsnames.ora file contains entry for both service primary & standby database and same service has been used to transmit and receive redo logs.
1. How to resolve this issue ?
2.Is it compulsory to have Primary database open ?
3. I have created standby control file by using command
SQL> ALTER DATABASE CREATE STANDBY CONTROLFILE AS ‘D:\APP\ORACLE\ORADATA\TESTCAT\CONTROLFILE\CONTROL_STAND1.CTL‘;
So database name in the standby control file is same as primary database name (PRIM). And hence init.ora file of standby database also contains DB_NAME = 'PRIM' parameter. I can't change it because it returns error of mismatch database name on startup. Should I have different database name for both or existing one is correct ?
Can anybody help me to come out from this stuck ?
Thanks & Regards
Tushar LapaniThank you Girish. It solved my redo apply problem. I set log_archive_dest parameter again and then I checked archive redo log sequence number. It was same for both primary and standby database. But still table on standby database is not being refresh.
I did following scenario.
1. Inserted 200000 rows in emp table of Scott user on Primary database and commit changes.
2. Then I synchronized standby database by using Alter database command. And I also verify that archive log sequence number is same for both database. It mean archived logs from primary database has been applied to standby database.
3. But when I count number of rows in emp table of scott user on standby database, it returns only 14 rows even of redo log has been applied.
So my question is why changes made to primary database is not reflected on standby database although redo logs has been applied ?
Thanks -
BRARCHIVE backup for high volume offline redo log files on Standby Database
Hi All,
We are through with all of Standby database activity, also started applying the offline redo log files on the Standby site.
The throughput is not utilizing the actual available bandwith.
So we are not able to copy the offline redo files on time, as the offline redo files are piling up on the Production side.
My query is how we can parallely copy the offline redo log files on the DR site (ie. 4-5 redo files at a time).
Kindly guide for the same.
Regards,
Shaibazhi,
I have one doubt.
On other server (r3qas) the Umask settings are as followed
User UMASK value
<sid>adm 077
ora<SID> 077
root 077
Running SAP System : SAP R3 4.6C
Running DBMS : Oracle 9.0
Operating System :- HP_UX
On this system The new offline redo log files are created with 600 permissions. There is not a problem here, while taking the backup. I checked last "r3qas-archive" backups. There, i have not found any single error related to permissions, or any others (something like, Cannot open /oracle/RQ1/../.........dbf).
If everything is working fine, with this umask setting on this server, then, what's going wrong with the BW Quality server, which have the same umask settings (also others) for all the concerned users, as mentioned above.
Regards,
Bhavik Shroff -
Hi,
Can anyone tell me what's the real difference between a backup file and a redo log file/archived redo log file and the scenarios (examples) when each of them can be used (for example, "......") ? Both are used for database/instance recovery. I have read the concepts of there 2 terms, but I need some additional information about the difference.
Thanks!Roger25 wrote:
What i still don't understand is how redo mechanism works; I know, redo logs records changes made to the database and it's used to re-do informations in case of a system failure/crash, for example. Ok, let's say I have a huge update, but when the system crash has occured, the transaction is neither comitted, nor rolled back. Then, how this redo is useful? If a system crash occur, all those updates aren't rolled back automatically? So the database state is as before executing that huge update? So in this case, 'what to redo'?No, with the system's crash, the transaction never gets a chance to get committed (and even rolled back) because a commit is only supposed to happen if there is an explicit or implicit commit statement is issued. Now, for the redo , with the statement, a commit marker is entered at the end of the redo stream of that transaction denoting that it's finally over now and for the corresponding transaction, the status is cleared from the transaction table that's stored in the Undo segment in which the Undo information of that transaction is stored. If you have given a huge update, the redo would be very highly required as you should be knowing that it's not all the time that the dirty buffers that are written to the data files unlikely the redo log files which are written every 3 econds. This means, there is a very fair chance that many changes have yet not even propagated to the data files for which the change vectors are now already there in the redo log files. Now, for the sake of clarity, assume that this transaction was actually committed! So now, without those changes be applied to the data files how Oracle can actually show the committed reults when the database next time would be opened? For this purpose, the redo change vectors are required. And for the uncommitted transactions , the applcation of the redo change vectors would keep on updating the Checkpoint numbers of the data files and would eventually get them synched with the control file and redo log files, without which the database would never be opened.
HTH
Aman.... -
Hello,
How can I make a backup with redo log files using the following parameters?
backup_type = online_cons
backup_dev_type = disk_copy
-->archive_function = save_delete (It could be changed. Maybe it is the source of the error)
The copy is made, but an error occurs when it tries to copy the redo log files. The log shows the following message:
BR0291I BRARCHIVE will be started with options '-U -d disk_copy -c force -p initFDP_local.sap -cds'
BR0002I BRARCHIVE 6.40 (43)
BR0169I Value 'disk_copy' of parameter/option 'backup_dev_type/-d' ignored for 'brarchive' - 'disk'assumed
BR0181E Option '-cds' not supported for 'disk'
BR0007I End of offline redo log processing: adxexvpd.log 2008-02-06 03.41.57
Thanks in advance,
Ricard.
Edited by: Oscar Barrabes on Feb 6, 2008 10:08 AMHi Ricard,
You are right, you need to change the entry
archive_function = save_delete
to
archive_function = save
in init<SID>.sap
Nahum -
Redo log files are not applied in DR of primary
Hi All,
I have a DR database of primary on QA Serevr. The Redo log files are not properly applied in the DR database.
The Oracle version is 11.2.0.1 Some of the files get shipped and applied to DR database automatically but not all.
SQL> select status, error from v$archive_dest where dest_id=2; gives following massage
ERROR ORA-16086: Redo data cannot be written to the standby redo log
Please suggest.
Regards,
ShashiHi,
Sorry for delay in response. Here I am attaching the error captured in standby database.
Please advise
alert_abc.log
RFS[1780]: Identified database type as 'physical standby': Client is LGWR SYNC pid 21855
Primary database is in MAXIMUM AVAILABILITY mode
Standby controlfile consistent with primary
Standby controlfile consistent with primary
RFS[1780]: No standby redo logfiles of file size 94371840 AND block size 512 exist
Clearing online log 16 of thread 0 sequence number 0
Errors in file /oracle/diag/rdbms/abc_location11/abc/trace/abc_rfs_27994.trc:
ORA-00367: checksum error in log file header
ORA-00315: log 16 of thread 0, wrong thread # 1 in header
ORA-00312: online log 16 thread 0: '/oracle/abc/origlogB/log_g116m1.dbf'
Mon Nov 14 00:49:16 2011
Clearing online log 9 of thread 0 sequence number 0
Errors in file /oracle/diag/rdbms/abc_location11/abc/trace/abc_arc0_15653.trc:
/oracle/diag/rdbms/abc_location11/abc/trace/abc_rfs_27994.trc
2011-11-14 00:49:19.385
DDE rules only execution for: ORA 312
START Event Driven Actions Dump -
END Event Driven Actions Dump -
START DDE Actions Dump -
Executing SYNC actions
START DDE Action: 'DB_STRUCTURE_INTEGRITY_CHECK' (Async) -
DDE Action 'DB_STRUCTURE_INTEGRITY_CHECK' was flood controlled
END DDE Action: 'DB_STRUCTURE_INTEGRITY_CHECK' (FLOOD CONTROLLED, 1 csec) -
Executing ASYNC actions
END DDE Actions Dump (total 0 csec) -
ORA-00367: checksum error in log file header
ORA-00315: log 16 of thread 0, wrong thread # 1 in header
ORA-00312: online log 16 thread 0: '/oracle/abc/origlogB/log_g116m1.dbf'
DDE rules only execution for: ORA 312
START Event Driven Actions Dump -
END Event Driven Actions Dump -
START DDE Actions Dump -
Executing SYNC actions
START DDE Action: 'DB_STRUCTURE_INTEGRITY_CHECK' (Async) -
DDE Action 'DB_STRUCTURE_INTEGRITY_CHECK' was flood controlled
END DDE Action: 'DB_STRUCTURE_INTEGRITY_CHECK' (FLOOD CONTROLLED, -641 csec) -
Executing ASYNC actions
END DDE Actions Dump (total 0 csec) -
ORA-19527: physical standby redo log must be renamed
ORA-00312: online log 16 thread 0: '/oracle/abc/origlogB/log_g116m1.dbf'
Error 19527 clearing SRL 16
/oracle/diag/rdbms/abc_location11/abc/trace/abc_arc0_15653.trc
ORA-19527: physical standby redo log must be renamed
ORA-00312: online log 9 thread 0: '/oracle/abc/origlogA/log_g19m1.dbf'
Error 19527 clearing SRL 9
DDE rules only execution for: ORA 312
START Event Driven Actions Dump -
END Event Driven Actions Dump -
START DDE Actions Dump -
Executing SYNC actions -
Private strand flush not complete how to find optimal size of redo log file
hi,
i am using oracle 10.2.0 on unix system and getting Private strand flush not complete in the alert log file. i know this is due to check point is not completed.
I need to increase the size of redo log files or add new group to the database. i have log file switch (checkpoint incomplete) in the top 5 wait event.
i can't change any parameter of database. i have three redo log group and log files are of 250MB size. i want to know the suitable size to avoid problem.
select * from v$instance_recovery;
RECOVERY_ESTIMATED_IOS ACTUAL_REDO_BLKS TARGET_REDO_BLKS LOG_FILE_SIZE_REDO_BLKS LOG_CHKPT_TIMEOUT_REDO_BLKS LOG_CHKPT_INTERVAL_REDO_BLKS FAST_START_IO_TARGET_REDO_BLKS TARGET_MTTR ESTIMATED_MTTR CKPT_BLOCK_WRITES OPTIMAL_LOGFILE_SIZE ESTD_CLUSTER_AVAILABLE_TIME WRITES_MTTR WRITES_LOGFILE_SIZE WRITES_LOG_CHECKPOINT_SETTINGS WRITES_OTHER_SETTINGS WRITES_AUTOTUNE WRITES_FULL_THREAD_CKPT
625 9286 9999 921600 9999 0 9 112166207 0 0 219270206 0 3331591 5707793please suggest me or tell me the way how to find out suitable size to avoid problem.
thanks
umeshHow often should a database archive its logs
Re: Redo log size increase and performance
Please read the above thread and great replies by HJR sir. I think if you wish to get concept knowledge, you should add in your notes.
"If the FAST_START_MTTR_TARGET parameter is set to limit the instance recovery time, Oracle automatically tries to checkpoint as frequently as necessary. Under this condition, the size of the log files should be large enough to avoid additional checkpointing due to under sized log files. The optimal size can be obtained by querying the OPTIMAL_LOGFILE_SIZE column from the V$INSTANCE_RECOVERY view. You can also obtain sizing advice on the Redo Log Groups page of Oracle Enterprise Manager Database Control."
Source:http://download-west.oracle.com/docs/cd/B13789_01/server.101/b10752/build_db.htm#19559
Pl also see ML Doc 274264.1 (REDO LOGS SIZING ADVISORY) on tips to calculate the optimal size for redo logs in 10g databases
Source:Re: Redo Log Size in R12
HTH
Girish Sharma -
Database in log archive mode and redo log file in mode not archive
Hello,
I have a dabatabase running in archive log mode, recently changed, I have 5 redo log groups and one of them (the current one) shows in the v$log view, that ARC: NO, I mean, no archiving. All redo logs except it shows ARC:Yes
What does it mean?
Am I going to have problems with this redo log file?
ThanksIf you do describe on v$log, you'll find that the full column name is Archived (meaning is it archived yet?).
You could try alter system switch logfile and then check v$log again a few times after.
Use the docu for finding out more about v$ views and so on
http://www.oracle.com/pls/db102/print_hit_summary?search_string=v%24log -
Moving ORACLE_HOME , Datafiles, controlfiles,redo log file locations
Version: 10.2.0.1.0
One of our test DB's software location(ORACLE_HOME) was wrongly installed in /home/oracle. We have been using this for an year now. Now we are thinking of moving the ORACLE_HOME to a new location /u02. Because of another disk maintenance activity, we have to move all datafiles , redo log files, control files, tempfiles to a different location as well.
This database is not in ARCHIVELOG mode(luckily).
If i do a fresh installation of 10.2.0.1.0 in /u02, i cannot use the old installation's system01.dbf, sysaux01.dbf,undotbs01.dbf files for this fresh installation. Right?
How do i go about doing this whole move thing?This database is not in ARCHIVELOG mode(luckily).
Why?
If i do a fresh installation of 10.2.0.1.0 in /u02, i cannot use the old installation's system01.dbf, sysaux01.dbf,undotbs01.dbf files for this fresh installation. Right?
No.
Issue ALTER DATABASE BACKUP CONTROLFILE TO TRACE. Then Shutdown the database. Copy all the files including the trace generated. Change the control_files parameter from init<SID>.ora file. Copy this to new home. Also tailor the backup trace file for change in location of logfiles,datafiles. Then
$export ORACLE_SID=<SID>
$sqlplus /nolog
SQL>conn sys as sysdba
password:<Enter>
SQL>startup nomount pfile=NEW_HOME/dbs/init<SID>.ora
SQL>@location_of_trace_file_generated/tracefilename.trc
Add temporary tablespace and make it default temporary tablespace for the database.
Your database will be up and running.
Regards.
Edited by: orant575 on Jul 10, 2009 4:37 PM -
How to disable write to redo log file in oracle7.3.4
in oracle 8, alter table no logged in redo log file like: alter table tablename nologging;
how to do this in oracle 7.3.4?
thanks.user652965 wrote:
Thanks very much for your help guys. I appreciate it. unfortunately none of these commands worked for me. I kept getting error on clearing logs that redo log is needed to perform recovery so it can't be cleared. So I ended up restoring from earlier snapshot of my db volume. Database is now open.
Thanks again for your input.And now, as a follow-up, at a minimum you should make sure that all redo log groups have at least 3 members. Then, if you lose a single redo log file, all you have to do is shutdown the db and copy one of the good members (of the same group as the lost member) over the lost member.
And as an additional follow-up, if you value your data you will run in archivelog mode and take regular backups of the database and archivelogs. If you fail to do this you are saying that your data is not worth saving.
Maybe you are looking for
-
Vendor Balance Report Day wise based on Posting date
Hi Guru's, I am creating vendor balance reprot day wise based on posting date . In my report i want to show TDS(With hold tax ) amount where can i get that field name how can retrive the data using bsik and bsak . I Donot want to display reversal do
-
Firefox beta 35 not ready for prime time.
I have spent the entire weekend trying to get the Firefox beta 35 to work. What I have found is that *all* extensions fail to work with the exception of Places Maintenance. I can not download any extension Firefox is so famous for. The error is somet
-
Hello, I currently have a Mac Pro with the CS5 Design suite installed. I just purchased a Macbook Pro and I'm installing all the software, however, when I go to install Adobe Acrobat 9 from its CD - it just opens the application rather than install i
-
How to Convert Analog Music Recordings into a Digital Format
I am relatively new to Mac computing and would really like to convert my older LP records into a digital format so I can listen to them via an IPod or CD player. I need to know the basics and what I would need to be successful. Can anyone help?
-
Can somebody tell me the function used to parse a string and how it works? All I want to do is seperate the string 'AG-01' into another string 'AG-' and an int '01'. I have been through numerous resources and have found nothing at all on parsing func