In addition to the preceding view, Oracle also has a set of virtual tables used to record the current database activity. As the name suggests, dynamic performance tables are not real tables. Therefore, not all users can access these tables. However, the database administrator is allowed to query and create views of these tables. The administrator can also grant other users the permission to access these views.
SYS users have dynamic performance tables and all table names starting with V _ $. A view is created for these tables, while a synonym is created for the view. The synonym name starts with "V $.
Display the status, Logon Time, and user name of the V $ SESSION View:
- SQL>SELECTStatus, logon_time, sid, usernameFromV $ session;
Displays information about each log group:
- SQL>SELECT*FromV $ LOG;
Display the database ID, database name, and log mode in the V $ DATABSE View:
- SQL>SELECTDbid,Name, Created, log_modeFromV $Database;
You can use the following code to query information about a dictionary table:
- SQL>SELECTCommentsFromDictionary table_name ='Dictionary'/
For more information about Oracle, see Oracle topics page http://www.bkjia.com/topicnews.aspx? Tid = 12
The data dictionary mainly provides all information in the database. Therefore, it can be used to view the required data through various views. The read-only format of the data dictionary prevents any user from editing or modifying it.