Oracle Data Dictionary: $ v _

Source: Internet
Author: User

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:

  1. SQL>SELECTStatus, logon_time, sid, usernameFromV $ session;

Displays information about each log group:

  1. SQL>SELECT*FromV $ LOG;

Display the database ID, database name, and log mode in the V $ DATABSE View:

  1. SQL>SELECTDbid,Name, Created, log_modeFromV $Database;

You can use the following code to query information about a dictionary table:

  1. 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.

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.