Data Dictionary and Dynamic Performance Views(数据字典和动态性能视图)

Overview of the Data Dictionary

Because Oracle Database stores data dictionary data in tables, just like other data, users can query the data with SQL.

Contents of the Data Dictionary

The data dictionary consists of the following types of objects:

  • Base tables

    These underlying tables store information about the database. Only Oracle Database should write to and read these tables. Users rarely access the base tables directly because they are normalized and most data is stored in a cryptic format.

  • Views

    These views decode the base table data into useful information, such as user or table names, using joins and WHERE clauses to simplify the information. These views contain the names and description of all objects in the data dictionary. Some views are accessible to all database users, whereas others are intended for administrators only.

The system-supplied DICTIONARY view contains the names and abbreviated descriptions of all data dictionary views.

During database operation, Oracle Database reads the data dictionary to ascertain that schema objects exist and that users have proper access to them. Oracle Database also updates the data dictionary continuously to reflect changes in database structures, auditing, grants, and data.

Cache the Data Dictionary for Fast Access

Much of the data dictionary information is in the data dictionary cache because the database constantly requires the information to validate user access and verify the state of schema objects. Parsing information is typically kept in the caches. The COMMENTS columns describing the tables and their columns are not cached in the dictionary cache, but may be cached in the database buffer cache.

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

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.

Database Object Metadata

The DBMS_METADATA package provides interfaces for extracting complete definitions of database objects. The definitions can be expressed either as XML or as SQL DDL. Two styles of interface are provided: a flexible, sophisticated interface for programmatic control, and a simplified interface for ad hoc querying.

时间: 2024-10-23 07:30:54

Data Dictionary and Dynamic Performance Views(数据字典和动态性能视图)的相关文章

Oracle的基本操作-数据字典和动态性能视图的介绍

三.数据字典和动态性能视图的介绍 1. 数据库的数据字典 (1) DBA_   全库所有的某种对象的数据字典       只有系统用户才有权限查询 (2) ALL_   当前用户创建的对象 + 其他用户授予当前用户使用的对象       当前用户 (3) USER_  当前用户创建的对象       当前用户 操作实例:解锁一个用户hr并改密码SQL> alter user hr account unlock; User altered. SQL> alter user hr identifi

Oracle数据字典和动态性能视图

Oracle数据字典和动态性能视图,布布扣,bubuko.com

数据字典和动态性能视图<五>

数据字典和动态性能视图 介绍:数据字典是什么 数据字典是 oracle 数据库中最重要的组成部分,它提供了数据库的一些系统信息. 动态性能视图记载了例程启动后的相关信息. ? 数据字典 数据字典记录了数据库的系统信息,它是只读表和视图的集合,数据字典的所有者为 sys 用户. 用户只能在数据字典上执行查询操作(select 语句),而其维护和修改是由系统自动完成的. 这里我们谈谈数据字典的组成:数据字典包括数据字典基表和数据字典视图,其中基表存储数据库的基本信息,普通用户不 能直接访问数据字典的

十三、oracle 数据字典和动态性能视图

一.概念数据字典是oracle数据库中最重要的组成部分,它提供了数据库的一些系统信息.动态性能视图记载了例程启动后的相关信息. 二.数据字典1).数据字典记录了数据库的系统信息,它是只读表和视图的集合,数据字典的所有者为sys用户.2).用户只能在数据字典上执行查询操作(select语句),而其维护和修改是由系统自动完成的.3).这里我们谈谈数据字典的组成:数据字典包括数据字典基表和数据字典视图,其中基表存储数据库的基本信息,普通用户不能直接访问数据字典的基表.数据字典视图是基于数据字典基表所建

数据字典和动态性能视图

Built-Indatabase Objects Other objects created with the database: ·Data dictionary ·Performance tables ·PL/SQL packages ·Database event triggers Data Dictionary ·Central toevery Oracle database ·Describes the database and it's objects ·Contains read-

Oracle Dynamic Performance Views Version 12.2.0.1

Oracle Dynamic Performance ViewsVersion 12.2.0.1 https://www.morganslibrary.org/reference/dyn_perf_view.html General Information Library Note Coming to OpenWorld 2018? Be sure to visit the TidalScale booth in Moscone South and learn how to solve perf

oracle 报警日志、动态性能视图及数据字典

1.查看报警日志 /u01/app/oracle/diag/rdbms/orcl/orcl/trace/alert_orcl.log 实时日志:tail -f  /u01/app/oracle/diag/rdbms/orcl/orcl/trace/alert_orcl.log 跟踪文件 ADR 2.动态性能视图(v$) 保存在内存中 用来访问 实例 内存结构的不断变化的状态的信息(控制文件+实例) session data wait events memory allocations Runni

Oracle_高级功能(7) 数据字典视图和动态性能视图

oracle数据字典 1.概念数据字典是oracle数据库用来存储数据库结构信息的地方.数据字典是用来描述数据库数据的组织方式的,由表和视图组成.数据字典基表是在任何 Oracle 数据库中创建的第一批对象.所有数据库的数据字典表和视图都存储在SYSTEM表空间中.由于当数据库打开时,SYSTEM 表空间始终处于联机状态 ,所以当数据库打开时,数据字典总是可用的.Oracle数据库的SYS用户,拥有数据字典中的所有基表和用户可访问视图.数据字典基表中的数据,对于Oracle 数据库发挥正常功能是

11_Oracle_Admin_数据字典和动态性能表概述

一.数据字典 Data Dictionary 存储的是控制信息:如有多少张表,表的结构等等 Performance tables: 也称为DynamicPerformance tables,即动态性能表,反应了系统的性能特征,是动态的,以表的形式展示,但实际上展示的是内存信息. PL/SQL packages:帮助完成数据库日常管理的程序. Database event triggers:事件触发器,如插入数据时会触发相应的事件. 任何数据库都会有一个SYSTEM tablespace,10g以