Oracle dba_data_files table doesn't exist

Eli Courtwright picture Eli Courtwright · Sep 14, 2009 · Viewed 19.2k times · Source

I've been trying to access the dba_data_files table to see whether the autoextend is turned on for my data files. However, even though I'm using Oracle 10g, this table seems to not exist:

Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options

SQL> select * from dba_data_files;
select * from dba_data_files
              *
ERROR at line 1:
ORA-00942: table or view does not exist

Is there some other way to check and even change whether a data file for a particular tablespace has the autoextend option turned on?

Answer

dpbradley picture dpbradley · Sep 14, 2009

You should make sure you're connecting with an account that has privileges to see this view - try the SYSTEM account if you have that password, otherwise have your DBA grant the SELECT_CATALOG_ROLE to the account you are using.