Home » RDBMS Server » Server Administration » Tables
Tables [message #62410] Tue, 20 July 2004 20:49 Go to next message
Sam
Messages: 255
Registered: April 2000
Senior Member
hi can anyone tell me the diff between the following queries and what they are returning, just confused.

SQL> SELECT COUNT(*) FROM DICT;

  COUNT(*)
----------
       788

SQL> SELECT COUNT(*) FROM DBA_TABLES;

  COUNT(*)
----------
      6725

SQL> SELECT COUNT(*) FROM DBA_OBJECTS WHERE OBJECT_TYPE='TABLE';

  COUNT(*)
----------
      6728
SQL> SELECT COUNT(*) FROM ALL_TABLES;

  COUNT(*)
----------
      6725

Thanx in advance

Sam.
Re: Tables [message #62425 is a reply to message #62410] Wed, 21 July 2004 05:54 Go to previous message
Frank Naude
Messages: 4587
Registered: April 1998
Senior Member
Hi Sam,

These views are clearly described in the Oracle Server Reference Guide. Please look it up.

Here is a quick summary:

DICT/DICTIONARY - contains descriptions of data dictionary tables and views.
DBA_TABLES - describes all relational tables in the database.
DBA_OBJECTS - describes all objects in the database.
ALL_TABLES - describes all relational tables accessible to the current user.

Best regards.

Frank
Previous Topic: want to monitoring a pl/sql block
Next Topic: ora-01002
Goto Forum:
  


Current Time: Thu Jan 09 03:57:45 CST 2025