Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> (no subject)

(no subject)

From: jaimin <jaimin_at_rolta.com>
Date: Sun, 12 Aug 2001 19:53:05 -0700
Message-ID: <F001.003688DD.20010812195020@fatcity.com>

Thanks anita,

-----Original Message-----
Sent: Sunday, August 12, 2001 8:15 PM
To: Multiple recipients of list ORACLE-L

Jaimin,

I'm not an OS person, so my explanation of what's going on at the OS level is my best guess, but I'm hoping someone else on the list will correct me and/or explain it better.

The OS has no knowledge of Oracle's internal layout of the file and db block size, nor does it need to. To the OS an Oracle datafile is the same as any other file and it will store it physically on disk in what ever manner it sees fit. Unless the disk has been defragged recently, most likely the file is scattered all over the place on the disk.

The requirement for blocks within an extent to be contiguous refers only to Oracle's internal numbering of the db_block_size blocks within the datafile. Again, this is so Oracle can efficiently identify which blocks belong to which extent. This has absolutely NOTHING to do with how the file is stored at the OS level. Oracle doesn't care about how the OS is storing the file physically on disk because it doesn't need to know anything about this.

When Oracle needs to read block 10 of datafile 1, for example, it makes a call to the OS. This is where my knowledge of the OS gets fuzzy. I'm guessing that Oracle is going to make a logical read request to the OS to read datafile 1 and give the starting point (the offset into the datafile) and the number of bytes to read. So for block 10 of a datafile with a 2K block size that would be an offset of 20480 and 2048 bytes to read. The OS will in turn determine where this chunk of 2048 bytes of the file is located on disk and read as many different OS blocks (that could be anywhere on the disk) as needed to fullfill Oracle's read request.

Again, Oracle doesn't care what the OS does with the file, because it merely makes calls to the OS to perform reads/writes.

List, feel free to correct me!

HTH,


Do You Yahoo!?
Send instant messages & get email alerts with Yahoo! Messenger. http://im.yahoo.com/
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: A. Bardeen
  INET: abardeen1_at_yahoo.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: jaimin
  INET: jaimin_at_rolta.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
Received on Sun Aug 12 2001 - 21:53:05 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US