Home » RDBMS Server » Server Administration » Oracle Architecture (Oracle 10.2.04)
Oracle Architecture [message #536816] Fri, 23 December 2011 03:38 Go to next message
kamran0931
Messages: 17
Registered: December 2011
Junior Member
Hi
i was studying Oracle architecture i learnt evrything but i am a bit confused.
For example if i want to update a row then through what procedure will it go?
First of all user will connect to the server using user process through server process, after establishing connection PGA will be allocated
then server process will check the sql statement in shared pool of SGA, if it's there then ok but if not then it will parse it and will keep it
in shared pool. Then server process will check the acquire data in the database buffer cache if its there then it will update it otherwise it will retrieve the data from the data files.
So if a the old value of a row is 100 and i want to update it to 200. Then;
1)Database buffer cache will have 200 value? correct?
2)The before image copy will be written into the undo segment? correct? which is 100.
3)what will be stored in redo log buffer? Regarding my example of updating from 100 to 200 please explain

I am new to oracle so if i am wrong then correct me.

Thanks
Re: Oracle Architecture [message #536817 is a reply to message #536816] Fri, 23 December 2011 03:46 Go to previous messageGo to next message
Michel Cadot
Messages: 68643
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
All is really well explained in Database Concepts.

Regards
Michel

[Updated on: Fri, 23 December 2011 03:46]

Report message to a moderator

Re: Oracle Architecture [message #536820 is a reply to message #536817] Fri, 23 December 2011 03:57 Go to previous messageGo to next message
kamran0931
Messages: 17
Registered: December 2011
Junior Member
in the "Database Concepts" they saying changes made to database are written in redo log buffer. So
regarding my example in the above post what will be written into the redo log buffer?
Re: Oracle Architecture [message #536824 is a reply to message #536820] Fri, 23 December 2011 04:13 Go to previous messageGo to next message
ramoradba
Messages: 2456
Registered: January 2009
Location: AndhraPradesh,Hyderabad,I...
Senior Member
It Records all changes made to database blocks.
100-->200


Sriram

[Updated on: Fri, 23 December 2011 04:14]

Report message to a moderator

Re: Oracle Architecture [message #536825 is a reply to message #536820] Fri, 23 December 2011 04:13 Go to previous messageGo to next message
Michel Cadot
Messages: 68643
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
The changes?
Changes in the data and changes in the undo block.

Regards
Michel
Re: Oracle Architecture [message #536829 is a reply to message #536825] Fri, 23 December 2011 04:20 Go to previous messageGo to next message
kamran0931
Messages: 17
Registered: December 2011
Junior Member
So it means it will records both 100(undo block) and 200(data block)?
Re: Oracle Architecture [message #536831 is a reply to message #536829] Fri, 23 December 2011 04:31 Go to previous messageGo to next message
ramoradba
Messages: 2456
Registered: January 2009
Location: AndhraPradesh,Hyderabad,I...
Senior Member
Please read "Redo Log Contents" On
http://docs.oracle.com/cd/B28359_01/server.111/b28310/onlineredo001.htm
Re: Oracle Architecture [message #536832 is a reply to message #536831] Fri, 23 December 2011 04:43 Go to previous messageGo to next message
kamran0931
Messages: 17
Registered: December 2011
Junior Member
i have read it already. Just wanted someone to explain it using an example.

Anyhow thanks.
Re: Oracle Architecture [message #536833 is a reply to message #536832] Fri, 23 December 2011 04:48 Go to previous messageGo to next message
ramoradba
Messages: 2456
Registered: January 2009
Location: AndhraPradesh,Hyderabad,I...
Senior Member
Quote:
Redo Log Contents

Redo log files are filled with redo records. A redo record, also called a redo entry, is made up of a group of change vectors, each of which is a description of a change made to a single block in the database. For example, if you change a salary value in an employee table, you generate a redo record containing change vectors that describe changes to the data segment block for the table, the undo segment data block, and the transaction table of the undo segments.

Redo entries record data that you can use to reconstruct all changes made to the database, including the undo segments. Therefore, the redo log also protects rollback data. When you recover the database using redo data, the database reads the change vectors in the redo records and applies the changes to the relevant blocks.
Re: Oracle Architecture [message #536838 is a reply to message #536832] Fri, 23 December 2011 05:10 Go to previous messageGo to next message
Michel Cadot
Messages: 68643
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
kamran0931 wrote on Fri, 23 December 2011 11:43
i have read it already. Just wanted someone to explain it using an example.

Anyhow thanks.


You should read it again... maybe twice or more.

Regards
Michel

Re: Oracle Architecture [message #536844 is a reply to message #536838] Fri, 23 December 2011 05:22 Go to previous message
kamran0931
Messages: 17
Registered: December 2011
Junior Member
Thanks ramoradba i got it.

It stores changes made to the data segment block for the table, the undo segment data block and the transaction table of the undo segments.
And it is a binary operation, bits and bytes; enough to replay the change.

Thanks
Previous Topic: Logical Structure
Next Topic: ORA-04030 : Out of Process Memory
Goto Forum:
  


Current Time: Tue Apr 23 15:24:54 CDT 2024