Oracle Data Dictionary. What Is Data Dictionary The oracle data dictionary is one of the most important components of the oracle DBMS It contains all.

Slides:



Advertisements
Similar presentations
Creating Tables. 2 home back first prev next last What Will I Learn? List and provide an example of each of the number, character, and date data types.
Advertisements

CHAPTER 10 Data Dictionary Basics. Data Dictionary Information regarding objects and events within the database. Super critical that as a DBA or developer.
SQL’s Data Definition Language (DDL) n DDL statements define, modify and remove objects from data dictionary tables maintained by the DBMS n Whenever you.
11 Copyright © 2004, Oracle. All rights reserved. Managing Objects with Data Dictionary Views.
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.
Managing Objects with Data Dictionary Views
Jan. 2014Dr. Yangjun Chen ACS Outline (Ch. 17, 3 rd ed. – Ch. 2, 4 th ed., 5 th ed., 6 th ed.) Database System Architectures System Catalog System.
System Administration Accounts privileges, users and roles
Managing Schema Objects
Database objects User schema DCL Oracle dictionary.
Oracle Database Architecture An Oracle server: –Is a database management system that provides an open, comprehensive, integrated approach to information.
Oracle Database Architecture An Oracle server: –Is a database management system that provides an open, comprehensive, integrated approach to information.
Database Management System LICT 3011 Eyad H. Elshami.
Lecture 3 The Relational DB Model. Learning Objectives That the relational database model takes a logical view of data That the relational model’s basic.
Oracle Database Architecture An Oracle server: –Is a database management system that provides an open, comprehensive, integrated approach to information.
Class #2: Introduction to MySQL (Continued) Where clause (continued) Aggregate Functions Creating users Backing up your database Indexes (if time) Importing.
Chapter Oracle Server An Oracle Server consists of an Oracle database (stored data, control and log files.) The Server will support SQL to define.
Announcements Read JDBC Project Step 5, due Monday.
MS Access Database Connection. Database? A database is a program that stores data and records in a structured and queryable format. The tools that are.
Copyright س Oracle Corporation, All rights reserved. 14 Controlling User Access.
To Presentation on SECURITY By Office of the A.G. (A&E) Punjab, Chandigarh.
INTRODUCTION TO ORACLE Lynnwood Brown System Managers LLC End User Management – Lecture 3 Copyright System Managers LLC 2007 all rights reserved.
I NTRODUCTION OF W EEK 7  Assignment Discussion  Graded: (Creation of Database) (All submitted!)  Naming standard, Logical to physical design.
Controlling User Access. Objectives After completing this lesson, you should be able to do the following: Create users Create roles to ease setup and.
1 Database Administration. 2 Objectives  Understand, create, and drop views  Grant and revoke users’ privileges  Understand and obtain information.
Metadata, Security, and the DBA Chapter 8.1 V3.0 Napier University Dr Gordon Russell.
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.
Roles & privileges privilege A user privilege is a right to execute a particular type of SQL statement, or a right to access another user's object. The.
SQL for the Non - Technician Jeffrey Walsh AnswerThink Consulting Group, Inc.
Controlling User Access Fresher Learning Program January, 2012.
Controlling User Access. 2 home back first prev next last What Will I Learn? Compare the difference between object privileges and system privileges Construct.
Database Security. Multi-user database systems like Oracle include security to control how the database is accessed and used for example security Mechanisms:
9 Copyright © Oracle Corporation, All rights reserved. Creating and Managing Tables.
Copyright © 2004, Oracle. All rights reserved. CONTROLLING USER ACCESS Oracle Lecture 8.
Kansas State University Department of Computing and Information Sciences CIS 560: Database System Concepts Tuesday, November 1, 2000 “Transaction processing”
Altering Tables and Constraints Database Systems Objectives Add and modify columns. Add, enable, disable, or remove constraints. Drop a table. Remove.
Gollis University Faculty of Computer Engineering Chapter three: Data Definition Instructor: Mukhtar M Ali “Hakaale” BCS.
13 Copyright © Oracle Corporation, All rights reserved. Controlling User Access.
11 Copyright © 2006, Oracle. All rights reserved. Managing Objects with Data Dictionary Views.
Database Security. Multi-user database systems like Oracle include security to control how the database is accessed and used for example security Mechanisms:
1 Chapters 21, 22, 23, 37  Ch. 21: SQL*Loader  Ch. 22: Database Links, Oracle Net  Ch. 23: Materialized Views (aka Snapshots)  Ch. 37: Data Dictionary.
1 Copyright © 2009, Oracle. All rights reserved. Controlling User Access.
19 Managing Privileges Objectives Identifying system and object privileges Granting and revoking privileges Controlling operating system or password.
Database Systems Slide 1 Database Systems Lecture 4 Database Security - Concept Manual : Chapter 20 - Database Security Manual : Chapters 5,10 - SQL Reference.
SQL Tuning Scripts Bobby Durrett US Foodservice
Copyright  Oracle Corporation, All rights reserved. 14 Controlling User Access.
Database System Architecture and System Catalog
Controlling User Access
Controlling User Access
Managing Privileges.
Controlling User Access
Objectives User access Create users Create roles
TABLES AND INDEXES Ashima Wadhwa.
Controlling User Access
Managing Privileges.
Database Security.
Using Data Dictionary and Dynamic Performance Views
Using SQL Server through Command Prompt
Database Security.
Oracle Database Architecture
The System Catalog Describing the Data Copyright © Curt Hill
OER- UNIT 3 Authorization
MS Access Database Connection
Managing Objects with Data Dictionary Views
Oracle Database Architecture
Managing Objects with Data Dictionary Views
HAVING,INDEX,COMMIT & ROLLBACK
Create New User in Database. First Connect the System.
Managing Privileges.
Oracle Database Architecture
Presentation transcript:

