Newbie: tablespace
DBAsupport.com Forums - Powered by vBulletin
Results 1 to 3 of 3

Thread: Newbie: tablespace

  1. #1
    Join Date
    May 2001
    Posts
    17
    Newbie question:

    How to know the tablespace has auto-extend features?

    The system tablespace (dictionary) in my database is almost filled-up. Does it have auto-extend features?

    Please help me.

  2. #2
    Join Date
    Oct 2000
    Location
    Dallas:TX:USA
    Posts
    407
    AUTOEXTENSIBLE is a feature at datafile level (not tablespace level)

    If your SYSTEM tablespace (meaning the datafiles underneath) is almost full you can do any of the following --

    1. RESIZE the datafile to increase in size --

    ALTER DATABASE DATAFILE 'C:\ORACLE\ORADATA\DBA1\SYSTEM01.DBF' RESIZE 200000K

    2. Add a new datafile to the System tablespace --

    ALTER TABLESPACE "SYSTEM" ADD DATAFILE 'C:\ORACLE\ORADATA\DBA1\SYSTEM02.DBF' SIZE 10M

    3. Set the AUTOEXTEND on --

    ALTER DATABASE DATAFILE 'C:\ORACLE\ORADATA\DBA1\SYSTEM01.DBF' AUTOEXTEND ON NEXT 20K

    - Rajeev
    Rajeev Suri

  3. #3
    Join Date
    Feb 2001
    Posts
    123
    You can see whether autoextend is enabled for a datafile by querying as follows, depending on Oracle version...

    In Oracle 7

    select f.tablespace_name, f.file_name, e.maxextend, e.inc
    from dba_data_files f, sys.filext$ e
    where f.file_id = e.file#;

    Note that if the sys.filext$ view does not exist, no datafiles are set to autoextend.

    In Oracle 8,

    select f.tablespace_name, f.file_name, f.maxbytes, f.increment_by
    from dba_data_files f
    where f.autoextensible = 'YES';

    Note that the inc and increment_by columns are both in database blocks.

    HTH

    David.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width