Posted on 2011-02-21
Last Modified: 2012-05-11
I need to increase the size of a datafile but it is already at its maxsize. How do I increase the maxsize of a datafile so I can resize it.
Question by:msimons4
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 74

Accepted Solution

sdstuber earned 334 total points
ID: 34943550
  DATAFILE '/your/data/file/goes_here.dbf'
   MAXSIZE 1234M;  -- adjust size to whatever you need
LVL 74

Assisted Solution

sdstuber earned 334 total points
ID: 34943571
you can specify the maxsize in bytes  (no units)

or K, M, G, T, P, E  

LVL 18

Assisted Solution

sventhan earned 83 total points
ID: 34943625
<  but it is already at its maxsize

What is your max size? Is autoextend on?

What is the block size of the DB?

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

LVL 74

Assisted Solution

sdstuber earned 334 total points
ID: 34943667
also note, you can manually resize a datafile beyond it's maxsize.

the maxsize only applies to autoextend.

So, if your datafile is 1G max, you can resize it to 2G, but it won't autoextend because it's already beyond the max size

Author Comment

ID: 34943737
Is it better to increase the maxsize of the datafile or just increase the size of the datafile
LVL 74

Assisted Solution

sdstuber earned 334 total points
ID: 34943772
neither is "better" than the other, but I would probably increase the maxsize and then let the datafile autoextend as needed

you could resize it also if you know you'll need 100Mb  now and "maybe" 100Mb later, then set the maxsize 200Mb bigger and resize 100Mb now
LVL 77

Assisted Solution

by:slightwv (䄆 Netminder)
slightwv (䄆 Netminder) earned 83 total points
ID: 34946026
Just to add that extending datafiles is expensive.  If you let it autoextend you have no control when it happens and can take place during the busy times.

You should also set the NEXT size on autoextend to a decent size you it doesn't extend all the time.


Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
SQL Developer 6 75
add more rows to hierarchy 3 33
Loading flat file data in tables 2 58
why truncate is faster than delete in oracle ? 4 44
This article started out as an Experts-Exchange question, which then grew into a quick tip to go along with an IOUG presentation for the Collaborate confernce and then later grew again into a full blown article with expanded functionality and legacy…
This post first appeared at Oracleinaction  ( Anju Garg (Myself). I  will demonstrate that undo for DML’s is stored both in undo tablespace and online redo logs. Then, we will analyze the reaso…
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
This video shows how to recover a database from a user managed backup

735 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question