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.

Slides:



Advertisements
Similar presentations
Copyright © SoftTree Technologies, Inc. DB Tuning Expert.
Advertisements

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.
Technology Guide 3 Data and Database T3-1. IT for Management Prof. Efraim Turban T3-2 File Management Hierarchy of data for a computer-based file Record.
Lecture-7/ T. Nouf Almujally
Management Information Systems, Sixth Edition
Introduction to Databases Transparencies
Database objects User schema DCL Oracle dictionary.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education, Inc. publishing as Prentice Hall 4-1.
Database Features Lecture 2. Desirable features in an information system Integrity Referential integrity Data independence Controlled redundancy Security.
1 Chapter 2 Database Environment. 2 Chapter 2 - Objectives u Purpose of three-level database architecture. u Contents of external, conceptual, and internal.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education 4-1.
An Introduction to Database Management Systems R. Nakatsu.
Chapter 2 Database System Concepts and Architecture
DATABASE MANAGEMENT SYSTEM ARCHITECTURE
Oracle Developer Tools for Visual Studio.NET Curtis Rempe.
ORACLE ONLINE TRAINING Contact our Support Team : SOFTNSOL India: Skype id : softnsoltrainings id:
Database System Concepts and Architecture Lecture # 3 22 June 2012 National University of Computer and Emerging Sciences.
Data Administration & Database Administration
PHP Programming with MySQL Slide 8-1 CHAPTER 8 Working with Databases and MySQL.
Chapter Oracle Server An Oracle Server consists of an Oracle database (stored data, control and log files.) The Server will support SQL to define.
Database Technical Session By: Prof. Adarsh Patel.
 DATABASE DATABASE  DATABASE ENVIRONMENT DATABASE ENVIRONMENT  WHY STUDY DATABASE WHY STUDY DATABASE  DBMS & ITS FUNCTIONS DBMS & ITS FUNCTIONS 
Physical Database Design Chapter 6. Physical Design and implementation 1.Translate global logical data model for target DBMS  1.1Design base relations.
Introduction to Database Management. 1-2 Outline  Database characteristics  DBMS features  Architectures  Organizational roles.
The protection of the DB against intentional or unintentional threats using computer-based or non- computer-based controls. Database Security – Part 2.
7 Copyright © 2004, Oracle. All rights reserved. Administering Users.
Professor Michael J. Losacco CIS 1110 – Using Computers Database Management Chapter 9.
Oleh Munawar Asikin. Principles of Information Systems, Seventh Edition 2  Database management system (DBMS): group of programs that manipulate database.
Oracle9i Performance Tuning Chapter 12 Tuning Tools.
Database Design and Management CPTG /23/2015Chapter 12 of 38 Functions of a Database Store data Store data School: student records, class schedules,
5-1 McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved.
9 Copyright © Oracle Corporation, All rights reserved. Creating and Managing Tables.
Databases Shortfalls of file management systems Structure of a database Database administration Database Management system Hierarchical Databases Network.
Lesson Overview 3.1 Components of the DBMS 3.1 Components of the DBMS 3.2 Components of The Database Application 3.2 Components of The Database Application.
Prepared By Prepared By : VINAY ALEXANDER ( विनय अलेक्सजेंड़र ) PGT(CS),KV JHAGRAKHAND.
Introduction to Oracle. Oracle History 1979 Oracle Release client/server relational database 1989 Oracle Oracle 8 (object relational) 1999.
Commercial RDBMSs Access and Oracle. Access DBMS Architchecture  Can be used as a standalone system on a single PC: -JET Engine -Microsoft Data Engine.
Database Environment Chapter 2. Data Independence Sometimes the way data are physically organized depends on the requirements of the application. Result:
1 Database Management Systems (DBMS). 2 Database Management Systems (DBMS) n Overview of: ä Database Management Components ä Database Systems Architecture.
DATABASE MANAGEMENT SYSTEM ARCHITECTURE
9 Copyright © Oracle Corporation, All rights reserved. Creating and Managing Tables.
Commercial RDBMSs: Office Access and Oracle Pertemuan 13 Matakuliah: M0564 /Pengantar Sistem Basis Data Tahun : 2008.
2) Database System Concepts and Architecture. Slide 2- 2 Outline Data Models and Their Categories Schemas, Instances, and States Three-Schema Architecture.
Introduction to Core Database Concepts Getting started with Databases and Structure Query Language (SQL)
1 Lecture1 Introduction to Databases Systems Database 1.
3 Copyright © 2006, Oracle. All rights reserved. Designing and Developing for Performance.
1 Copyright © 2008, Oracle. All rights reserved. Repository Basics.
Slide 1 © 2016, Lera Technologies. All Rights Reserved. Oracle Data Integrator By Lera Technologies.
11 Copyright © 2009, Oracle. All rights reserved. Enhancing ETL Performance.
Managing Privileges.
Chapter 2 Database Environment.
Chapter 2 Database System Concepts and Architecture
Ikan Software NV CWD4ALL
Using Data Dictionary and Dynamic Performance Views
Introduction What is a Database?.
The System Catalog Describing the Data Copyright © Curt Hill
Introduction to Database Management System
Introduction to Database Systems
Chapter 2 Database Environment Pearson Education © 2009.
Data Base System Lecture 2: Introduction to Database
Database.
Managing Objects with Data Dictionary Views
Ch 3 Synonym.
Ch 3 Synonym.
Using JDeveloper.
Database Systems Instructor Name: Lecture-3.
Ch 3 Synonym.
Chapter 3 Synonym.
Chapter 2 Database Environment Pearson Education © 2009.
Chapter 2 Database Environment Pearson Education © 2009.
Presentation transcript:

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. There is one-to-one correspondence between a DB user and the Schema that he/she creates. Container which contains all oracle objects with in it.

