Skip to Main Content

Breadcrumb

Question and Answer

Connor McDonald

Thanks for the question, Michal.

Asked: March 27, 2018 - 1:36 pm UTC

Last updated: March 30, 2018 - 5:03 am UTC

Version: 12c

Viewed 10K+ times! This question is

You Asked

I shrinked a tablespace SYSAUX but I have got segments towards the end of the datafile, the resize command will failed.
I checked type segment names and it type this query:
select
file_id,
block_id,
block_id + blocks - 1 end_block,
owner,
segment_name,
partition_name,
segment_type
from
dba_extents
WHERE
tablespace_name = 'SYSAUX'
union all
select
file_id,
block_id,
block_id + blocks - 1 end_block,
'free' owner,
'free' segment_name,
null partition_name,
null segment_type
from
dba_free_space
WHERE
tablespace_name = 'SYSAUX'
order by
1,2
/

My SYSAUX sizes I aded in excel file. How to simple reduce a MAX_SZ_MB? Have you got a good solution?

and Connor said...

This is covered in Mos note 1563921.1. In a nutshell -

- Reorganize the Segments from the SYSAUX TableSpace to another, temporary, SYSAUX_TEMP TableSpace
- Reorganize the Segments from the SYSAUX TableSpace to the original SYSAUX TableSpace

but please check the note - it covers *several* things to be aware of before you perform the activity.

Rating

  (1 rating)

Is this answer out of date? If it is, please let us know via a Comment

Comments

A reader, March 28, 2018 - 1:16 pm UTC

Can you provide Mos note 1563921.1. details here because I does not have oracle support.
Connor McDonald
March 30, 2018 - 5:03 am UTC

That would sound like a very good reason to *get* oracle support.

I'm not trying to be annoying here - if you don't have any oracle support, why would you be concerned about sysaux?. You have way way bigger issues - no security patches, so bug fixes, you're just waiting to get hacked and all of your data destroyed.

More to Explore

Administration

Need more information on Administration? Check out the Administrators guide for the Oracle Database