Home » RDBMS Server » Performance Tuning » SYSAUX Tablespace (Oracle 10g/Windows XP)
SYSAUX Tablespace [message #515912] Thu, 14 July 2011 03:22 Go to next message
gxeon
Messages: 53
Registered: January 2011
Location: Mumbai
Member
Hello Sir


In my Production Database,the SYSAUX tablespace is 80% full now and i want to make some more free space by removing old snapshots by using the fallowing statement.

BEGIN dbms_workload_repository.drop_snapshot_range(low_snap_id => X, high_snap_id=>Y);
END;

Is it the correct way to free up SYSAUX tablespace and if i do it will be affect some other part of Database.

please Help

I am new to Oracle DBA.


GG
Re: SYSAUX Tablespace [message #515946 is a reply to message #515912] Thu, 14 July 2011 05:16 Go to previous messageGo to next message
Michel Cadot
Messages: 68645
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
Note that dropping old snapshots do not retrieve space (it is still allocated to the tables) but it allows you to add new snapshots without allocating new space (Oracle uses the space it releases inside the tables).

To know who is using the space inside SYSAUX use the following query:
select occupant_desc, space_usage_kbytes 
from v$sysaux_occupants
where space_usage_kbytes > 0
order by space_usage_kbytes desc
/


Regards
Michel
Re: SYSAUX Tablespace [message #516117 is a reply to message #515946] Fri, 15 July 2011 02:49 Go to previous messageGo to next message
raj9999
Messages: 49
Registered: June 2011
Member
Hi gxeon,

Try to find the objects which are taking large amount of space in SYSAUX tablespace through below queries. once done, post the output.


col Mb form 9,999,999  
col SEGMENT_NAME form a40  
col SEGMENT_TYPE form a6  
set lines 120  
select sum(bytes/1024/1024) Mb, segment_name,segment_type from dba_segments  
where  tablespace_name = 'SYSAUX'  
and segment_name like 'WRI$_OPTSTAT%'  
and segment_type='TABLE'  
group by segment_name,segment_type order by 1 asc 
/






col Mb form 9,999,999  
col SEGMENT_NAME form a40  
col SEGMENT_TYPE form a6  
set lines 120  
select sum(bytes/1024/1024) Mb, segment_name,segment_type from dba_segments  
where  tablespace_name = 'SYSAUX'  
and segment_name like '%OPT%'  
and segment_type='INDEX'  
group by segment_name,segment_type order by 1 asc  
/ 

Re: SYSAUX Tablespace [message #516124 is a reply to message #516117] Fri, 15 July 2011 03:06 Go to previous message
Michel Cadot
Messages: 68645
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
And then what will you do with the result?
Why "segment_name like 'WRI$_OPTSTAT%'" and "segment_name like '%OPT%'"?

regards
Michel
Previous Topic: Query Optimization Help - Date-Range Matching results in MERGE JOIN CARTESIAN
Next Topic: Precise I3 vs. OEM Grid
Goto Forum:
  


Current Time: Fri Apr 26 11:42:22 CDT 2024