Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Oracle dba_data_files table doesn't exist

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?

like image 428
Eli Courtwright Avatar asked Sep 14 '09 18:09

Eli Courtwright


People also ask

What is Dba_data_files?

DBA_DATA_FILES describes database files. Note: When you query the DBA_DATA_FILES data dictionary view, Oracle must have access to all tablespaces and their data files if the requested information is not already available in the dictionary.

What is Increment_by in Dba_data_files?

NUMBER. Maximum file size in blocks. INCREMENT_BY. NUMBER. Number of tablespace blocks used as autoextension increment.

What is the difference between bytes and Maxbytes in Dba_data_files?

If you have autoextensible datafiles then you will have MAXBYTES set to the maximum file size you specify when creating the datafile. If you do not use all of that file then you will have MAXBYTES bigger than BYTES. Thats the case when the MAXBYTES will be 0 and logically, yes, the BYTES will be greater than MAXBYTES.


2 Answers

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.

like image 68
dpbradley Avatar answered Sep 20 '22 13:09

dpbradley


You should be able to do this through the oracle enterprise manager under Administration

like image 40
moleboy Avatar answered Sep 20 '22 13:09

moleboy