Skip to Main Content
  • Questions
  • Oracle Database 23Free SYSAUX size causing ORA-12954

Breadcrumb

XMAS_TREE

The AskTOM team is taking a break over the holiday season, so we're not taking questions or responding to comments, but we might still sneak in a few Office Hours sessions! Thanks for being a member of the AskTOM community.

Question and Answer

Connor McDonald

Thanks for the question, Prof. Dr. Christian.

Asked: December 10, 2024 - 6:07 pm UTC

Last updated: December 11, 2024 - 6:27 am UTC

Version: 23ai Free

Viewed 1000+ times

You Asked

Hi Tom,
I’m encountering an issue with my Oracle Database 23Free. It throws the ORA-12954 error: "The request exceeds the maximum allowed database size of 12 GB." After investigating the database files, I discovered that the SYSAUX tablespace is the main contributor to the size issue.
/opt/oracle/oradata/FREE/FREEPDB1/sysaux01.dbf       6.1GB
/opt/oracle/oradata/FREE/FREEPDB1/system01.dbf       0.6GB
/opt/oracle/oradata/FREE/FREEPDB1/undotbs01.dbf       0.3GB
/opt/oracle/oradata/FREE/FREEPDB1/users01.dbf       0.3GB
/opt/oracle/oradata/FREE/pdbseed/sysaux01.dbf       0.3GB
/opt/oracle/oradata/FREE/pdbseed/system01.dbf       0.3GB
/opt/oracle/oradata/FREE/pdbseed/undotbs01.dbf       0.1GB
/opt/oracle/oradata/FREE/sysaux01.dbf               6.6GB
/opt/oracle/oradata/FREE/system01.dbf               1.2GB
/opt/oracle/oradata/FREE/undotbs01.dbf               0.6GB
/opt/oracle/oradata/FREE/users01.dbf               0.0GB


Upon further examination using
select * from V$SYSAUX_OCCUPANTS;

it seems that the majority of the space is being utilized by:
• SM/AWR
• SM/OPTSTAT

To address this, I attempted to purge statistics using the following PL/SQL block:
BEGIN
   dbms_stats.purge_stats(dbms_stats.purge_all);
END;

However, I received the ORA-12954 error again during this process.

Do you have any advice on how to resolve this issue and bring the database back within the size limit? Your help would be greatly appreciated!
Best regards,
Christian

and Connor said...

Some background here

https://connor-mcdonald.com/2023/07/17/using-express-or-free-edition-a-potential-trap/

and a guide to an "optiomal" free database setup here

https://connor-mcdonald.com/2023/12/18/the-ultimate-database-free-edition/

The problem here is that once you hit 12G its pretty hard to rectify unless you can reclaim some space by dropping things.

If you cant do that, then a full datapump of the database, then erase it, and recreate as per my "ultimate" guide above and then re-import

We're not taking comments currently, so please try again later if you want to add a comment.

More to Explore

Data Pump

All of the database utilities including Data Pump are explained in the Utilities guide.