5 Copyright © Oracle Corporation, 2001. All rights reserved. 使用数据库字典和动态性能视图.

Slides:



Advertisements
Similar presentations
5 Copyright © 2005, Oracle. All rights reserved. Managing Database Storage Structures.
Advertisements

3 Managing an Oracle Instance. Objectives Setting up operating system and password file authentication Creating the parameter file Starting up an instance.
5 Copyright © Oracle Corporation, All rights reserved. Using Data Dictionary and Dynamic Performance Views Cui Zhou Oracle Certified Professional.
IT Database Administration Section 04. The Oracle 9i Data Dictionary  A set of tables and views owned by SYS and accessible using SQL  Can be.
5 Copyright © Oracle Corporation, All rights reserved. Using Data Dictionary and Dynamic Performance Views.
15 Copyright © 2004, Oracle. All rights reserved. Monitoring and Managing Memory.
INTRODUCTION TO ORACLE Lynnwood Brown System Managers LLC Installation – Lecture 2 Copyright System Managers LLC 2007 all rights reserved.
数据挖掘实验 1 Apriori 算法编程实现. 数据挖掘实验一 (20’) 实验目的:了解关联规则在数据挖掘中的 应用,理解和掌握关联挖掘的经典算法 Apriori 算法的基本原理和执行过程并完成程 序设计。 实验内容:对给定数据集用 Apriori 算法进行 挖掘,找出其中的频繁集并生成关联规则。
地理信息系统概述. 数据和信息 (Data & Information) 数据 原始事实 如:员工姓名, 数据可以有数值、图形、声音、视觉数据等 信息 以一定规则组织在一起的事实的集合。
吉林大学远程教育课件 主讲人 : 杨凤杰学 时: 64 ( 第六十二讲 ) 离散数学. 最后,我们构造能识别 A 的 Kleene 闭包 A* 的自动机 M A* =(S A* , I , f A* , s A* , F A* ) , 令 S A* 包括所有的 S A 的状态以及一个 附加的状态 s.
聚合物在生物高分子分离中的应用 王延梅 中国科学技术大学高分子科学与工程系 Tel
数据库与智能网络研究室. © htttp://dbin.jlu.edu.cn 数据库系统原理复习大纲.
语义分析 主要内容:  语义分析概述 ( 必要性、功能、描述方法 )  符号表  类型表达式  声明和程序体的语义分析.
A Guide to Oracle9i1 Advanced SQL And PL/SQL Topics Chapter 9.
13 Copyright © Oracle Corporation, All rights reserved. RMAN Complete Recovery.
Chapter Oracle Server An Oracle Server consists of an Oracle database (stored data, control and log files.) The Server will support SQL to define.
I Copyright © 2004, Oracle. All rights reserved. Introduction.
11 Copyright © Oracle Corporation, All rights reserved. RMAN Backups.
Database Security and Auditing: Protecting Data Integrity and Accessibility Chapter 6 Virtual Private Databases.
9 Copyright © 2005, Oracle. All rights reserved. Administering User Security.
7202ICT Database Administration Lecture 7 Managing Database Storage Part 2 Orale Concept Manuel Chapter 3 & 4.
The protection of the DB against intentional or unintentional threats using computer-based or non- computer-based controls. Database Security – Part 2.
Copyright  Oracle Corporation, All rights reserved. 1 Oracle Architectural Components.
Copyright © Oracle Corporation, All rights reserved. 1 Oracle Architectural Components.
7 Copyright © 2004, Oracle. All rights reserved. Administering Users.
刘相兵 (Maclean Liu) 介绍 dbms_registry PL/SQL 程序包.
Controlling User Access. Objectives After completing this lesson, you should be able to do the following: Create users Create roles to ease setup and.
What is a schema ? Schema is a collection of Database Objects. Schema Objects are logical structures created by users to contain, or reference, their data.
Introduction to the new mainframe © Copyright IBM Corp., All rights reserved. Chapter 12 Understanding database managers on z/OS.
17 Copyright © Oracle Corporation, All rights reserved. Recovery Catalog Creation and Maintenance.
Database Administration 3.Using Administration Tools.
Introduction to Oracle. Oracle History 1979 Oracle Release client/server relational database 1989 Oracle Oracle 8 (object relational) 1999.
7 Copyright © 2005, Oracle. All rights reserved. Managing Undo Data.
1 Database Management Systems (DBMS). 2 Database Management Systems (DBMS) n Overview of: ä Database Management Components ä Database Systems Architecture.
Controlling User Access Fresher Learning Program January, 2012.
5 Copyright © 2005, Oracle. All rights reserved. Managing Database Storage Structures.
14 Copyright © Oracle Corporation, All rights reserved. SQL Workshop.
表单自定义 “ 表单自定义 ” 功能是用于制作表单的 工具,用数飞 OA 提供的表单自定义 功能能够快速制作出内容丰富、格 式规范、美观的表单。
13 Copyright © Oracle Corporation, All rights reserved. Maintaining Data Integrity.
MapXtreme2004 培训 James.Liu. M a p X t r e m e 内容  MapXtreme2004 概览  地图及图层管理  数据管理  数据查询  几何对象  专题图.
55 Creating Data Dictionary Views and Standard Packages.
10 Copyright © Oracle Corporation, All rights reserved. User-Managed Backups.
3 Copyright © 2005, Oracle. All rights reserved. Creating an Oracle Database.
Chapter 6 Virtual Private Databases
13 Copyright © Oracle Corporation, All rights reserved. Controlling User Access.
1 Copyright © 2006, Oracle. All rights reserved. Controlling User Access ( 사용자 접근 제어 )
3 Copyright © 2007, Oracle. All rights reserved. Using the RMAN Recovery Catalog.
  Yunsheng Liu Yunsheng Liu2 4.1 The Features of a DBMS User interfaces Languages processing Data Manipulating Transaction processing Data.
