-
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.
-
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
-
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|