473,395 Members | 2,192 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Fooling Oracle re: extent allocation

Normally when one is creating a table in a striped tablespace one can,
with a little trouble, force extent allocation in a round-robin
fashion. I never do things the easy way :-); what I want to do (in an
8.1.7.4.1 db) is create a striped tablespace and do an 'alter table
move' and get somewhat balanced extent allocation over four datafiles;
more important, get balanced allocation going forward.

I am trying to do this with some (hash-)partitioned tables and some
non-partitioned.

I have yet to devise a reasonable way to do this. I've come up with
some schemes - e.g., setting the striped tablespace just slightly
larger than the table, moving it, then setting datafiles to autoextend
- but they always have the flaw of getting round-robin allocation
afterwards. Unfortunately this is a production, third-party
application so a programmatic change for inserts is out of the
question.

If anyone has done this, or can point me in a useful direction for
further reading or research, I would be grateful.

TIA -

Best regards,
jh
Jun 27 '08 #1
2 1508
Jared wrote:
Normally when one is creating a table in a striped tablespace one can,
with a little trouble, force extent allocation in a round-robin
fashion. I never do things the easy way :-); what I want to do (in an
8.1.7.4.1 db) is create a striped tablespace and do an 'alter table
move' and get somewhat balanced extent allocation over four datafiles;
more important, get balanced allocation going forward.

I am trying to do this with some (hash-)partitioned tables and some
non-partitioned.

I have yet to devise a reasonable way to do this. I've come up with
some schemes - e.g., setting the striped tablespace just slightly
larger than the table, moving it, then setting datafiles to autoextend
- but they always have the flaw of getting round-robin allocation
afterwards. Unfortunately this is a production, third-party
application so a programmatic change for inserts is out of the
question.

If anyone has done this, or can point me in a useful direction for
further reading or research, I would be grateful.

TIA -

Best regards,
jh
Hi jh

You are working hard on a problem that does not exist!
Oracle will automatic stripe the extents for you.
If you create a tablespace locally managed uniform size
and the tablespace is extended with - say - tree more datafiles,
sized like the first datafile.
Then your objects in that tablespace will have extents that spawn all
datafiles if they have more extents than you have datafiles. First
extent will go on file 'a', next extent of the same object will go on
datafile 'b' and so forth. It might not be quite what you wanted, but it
is close.
This behavior is seen on windos versions of 8.1.7 - and i think linux
too, but don't nail me on that.

You can test that pretty easy, create small tablespace as described,
and a table (with small extents) from select * from all_objects. Insert
as select from.... a couple of times to get more extents.
Then check the dba_extents for your object, look for file_id and
relative_fno.

Regards

/Svend Jensen

Jun 27 '08 #2
Svend Jensen <Sv************@it.dkwrote in message news:<3f***********************@dread16.news.tele. dk>...
Jared wrote:
You are working hard on a problem that does not exist!
Oracle will automatic stripe the extents for you.
If you create a tablespace locally managed uniform size
and the tablespace is extended with - say - tree more datafiles,
Thanks, Svend, I will test that today.
Jun 27 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

100
by: Peter | last post by:
Company thought DB2 will be better than Oracle. The bottom line is when you do select, the system crash. I think it may take 4-5 years for DB2 to reach Oracle standard. Peter
7
by: Murtix Van Basten | last post by:
Hi all, I will deploy a database project to an Oracle server, but I could not figure out which version of Oracle should I get. Here is my configuration: Hardware: Dell 1750 Dual Xeon 3.2Ghz,...
35
by: English Teacher | last post by:
Which would be a more useful relational database server to learn nowadays: MS SQL SERVER or ORACLE? Thanks!
11
by: Rosco | last post by:
Does anyone have a good URL or info whre Oracle and Access are compared to one another in performance, security, cost etc. Before you jump on me I know Oracle is a Cadillac compared to Access the...
9
by: Racerx | last post by:
Hi All: Can anyone suggest me how to determine the optimised size for the following: 1.Extends 2.Tablespaces 3.Bufferpools Regards,
3
by: Asphalt Blazer | last post by:
Can anybody explain to me the relation between extentsize and pagesize. When I am creating a new tablespace what do I need to be careful of? Say pagesize is 8K is keeping extentsize(pages) 64 too...
5
by: dreadnought8 | last post by:
I've worked with mdbs, and with SQL Server to a lesser extent, with Access as a front end, on commercial-strength systems for quite a while, starting with A97. The last 8 months or so, I've been...
2
by: Vinod Sadanandan | last post by:
All, Below listed are the new features in Oracle 11g ,please join me in this discussion to generate a testcase and analyze each of the listed features . Precompilers:...
8
by: Ron Eggler | last post by:
Hi, I got a problem: I have a function that allocates new memory to hold another element of my struct array if it's not existing already. /** My Structures **/ typedef struct { char BusID;...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.