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

Home -> Community -> Mailing Lists -> Oracle-L -> Re: How are extents allocated in a multi-datafile tablespace

Re: How are extents allocated in a multi-datafile tablespace

From: Brian Wisniewski <brian_wisniewski_at_yahoo.com>
Date: Wed, 27 Dec 2000 06:40:13 -0800 (PST)
Message-Id: <10723.125353@fatcity.com>


Ed, sorry for the delay in response but I was out for the holidays. I ran a test this morning on a database (8.1.6) I have on my laptop and I stand by my earlier response.

create tablespace test datafile 'c:\oracle\oradata\bsw\test1.dbf' size 5M, 'c:\oracle\oradata\bsw\test2.dbf' size 5M;

create table test (test_col varchar2(20)) storage (initial 100K next 100K pctincrease 0) tablespace test;

I then ran a script which maps out where the tablespace and where the extents are allocated. The first extent existed in file #8

(test1.dbf).  I then altered the table and allocated another extent
(alter table test allocate extent;) it was allocated into file #9
(test2.dbf).  I just continued to type slash and return and in another
window watched where the extents were being allocated and it was in a round-robin approach between the two datafiles. I then added another datafile to this tablespace #10 (test3.dbf) after there was ~40 extents allocated, 20 in each tablespace. The last extent allocated existed in test1.dbf, the next one I allocated went to test2.dbf and the next one to test3.dbf (The newly created datafile). It continued on this round-robin approach.

Try it out and let me know what you find because this is what I've seen for quite some time now.

Received on Wed Dec 27 2000 - 08:40:13 CST

Original text of this message

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