Take the 2-minute tour ×
Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. It's 100% free, no registration required.

What's the general difference between a v$ view and its dba_ equivalent? Take, for example, v$tablespace and dba_tablespaces.

share|improve this question

1 Answer 1

up vote 9 down vote accepted

The easiest way to think of it is:

  • 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$TABLESPACE is a view on X$KCCTS, which is an internal memory structure.
  • DBA_TABLESPACES is a view on the data dictionary table SYS.TS$
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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