0

For one of my 11.2g databases, select * from dba_tablespace_usage_metrics returns no rows.

Why is that and how can I fix it?

Thank you in advance.

1
  • 1
    How many tablespaces are in the database? There is a bug where that view stops working if there's too many rows in dba_tablespaces. Commented Sep 11, 2017 at 15:39

1 Answer 1

2

Typically caused by:

Bug 18921384 - DBA_TABLESPACE_USAGE_METRICS VIEW DOES NOT RETURN ROWS WHEN DB_FILES LIMIT IS REACHED

To verify:

show parameter db_files

select count(*) from v$datafile;

Then increase db_files if needed or upgrade to a newer version where it is fixed.

Another possible cause:

Bug 16317020 - Records missing from dba_tablespace_usage_metrics (Doc ID 16317020.8)

Also fixed in newer version, and one-off patch is also available.

1
  • 1
    Increasing the db_files parameter fixed the issue. The parameter was actually one higher than the count returned by select count(*) from v$datafile; However, I upped the db_files parameter by 5 just to see what would happen and it fixed the issue. Commented Sep 11, 2017 at 16:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.