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

Breadcrumb

Question and Answer

Connor McDonald

Thanks for the question, Prof. Dr. Christian.

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

Last updated: August 13, 2025 - 5:17 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

Rating

  (1 rating)

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

Comments

Data recovery should be possible

Tailor Kaplon, August 12, 2025 - 12:27 pm UTC

I won´t arguee with Oracle XE/Free limitations, but it should provide a way to open read only (after a "ORA-12954: The request exceeds the maximum allowed database size of 12 GB.") to allow a simple EXP of relevant data, even to migrate it to a full Standard or Enterprise edition.

Can this be claimed to Oracle personal ?
Connor McDonald
August 13, 2025 - 5:17 am UTC

The problem here is .... at what point do you draw a line?

I could load 1TB database and make it read only...

More to Explore

Data Pump

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