1 Copyright © 2009, Oracle. All rights reserved. Controlling User Access.
Innovation Intelligence ® Workshop – Riser VIV. Copyright © 2015 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved. 学习内容 实用流固耦合的设置方法.
韩文数据库使用说明 鲁锦松. 主要内容 一、为什么要用数据库 二、怎样利用中文数据库 三、怎样利用韩文数据库.
8 Copyright © 2005, Oracle. All rights reserved. Managing Schema Objects.
3 Copyright © 2004, Oracle. All rights reserved. Database Architecture Comparison.
HUAWEI TECHNOLOGIES CO., LTD. 文件系统基础. Copyright © 2013 Huawei Technologies Co., Ltd. All rights reserved. Page 2 前言 华为网络设备的配置文件和 VRP 系统文件都保存在物理存储介质中,所以.
4 Copyright © Oracle Corporation, All rights reserved. 数据库创建.
4 Copyright © 2004, Oracle. All rights reserved. Advanced Interface Methods.
11 Copyright © 2004, Oracle. All rights reserved. Performing a Migration Using Oracle Migration Workbench (Part II)
3 Copyright © 2006, Oracle. All rights reserved. Designing and Developing for Performance.
6 Copyright © 2005, Oracle. All rights reserved. Managing Database Storage Structures.
16 Copyright © 2004, Oracle. All rights reserved. Testing the Migrated Oracle Database.
9 Copyright © 2004, Oracle. All rights reserved. Getting Started with Oracle Migration Workbench.
8 Copyright © Oracle Corporation, All rights reserved. Managing Tablespaces and Data files.
23 Copyright © 2004, Oracle. All rights reserved. Preferring the Past: Flashback.
Oracle Database Architectural Components
15 Copyright © Oracle Corporation, All rights reserved. Managing Users.
9 Copyright © 2005, Oracle. All rights reserved. Managing Undo Data.
Controlling User Access
Table spaces.
Using Data Dictionary and Dynamic Performance Views
管理表空间和数据文件.
Presentation transcript:

5 Copyright © Oracle Corporation, All rights reserved. 使用数据库字典和动态性能视图

5-2 Copyright © Oracle Corporation, All rights reserved. 目标 学完这个课程,你应该可以掌握你下内容 : 区别内置的数据库对象 区别数据字典的内容和用法 理解数据字典视图是如何创建的 区别数据字典视图的种类 查询数据字典和动态性能视图 理解 administrative script 命名规则

5-3 Copyright © Oracle Corporation, All rights reserved. 内置的数据库对象 Other objects created with the database: Data Dictionary Performance tables PL/SQL packages Database event triggers

5-4 Copyright © Oracle Corporation, All rights reserved. Data Dictionary Central to every Oracle database 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 Dictionary tables

5-5 Copyright © Oracle Corporation, All rights reserved. Base Tables and Data Dictionary Views The 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

5-6 Copyright © Oracle Corporation, All rights reserved. Creating Data Dictionary Views ScriptPurpose catalog.sql Creates commonly used data dictionary views and synonyms catproc.sql Runs scripts required for server-side PL/SQL

5-7 Copyright © Oracle Corporation, All rights reserved. Data Dictionary Contents The data dictionary provides information about: Logical and physical database structures Definitions and space allocations of objects Integrity constraints Users Roles Privileges Auditing

5-8 Copyright © Oracle Corporation, All rights reserved. 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 database.

5-9 Copyright © Oracle Corporation, All rights reserved. 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 user’s schema USER_xxx Objects owned by the current user ALL_xxx Objects accessible by the current user DBA_xxx All of the objects in the database

5-10 Copyright © Oracle Corporation, All rights reserved.

5-11 Copyright © Oracle Corporation, All rights reserved. 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

5-12 Copyright © Oracle Corporation, All rights reserved. Dynamic Performance Tables Virtual tables 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

5-13 Copyright © Oracle Corporation, All rights reserved. Dynamic Performance Table Examples V$CONTROLFILE V$DATABASE V$DATAFILE V$INSTANCE V$PARAMETER V$SESSION V$SGA $SPPARAMETER V$TABLESPACE V$THREAD V$VERSION

5-14 Copyright © Oracle Corporation, All rights reserved.

5-15 Copyright © Oracle Corporation, All rights reserved. Administrative Scripts Naming Conventions Convention cat*.sql dbms*.sql prvt*.plb utl*.sql Description Catalog and data dictionary information Database package specifications Wrapped database package code Views and tables for database utilities

5-16 Copyright © Oracle Corporation, All rights reserved. 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 conventions

5-17 Copyright © Oracle Corporation, All rights reserved. Practice 5 Overview This practice covers the following topics: Identify the components and contents of the data dictionary Query the data dictionary

5-18 Copyright © Oracle Corporation, All rights reserved.

5-19 Copyright © Oracle Corporation, All rights reserved.

5-20 Copyright © Oracle Corporation, All rights reserved.