使用数据库字典和动态性能视图.ppt_第1页
使用数据库字典和动态性能视图.ppt_第2页
使用数据库字典和动态性能视图.ppt_第3页
使用数据库字典和动态性能视图.ppt_第4页
使用数据库字典和动态性能视图.ppt_第5页
已阅读5页,还剩15页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、使用数据库字典和动态性能视图,目标,学完这个课程,你应该可以掌握你下内容: 区别内置的数据库对象 区别数据字典的内容和用法 理解数据字典视图是如何创建的 区别数据字典视图的种类 查询数据字典和动态性能视图 理解administrative script 命名规则,内置的数据库对象,Other objects created with the database: Data Dictionary Performance tables PL/SQL packages Database event triggers,Data Dictionary,Central to every Oracle dat

2、abase Describes the database and its objects Contains read-only tables and views Stored in the SYSTEM tablespace Owned by the user SYS Maintained by the Oracle server Accessed with SELECT,Control files,Data files,Redo Log files,Database,Data Dictionarytables,Base Tables and Data Dictionary Views,The

3、 data dictionary contains two parts: Base tables Stores description of the database Created with CREATE DATABASE Data dictionary views Used to simplify the base table information Accessed through public synonyms Created with the catalog.sql script,Creating Data Dictionary Views,ScriptPurpose catalog

4、.sql Creates commonly used data dictionaryviews and synonyms catproc.sqlRuns scripts required for server-sidePL/SQL,Data Dictionary Contents,The data dictionary provides information about: Logical and physical database structures Definitions and space allocations of objects Integrity constraints Use

5、rs Roles Privileges Auditing,How the Data Dictionary is Used,Primary uses: Oracle server uses it to find information about: Users Schema objects Storage structures Oracle server modifies it when a DDL statement is executed. Users and DBAs use it as a read-only reference for information about the dat

6、abase.,Data Dictionary View Categories,Three sets of static views Distinguished by their scope: DBA: What is in all the schemas ALL: What the user can access USER: What is in the users schema,USER_xxx Objects owned by the current user,ALL_xxx Objects accessible by the current user,DBA_xxx All of the

7、 objects in the database,Data Dictionary Examples,General Overview DICTIONARY, DICT_COLUMNS Schema objects DBA_TABLES, DBA_INDEXES, DBA_TAB_COLUMNS, DBA_CONSTRAINTS Space allocation DBA_SEGMENTS, DBA_EXTENTS Database structure DBA_TABLESPACES, DBA_DATA_FILES,Dynamic Performance Tables,Virtual tables

8、 Record current database activity Continually updated while the database is operational Information is accessed from memory and control file Used to monitor and tune the database Owned by SYS user Synonyms begin with V$ Listed in V$FIXED_TABLE,Dynamic Performance Table Examples,V$CONTROLFILE V$DATAB

9、ASE V$DATAFILE V$INSTANCE V$PARAMETER V$SESSION V$SGA $SPPARAMETER V$TABLESPACE V$THREAD V$VERSION,Administrative Scripts Naming Conventions,Summary,In this lesson, you should have learned how to: Identify built-in database objects Identify the contents and uses of the data dictionary Understand how data dictionary views are created Identify data dictionary view categories Query the data dictionary and dynamic performance views Understand administrative script naming convention

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论