dbTalk Databases Forums  

flashback?

comp.databases.oracle.misc comp.databases.oracle.misc


Discuss flashback? in the comp.databases.oracle.misc forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
nick
 
Posts: n/a

Default flashback? - 01-28-2008 , 12:09 PM






Can someone tell me how flashback works?
When I execute:

execute dbms_flashback.enable_at_time(sysdate - 10/1440);

What exactly is happening here? Does this mean that just for
my session, all the tables of the database are as they were
ten minutes in the past? How can Oracle possibly accomplish
this?

Thanks

Reply With Quote
  #2  
Old   
fitzjarrell@cox.net
 
Posts: n/a

Default Re: flashback? - 01-28-2008 , 12:45 PM






On Jan 28, 12:09*pm, nick <cupofjava1... (AT) aol (DOT) com> wrote:
Quote:
Can someone tell me how flashback works?
When I execute:

execute dbms_flashback.enable_at_time(sysdate - 10/1440);

What exactly is happening here? Does this mean that just for
my session, all the tables of the database are as they were
ten minutes in the past? How can Oracle possibly accomplish
this?

Thanks
It uses your UNDO segments and your undo_retention setting to
'rebuild' the data image at the specified time. Presuming you have
sufficient undo retained to provide data for the 'window' specified
you'll get your flashback query to return data as it was.

The tables aren't changed in any way; Oracle simply reconstructs the
data image as of the given date/time/SCN using the UNDO segments.
It's the same way Oracle provides a read-consistent image of the data
during a query even when other users are actively executing inserts/
updates/deletes.

Flashback can be a very powerful tool. You might want to look here
for a simple example of how flashback query can be of use:

http://oratips-ddf.blogspot.com/2008...ught-that.html

You can also check out the documentation at http://tahiti.oracle.com.


David Fitzjarrell


Reply With Quote
  #3  
Old   
fitzjarrell@cox.net
 
Posts: n/a

Default Re: flashback? - 01-28-2008 , 12:45 PM



On Jan 28, 12:09*pm, nick <cupofjava1... (AT) aol (DOT) com> wrote:
Quote:
Can someone tell me how flashback works?
When I execute:

execute dbms_flashback.enable_at_time(sysdate - 10/1440);

What exactly is happening here? Does this mean that just for
my session, all the tables of the database are as they were
ten minutes in the past? How can Oracle possibly accomplish
this?

Thanks
It uses your UNDO segments and your undo_retention setting to
'rebuild' the data image at the specified time. Presuming you have
sufficient undo retained to provide data for the 'window' specified
you'll get your flashback query to return data as it was.

The tables aren't changed in any way; Oracle simply reconstructs the
data image as of the given date/time/SCN using the UNDO segments.
It's the same way Oracle provides a read-consistent image of the data
during a query even when other users are actively executing inserts/
updates/deletes.

Flashback can be a very powerful tool. You might want to look here
for a simple example of how flashback query can be of use:

http://oratips-ddf.blogspot.com/2008...ught-that.html

You can also check out the documentation at http://tahiti.oracle.com.


David Fitzjarrell


Reply With Quote
  #4  
Old   
fitzjarrell@cox.net
 
Posts: n/a

Default Re: flashback? - 01-28-2008 , 12:45 PM



On Jan 28, 12:09*pm, nick <cupofjava1... (AT) aol (DOT) com> wrote:
Quote:
Can someone tell me how flashback works?
When I execute:

execute dbms_flashback.enable_at_time(sysdate - 10/1440);

What exactly is happening here? Does this mean that just for
my session, all the tables of the database are as they were
ten minutes in the past? How can Oracle possibly accomplish
this?

Thanks
It uses your UNDO segments and your undo_retention setting to
'rebuild' the data image at the specified time. Presuming you have
sufficient undo retained to provide data for the 'window' specified
you'll get your flashback query to return data as it was.

The tables aren't changed in any way; Oracle simply reconstructs the
data image as of the given date/time/SCN using the UNDO segments.
It's the same way Oracle provides a read-consistent image of the data
during a query even when other users are actively executing inserts/
updates/deletes.

Flashback can be a very powerful tool. You might want to look here
for a simple example of how flashback query can be of use:

http://oratips-ddf.blogspot.com/2008...ught-that.html

You can also check out the documentation at http://tahiti.oracle.com.


David Fitzjarrell


Reply With Quote
  #5  
Old   
fitzjarrell@cox.net
 
Posts: n/a

Default Re: flashback? - 01-28-2008 , 12:45 PM



On Jan 28, 12:09*pm, nick <cupofjava1... (AT) aol (DOT) com> wrote:
Quote:
Can someone tell me how flashback works?
When I execute:

execute dbms_flashback.enable_at_time(sysdate - 10/1440);

What exactly is happening here? Does this mean that just for
my session, all the tables of the database are as they were
ten minutes in the past? How can Oracle possibly accomplish
this?

Thanks
It uses your UNDO segments and your undo_retention setting to
'rebuild' the data image at the specified time. Presuming you have
sufficient undo retained to provide data for the 'window' specified
you'll get your flashback query to return data as it was.

The tables aren't changed in any way; Oracle simply reconstructs the
data image as of the given date/time/SCN using the UNDO segments.
It's the same way Oracle provides a read-consistent image of the data
during a query even when other users are actively executing inserts/
updates/deletes.

Flashback can be a very powerful tool. You might want to look here
for a simple example of how flashback query can be of use:

http://oratips-ddf.blogspot.com/2008...ught-that.html

You can also check out the documentation at http://tahiti.oracle.com.


David Fitzjarrell


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.