Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Oracle SQL Syntax: V$ views

I've noticed that Oracle comes with some special tables/views (e.g. V$SESSION) that are not contained in dba_tables nor in dba_views.

Why is that?

Can someone explain when tables or views are part of dba_tables / dba_views and when not?

like image 762
Will Avatar asked May 09 '26 14:05

Will


2 Answers

All views are listed in DBA_VIEWS.

Oracle's V$ objects are actually public synonyms (and they do appear in DBA_SYNONYMS). V$SESSION is a synonym for SYS.V_$SESSION which does appear in DBA_VIEWS. In general, the V$ objects are public synonyms for views in the SYS schema with the prefix V_$ and the GV$ are public synonyms for views in the SYS schema with the prefix GV_$.

like image 159
Justin Cave Avatar answered May 11 '26 06:05

Justin Cave


Throughout its operation, Oracle Database maintains a set of virtual tables that record current database activity. These views are called dynamic performance views because they are continuously updated while a database is open and in use. The views, also sometimes called V$ views

...I'll let Oracle explain ;) Also see here.

like image 28
tbone Avatar answered May 11 '26 05:05

tbone



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!