INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

HANDLE


PASSWORD
Remember Me
Forgot Password?

Come Join Us!

  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

E-mail*
Handle

Password
Verify P'word
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Member Feedback

"...I wish I knew about this site years ago. It would have saved me a lot of heartaches..."

Geography

Where in the world do Tek-Tips members come from?

 autogrow tablespace vs auto extend a datafile

ptheriault (IS/IT--Management)
25 Oct 06 8:33
I am new to the Oracle world and I have a question which might seem stupid.  I have db that has one user table space that I believe is set to autogrow, however all of the datafiles withing the tablespace are not set to auto extend.  Do I need to auto extend the datafiles as well?  How can I confirm that the tablespace is in fact set to autogrow.  
Thanks

- Paul
- Database performance looks fine, it must be the Network!

Check Out Our Whitepaper Library. Click Here.
Helpful Member!SantaMufasa (TechnicalUser)
25 Oct 06 11:55
Paul,

Could you please tell us about the functionality that you expect from AUTOGROW that you do not receive from AUTOEXTEND?

santaMufasa
(aka Dave of Sandy, Utah, USA)
[I can provide you with low-cost, remote Database Administration services: see our website and contact me via www.dasages.com]

ptheriault (IS/IT--Management)
25 Oct 06 12:04
Dave,
I had a process fail last night because the datafile within the tablespace was full.  When I looked at the datafile I noticed that auto extent was set to 'NO'  I guess my question is if this was set to YES would it just have added more extents to the data file and kept on processing?  I still very new to Oracle and trying to figure these things out.  I also checked the quota for the login.  It is set to -1 which as I understand is unlimited.  At first I thought that the user might have used up all of its quota.

- Paul
- Database performance looks fine, it must be the Network!

Helpful Member!karluk (MIS)
25 Oct 06 12:27
What reason do you have to think your tablespace is "autogrow".  I've never heard of this term connected to Oracle, although I believe that it it used in the SQL Server world.  The standard way of providing for automatic growth in Oracle is to set the individual data files to "auto extend" which, as you've already verified, is not set on this tablespace's data files.
ptheriault (IS/IT--Management)
25 Oct 06 12:33
So if I understand you, I can't set the tablespace to autogrow.  I should set the datafiles inside the tablespace to auto extend?    Is there any negative to auto extend?  Would it be better for me to manually grow the data files?

- Paul
- Database performance looks fine, it must be the Network!

Helpful Member!SantaMufasa (TechnicalUser)
25 Oct 06 12:48
Paul, Karl is correct. The method by which we provide automatic allocation of space on an as-needed basis in Oracle is the AUTOEXTEND feature.

You (as a DBA) can make any of your existing, non-autoextending database datafiles AUTOEXTEND by executing a command similiar to this actual command:

CODE

ALTER DATABASE DATAFILE 'D:\DHUNT\ORACLEDATA\DBDATA\DHUNT\DHUNTDATA201.DBF'
AUTOEXTEND ON NEXT 10M MAXSIZE 2000M;

Database altered.
I, personally, prefer a 10-megabyte initial size, a 10-megabyte increment value, and a 2GB maximum size (since some operating systems have a very real problem with files that exceed 2GB).

You can find the names of your database datafiles by:

CODE

select tablespace_name, file_name from dba_data_files;

TABLESPACE_NAME                FILE_NAME
------------------------------ -------------------------------------------------
TEMP                           D:\DHUNT\ORACLEDATA\DBDATA\DHUNT\DHUNTTEMP01.DBF
SYSTEM                         D:\DHUNT\ORACLEDATA\DBDATA\DHUNT\DHUNTSYS01.DBF
RBS                            D:\DHUNT\ORACLEDATA\DBDATA\DHUNT\DHUNTRBS01.DBF
DATA1                          D:\DHUNT\ORACLEDATA\DBDATA\DHUNT\DHUNTDATA101.DBF
DATA2                          D:\DHUNT\ORACLEDATA\DBDATA\DHUNT\DHUNTDATA201.DBF
You can designate a specific file to AUTOEXTEND when you create the tablespace. This is how I do it (including the optional [but very nice] specification for local extent management):

CODE

CREATE TABLESPACE <ts-name> DATAFILE '<fully qualified file-name>' SIZE 10M
AUTOEXTEND ON NEXT 10M MAXSIZE 200M
EXTENT MANAGEMENT LOCAL AUTOALLOCATE;
If your existing datafiles approach their 2GB maximums, you can add another autoextending datafile:

CODE

ALTER TABLESPACE <ts-name> ADD DATAFILE '<fully qualified file-name>' SIZE 10M
AUTOEXTEND ON NEXT 10M MAXSIZE 200M;
Notice that when altering a tablespace to add a datafile, you do not (re)specify the "EXTENT MANAGEMENT..." clause.

Let us know if this provides you with the insight you need/want.

santaMufasa
(aka Dave of Sandy, Utah, USA)
[I can provide you with low-cost, remote Database Administration services: see our website and contact me via www.dasages.com]

ptheriault (IS/IT--Management)
25 Oct 06 13:26
Karl and Dave,
Excellent stuff.  Thank you both for your reponse.

- Paul
- Database performance looks fine, it must be the Network!

Start A New Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Promoting, selling, recruiting and student posting
are not allowed in the forums.
Posting Policies

LINK TO THIS FORUM!
(Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum)
TITLE: Oracle: Oracle release 10g Forum at Tek-Tips
URL: http://www.tek-tips.com/threadminder.cfm?pid=1177
DESCRIPTION: Oracle: Oracle release 10g technical support forum and mutual help system for computer professionals. Selling and recruiting forbidden.