INDX tablespace in increasing
Hi,
In our production database, we've two index tablespaces. These are continuously increasing (about 300 mb per day). Some days before i've added some more datafiles to these tabelspace. But it is not possible to add space everytime. So what should be the reason behind it?How can I analyze this? How do I proceed to solve this issue?
Thanks in advance.
do you delete large amonts of data?
Do you delete larege amounts of data from these tables, if not then you will hardly reclaim any space.
As for reducing the datafile size you need to find which extents are at the end of the datafile you can then rebuild them so it will move the extents
Use the script below:
SET VERIFY OFF
PROMPT This database contains the following datafiles:
SELECT file_name FROM dba_data_files;
ACCEPT fname PROMPT 'Specify a datafile whose contents are to be determined: '
TTITLE CENTER 'Database Segments in File &fname' SKIP 2
COLUMN stype FORMAT A15 JUSTIFY C HEADING 'Segment Type
COLUMN sown FORMAT A15 JUSTIFY C HEADING 'Segment Owner'
COLUMN sname FORMAT A40 JUSTIFY C HEADING 'Segment Name'
BREAK ON stype SKIP 1 ON sown SKIP 1
SELECT e.segment_type stype,
e.owner sown,
e.segment_name sname
FROM dba_extents e,
dba_data_files f
WHERE f.file_name = '&fname'
AND e.file_id = f.file_id
ORDER BY e.segment_type, e.owner, e.segment_name;
TTITLE OFF
CLEAR BREAKS
UNDEFINE fname
HTH