Different Schema Objects Clusters Constraints Database links Database triggers Dimensions External procedure libraries Indexes and indextypes Java classes, resources

Schema objects continued…. Object tables, types, views Materialized views and logs Operators Sequences Stored functions, procedures & packages

Where is Schema ? Oracle database stores schema objects in tablespaces Data of each object is physically contained in the one of the tablespace’s data files.

Schema objects, Tablespaces & Data Files

With Schema Objects, you can…… Create multiple tables, views in one shot. Analyze table, clusters, indexes. Truncate tables and clusters. Manage integrity constraints. Manage data integrity. Manage object dependencies.

Analyze tables You analyze a schema object (table, index, or cluster) to: 1.Collect and manage statistics for it 2.Verify the validity of its storage format 3.Identify migrated and chained rows of a table or cluster  DBMS_STATS package/ANALYZE statement is used to gather statistics about the physical storage characteristics of a table, index, or cluster.  These statistics are stored in the data dictionary and can be used by the optimizer to choose the most efficient execution plan for SQL statements accessing analyzed objects.  ANALYZE statement (rather than DBMS_STATS) is used for statistics collection not related to the cost-based optimizer

Object Dependencies An object that references another object as part of its definition is called a dependent object, while the object being referenced is a referenced Object. To manage dependencies among schema objects, all of the schema objects in a database have a status. Valid schema objects have been compiled and can be immediately used when referenced. Invalid schema objects must be compiled before they can be used. 1)For procedures, functions, and packages, this means compiling the schema object. 2)For views, this means that the view must be reparsed, using the current definition in the data dictionary.

The Data Dictionary The data dictionary is the repository for database metadata, which is a fancy term for data describing the database. Oracle stores the definitions for other objects you create, such as views, PL/SQL packages, triggers, synonyms, indexes, and so forth in the Data dictionary. The database software uses this metadata to interpret and execute SQL statements, and to properly manage stored data. Oracle exposes database metadata through a large collection of data dictionary views. Codd's fourth rule for relational database systems states that database metadata must be stored in relational tables just like any other type of data.

Hierarchial Structure of Datadictionary At the root of the tree is the dictionary table, that features two attributes: table_name and comments. The comment field presents an informal description of the corresponding dictionary table. We can request info. about the Dictionary table in the following way “select Comments from dictionary where table_name=‘Dictionary’ ” ;

Data Dictionary Views Oracle divides data dictionary views into the four families, as indicated by the following prefixes:  USER_ USER views return information about objects owned by the currently-logged-on database user.  ALL_ ALL views return information about all objects to which you have access, regardless of who owns them.  DBA_ DBA views are generally accessible only to database administrators, and return information about all objects in the database, regardless of ownership or access privileges.  V$ views reflect the internal state of the DBMS and are used for its performance and optimization.

References 8/data_dictionary.html 8/data_dictionary.html Oracle Dba Guide for 10G. Hands-ON Oracle DB 10g XE for Windows.