Data files AutoExtend configuration In Oracle


I have some data files with the AutoExtend feature set ON, but i want to know when it extends how much space it
requires when extending ?
Also i want to increase the space it extends.    Let say for example when the data file extends it takes 500MB and i want it to take less/more space, how to do that ?

joe_echavarriaDatabase AdministratorAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

johnsoneSenior Oracle DBACommented:
DBA_DATA_FILES is the place to go to determine autoextend values.  Look at AUTOEXTENSIBLE, MAXBYTES, MAXBLOCKS and INCREMENT_BY.  INCREMENT_BY should tell you the size of the next autoextend.

To change the next extent, you would need to use ALTER DATABASE.  Something like:

DATAFILE '<full_path_to_file>'

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
slightwv (䄆 Netminder) Commented:
>>how much space it  requires when extending ?


It is in blocks.  multiply it by the tablespaces block size to get bytes.

>> want it to take less/more space, how to do that ?

Alter the datafile.  

This is untested syntax.  The online docs should have the correct syntax if I missed something:

ALTER DATABASE DATAFILE '/somedatafile.dbf' NEXT 500MB;
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Oracle Database

From novice to tech pro — start learning today.