gotchaModerate
What's the difference between a v$ view and its dba_ equivalent?
Viewed 0 times
theequivalentwhatviewdifferenceitsbetweendba_and
Problem
What's the general difference between a
v$ view and its dba_ equivalent? Take, for example, v$tablespace and dba_tablespaces.Solution
The easiest way to think of it is:
-
-
Using your example:
-
DBA_ / USER_ / ALL_ views are built on the data dictionary - they're not available if the database is not mounted and opened.-
V$ views tend to run against the instance, and therefore may be available if the database is not mounted, or is not mounted and opened, depending on the nature of the view.Using your example:
V$TABLESPACEis a view onX$KCCTS, which is an internal memory structure.
DBA_TABLESPACESis a view on the data dictionary tableSYS.TS$
Context
StackExchange Database Administrators Q#3958, answer score: 15
Revisions (0)
No revisions yet.