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
LVL 73

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 73

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?

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

LVL 73

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 73

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 76

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
File generation using utl_file 4 45
Oracle RAC 12c 8 54
C# Connection String for Oracle database is not working 22 88
grouping on time windows 6 41
Truncate is a DDL Command where as Delete is a DML Command. Both will delete data from table, but what is the difference between these below statements truncate table <table_name> ?? delete from <table_name> ?? The first command cannot be …
From implementing a password expiration date, to datatype conversions and file export options, these are some useful settings I've found in Jasper Server.
This video shows how to copy a database user from one database to another user DBMS_METADATA.  It also shows how to copy a user's permissions and discusses password hash differences between Oracle 10g and 11g.
This video shows setup options and the basic steps and syntax for duplicating (cloning) a database from one instance to another. Examples are given for duplicating to the same machine and to different machines

932 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now