Dynamic Performance Views

Dynamic Performance Views

       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, contain information such as the following:

       System and session parameters
              ■Memory usage and allocation
              ■File states (including RMAN backup files)
              ■Progress of jobs and tasks
              ■SQL execution
              ■Statistics and metrics
       The dynamic performance views have the following primary uses:

              ■Oracle Enterprise Manager uses the views to obtain information about the database (see "Oracle Enterprise Manager" on page 18-2).

              ■Administrators can use the views for performance monitoring and debugging.

Contents of the Dynamic Performance Views

       Dynamic performance views are sometimes called fixed views because they cannot be altered or removed by a database administrator. However, database administrators can query and create views on the tables and grant access to these views to other users.
       SYS owns the dynamic performance tables, whose names begin with V_$. Views are created on these tables, and then public synonyms prefixed with V$. For example, the V$DATAFILE view contains information about data files. The V$FIXED_TABLE view contains information about all of the dynamic performance tables and views.
       For almost every V$ view, a corresponding GV$ view exists. In Oracle Real Application Clusters (Oracle RAC), querying a GV$ view retrieves the V$ view information from all qualified database instances (see "Database Server Grid" on page 17-13).
       When you use the Database Configuration Assistant (DBCA) to create a database, Oracle automatically creates the data dictionary. Oracle Database automatically runs the catalog.sql script, which contains definitions of the views and public synonyms for the dynamic performance views. You must run catalog.sql to create these views and synonyms.

Storage of the Dynamic Performance Views

       Dynamic performance views are based on virtual tables built from database memory structures. Thus, they are not conventional tables stored in the database. Read consistency is not guaranteed for the views because the data is updated dynamically.
       Because the dynamic performance views are not true tables, the data is dependent on the state of the database and instance. For example, you can query V$INSTANCE and V$BGPROCESS when the database is started but not mounted. However, you cannot query V$DATAFILE until the database has been mounted.



http://trailblizer.blog.163.com/blog/static/596303642009964470391/

http://blog.chinaunix.net/uid-27570589-id-3322338.html

發佈了93 篇原創文章 · 獲贊 243 · 訪問量 11萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章