Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read SiteMap

Tags: , , , , ,

Sponsored Links



Difference between Redolog and Undosegment

Software Development


Reply
 
Thread Tools Search this Thread
  #1  
Old 05-02-2010
Member
 
Join Date: Jan 2010
Posts: 56
Difference between Redolog and Undosegment

I am so confused about, redo log and undo segment both components are being used to store the previous objects after updating anything. Why ? oracle database always using it,One of them can also be used to perform the operation of any previous changes. It is asked in a seminar and now I want to know the reason. please help me to provide such information.
Reply With Quote
  #2  
Old 05-02-2010
Reegan's Avatar
Member
 
Join Date: Oct 2005
Posts: 2,299
The Redolog in database

The redolog in database :

The redo log is being used to store the committed and uncommitted changes that is made on datafile and written by LGWR process from redo buffer.It stores committed and uncommitted changes both.

The redo log can use two different part: The first one is "online redo log" and second one is "archived redo log". The redo can use both components to recover the lost data after any failure of database.It contains every transaction on a redo log file and the archive process is being used to save these contents on a different locations.
Reply With Quote
  #3  
Old 05-02-2010
opaper's Avatar
Member
 
Join Date: May 2008
Posts: 2,362
The Undosegment of database

Undo segment of database :

The undo segment is an object of the database that is being used to store the previous records. Undo records can be stored in either rollback segments or undo tablespaces and then the rollback segment performs a rollback operation to remove the uncommitted changes in the data file.

There are two ways to manage the UNDO space of database :Automatic and Manual. The best thing to use the manual management of UNDO spaces.
__________________
The FIFA Manager 2009 PC Game
Reply With Quote
  #4  
Old 05-02-2010
MindSpace's Avatar
Member
 
Join Date: Feb 2008
Posts: 1,832
Effect of Rollback in database

Effect of rollback in database :

The rollback statement perform the undoing changes to data that have been updated during the transaction using SQL. If we are working on any database and performing some updation using SQL statement and we have done the updating operation. Now we need to have the oldest data.

In this case, we used to issue the rollback statement.
Reply With Quote
  #5  
Old 05-02-2010
Modifier's Avatar
Member
 
Join Date: Jan 2008
Posts: 1,502
Effect of using COMMIT statement

Effect of using COMMIT statement :

The commit statement signal to the checkpoint process.Then related processes comes to active and play its own role.

After a commit, the Log writer(LGWR)process writes the redo information from redo buffer to the online redo log files. Every process activated in parallel way.
If a user get disconnects from oracle database then a commit happens.
Reply With Quote
Reply

  TechArena Community > Software > Software Development


Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Difference between Redolog and Undosegment"
Thread Thread Starter Forum Replies Last Post
Difference between SQL,SQL*PLUS and PL/SQL Landan Software Development 5 15-02-2010 05:45 PM
What is difference between RAM and ROM? Harper 21 Motherboard Processor & RAM 5 30-01-2010 09:00 AM
Difference between VB, VB.NET and C# Leeland Software Development 4 23-01-2010 09:20 AM
What's the difference between a 16x dvd and 4x dvd Darpak Hardware Peripherals 2 20-08-2009 08:48 PM
Difference between VGA and DVI carlito Monitor & Video Cards 1 28-01-2009 12:04 AM


All times are GMT +5.5. The time now is 04:17 AM.