-
Originally posted by alison
Where is that information stored if not in the Redo Log's
Good question - I don't really know.
Logic says that it is implied from the existance of a transaction in the RBS that is not marked as ended (commited or rolled-back) - 'coz that's the only place I think it could come from! Can anyone confirm that?
"The power of instruction is seldom of much efficacy except in those happy dispositions where it is almost superfluous" - Gibbon, quoted by R.P.Feynman
-
-
Hi Amar (Happy Birthday!),
I have heard rumours that redologs & archivelogs sometimes come in useful for media recovery . . . .
(Can you speed up ARCH by sending the file to a null device? (JOKE!))
"The power of instruction is seldom of much efficacy except in those happy dispositions where it is almost superfluous" - Gibbon, quoted by R.P.Feynman
-
Amar
"There is a difference between knowing the path and walking the path."
-
Originally posted by DaPi
Logic says that it is implied from the existance of a transaction in the RBS that is not marked as ended (commited or rolled-back) - 'coz that's the only place I think it could come from! Can anyone confirm that?
YES.
Jurij Modic
ASCII a stupid question, get a stupid ANSI
24 hours in a day .... 24 beer in a case .... coincidence?
-
Last edited by pando; 03-04-2003 at 01:49 AM.
-
Re: Instance recovery behaviour
Originally posted by alison
If the instance crashes whilst there are uncommitted changes in the
datafiles then this is repaired during instance recovery during the rollback
phase after the roll forward of all the changes in the online redologs. This
is done by reading the redo logs to look for commits on all the rolled
forward changes. But in NOARCHIVELOG mode commits for any changes that were
in the datafile before the instance crash could have been recorded in the
redologs that have been overwritten. How does SMON know what has been
committed or not if the database is in NOARCHIVELOG mode?
I had discussed this topic sometime back (though a little more than this). u can refer this thread, that has some wonderful responses..
http://www.dbasupport.com/forums/sho...0&pagenumber=1
Quester
-
Originally posted by DaPi
Good question - I don't really know.
Logic says that it is implied from the existance of a transaction in the RBS that is not marked as ended (commited or rolled-back) - 'coz that's the only place I think it could come from! Can anyone confirm that?
RBS and that's what I have been trying to say in the beginning
Oracle reads redo log and RBS, then use redo to rebuild RBS and read RBS again. RBS are just data, they are flushed to disk by checkpoints as well and checkpoints will ensure you that the redo log which protects the undo can be overwritten (the dirty RBS data is flushed to disk)
-
Originally posted by pando
RBS are just data, they are flushed to disk by checkpoints as well and checkpoints will ensure you that the redo log which protects the undo can be overwritten (the dirty RBS data is flushed to disk)
Every thing fits the block, but i have a doubt. if this thing happens then after a shutdown abort in such case... the database should not ask for media recovery or will it ask ??
Amar
"There is a difference between knowing the path and walking the path."
-
ok here is what i found.
I have a database in no archivelogmode. I did the following.
Code:
SQL> create table test (enumber number);
SQL> declare
1 x number := 1;
2 begin
3 for x in 1 .. 200000 loop
4 insert into test values (10000000);
5 end loop;
6 end;
7 /
PL/SQL procedure successfully completed.
SQL> select count(1) from test;
COUNT(1)
----------
200000
extract from alert logfile...
my redolog files a 5 MB in size.
Code:
Current log# 2 seq# 36 mem# 0: E:\ORACLE\ORADATA\ORCL\REDO02.LOG
Tue Mar 04 13:24:04 2003
Thread 1 cannot allocate new log, sequence 37
Checkpoint not complete
Current log# 2 seq# 36 mem# 0: E:\ORACLE\ORADATA\ORCL\REDO02.LOG
Thread 1 advanced to log sequence 37
Current log# 1 seq# 37 mem# 0: E:\ORACLE\ORADATA\ORCL\REDO01.LOG
Thread 1 cannot allocate new log, sequence 38
Checkpoint not complete
Current log# 1 seq# 37 mem# 0: E:\ORACLE\ORADATA\ORCL\REDO01.LOG
Thread 1 advanced to log sequence 38
Current log# 2 seq# 38 mem# 0: E:\ORACLE\ORADATA\ORCL\REDO02.LOG
Tue Mar 04 13:24:29 2003
Thread 1 cannot allocate new log, sequence 39
Checkpoint not complete
Current log# 2 seq# 38 mem# 0: E:\ORACLE\ORADATA\ORCL\REDO02.LOG
Thread 1 advanced to log sequence 39
Current log# 1 seq# 39 mem# 0: E:\ORACLE\ORADATA\ORCL\REDO01.LOG
Then i did a shutdown abort, remember i haven't committed the transaction yet.
Code:
SQL*Plus: Release 9.2.0.2.0 - Production on Tue Mar 4 13:19:15 2003
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
Enter user-name: sys as sysdba
Enter password:
Connected to:
Oracle9i Enterprise Edition Release 9.2.0.2.1 - Production
With the Partitioning, Oracle Label Security, OLAP and Oracle Data Mining options
JServer Release 9.2.0.2.0 - Production
SQL> shutdown abort
ORACLE instance shut down.
SQL> startup
ORACLE instance started.
Total System Global Area 101784268 bytes
Fixed Size 453324 bytes
Variable Size 75497472 bytes
Database Buffers 25165824 bytes
Redo Buffers 667648 bytes
Database mounted.
Database opened.
SQL>
Didn't ask for any recovery.
Code:
SQL> select * from test;
no rows selected
SQL>
So alison i hope this clear your doubts... Atleast it cleared mine
HTH
Last edited by adewri; 03-04-2003 at 04:05 AM.
Amar
"There is a difference between knowing the path and walking the path."
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|