Oracle Data Dictionary

What Is Data Dictionary The oracle data dictionary is one of the most important components of the oracle DBMS It contains all information about the structures and objects of the database such as tables,columns, users, data files etc. The data stored in the data dictionary are also often called metadata Information in the data dictionary is written by ORACLE

Data Dictionary Views The views provided by the data dictionary are divided into three groups: USER, ALL,and DBA The group name builds the prefix for each view name

USER data dictionary USER: Taples in the USER views contain information about objects owned by the account performing the SQL query (current user) USER_TABLES contains a description of the user’s own relational tables. TABLE_NAME, TABLESPACE_NAME, CLUSTER_NAME,…… Statement: select TABLE_NAME from USER_TABLES; USER_INDEXES all information about indexes created for tables. INDEX_NAME, INDEX_TYPE, TABLE_OWNER, TABLE_NAME,….. Statement: select INDEX_NAME, TABLE_NAME from USER_INDEXES;

USER data dictionary USER_TAB_COLUMNS columns of the tables and views owned by the user. TABLE_NAME, COLUMN_NAME, DATA_LENGTH, DATA_TYPE,…… Statement: select COLUMN_NAME, TABLE_NAME from USER_TAB_COLUMNS; USER_USERS information about the current user. USERNAME, USER_ID, ACCOUNT_STATUS, LOCK_DATE, EXPIRY_DATE, DEFAULT_TABLESPACE, TEMPORARY_TABLESPACE, CREATED, EXTERNAL_NAME. Statement: select USER_ID from USER_USERS;

USER data dictionary USER_TAB_PRIVILEGES contain information on grants on objects for which the user is the owner, grantor, or grantee. GRANTEE, OWNER, TABLE_NAME, GRANTOR, PRIVILEGE, GRANTABLE. Statement: select TABLE_NAME from USER_TAB_PRIVS;

ALL data dictionary ALL: Rows in the ALL views include rows of the USER views and all information about objects that are accessible to the current user. The structure of these views is analogous to the structure of the USER views. ALL_TABLES contain descriptions of relational tables accessible to the user. OWNER, TABLE_NAME, TABLESPACE_NAME,…….. Statement: select TABLE_NAME from ALL_TABLES; ALL_INDEXES all information about indexes created for tables. OWNER, INDEX_NAME, TABLE_OWNER, TABLE_NAME, TABLESPACE_NAME,…….. Statement: select INDEX_NAME, TABLE_NAME from ALL_INDEXES;

ALL data dictionary ALL_TAB_COLUMNS list the columns of all tables and views accessible to the user. OWNER, TABLE_NAME, COLUMN_NAME, DATA_TYPE,…… Statement: select COLUMN_NAME, TABLE_NAME from ALL_TAB_COLIMNS; ALL_USERS information about all users of the database. USERNAME, USER_ID, CREATED. Statement: select USERNAME from ALL_USERS; ALL_TAB_PRIVS list the grants on objects for which the user is grantee. GRANTEE, TABLE_NAME, GRANTOR, PRIVILEGE, GRANTABLE. Statement: select TABLE_NAME from ALL_TAB_PRIVS;

DBA Data Dictionary DBA : The DBA views encompass information about all database objects, regardless of the owner. Only users with DBA privileges can access these views. DBA _TABLES contain descriptions of all relational tables in the database. OWNER, TABLE_NAME, TABLESPACE_NAME,…….. Statement: select TABLE_NAME from DBA_TABLES; DBA _INDEXES contain descriptions for all indexes in the database OWNER, INDEX_NAME, TABLE_OWNER, TABLE_NAME,…….. Statement: select TABLE_NAME from DBA_INDEXES;

DBA Data Dictionary DBA _TAB_COLUMNS contain information which describe columns of all tables, views. OWNER, TABLE_NAME, COLUMN_NAME, DATA_TYPE,…… Statement: select TABLE_NAME from DBA_TAB_COLIMNS; DBA _USERS lists information about all users of the database. USERNAME, USER_ID, PASSWORD, CREATED,…….. Statement: select USERNAME from DBA_USERS; DBA _TAB_PRIVS lists all grants on objects in the database. GRANTEE, OWNER, TABLE_NAME, GRANTOR, PRIVILEGE, GRANTABLE. Statement: select TABLE_NAME from DBA_TAB_PRIVS;