Introduction to Oracle. Oracle History 1979 Oracle Release 2 1986 client/server relational database 1989 Oracle 6 1997 Oracle 8 (object relational) 1999.

Slides:



Advertisements
Similar presentations
The Architecture of Oracle
Advertisements

Module 2: Database Architecture
Introduction to Oracle
5 Copyright © 2005, Oracle. All rights reserved. Managing Database Storage Structures.
Acknowledgments Byron Bush, Scott S. Hilpert and Lee, JeongKyu
Oracle Architecture. Instances and Databases (1/2)
Page Footer Keed Education Oracle Database Administration Basic Copyright 2009 Keed Education BV Version Concept.
Basic Storage Concepts and Settings
1 - Oracle Server Architecture Overview
Harvard University Oracle Database Administration Session 2 System Level.
Oracle Architectural Components
Harvard University Oracle Database Administration Session 5 Data Storage.
10 Copyright © 2009, Oracle. All rights reserved. Managing Undo Data.
Advanced Databases Basic Database Administration Guide to Oracle 10g 1.
A Guide to Oracle9i1 Introduction to Oracle9i Database Administration Chapter 11.
INTRODUCTION TO ORACLE
Working with SQL and PL/SQL/ Session 1 / 1 of 27 SQL Server Architecture.
Oracle Architecture Client Computer Application Server Oracle Database Lan Or Internet Lan Or Internet Client Server Environment Application By Java or.Net.
1 Copyright © 2005, Oracle. All rights reserved. Introduction.
Getting Started with Oracle11g Abeer bin humaid. Create database user You should create at least one database user that you will use to create database.
1 Copyright © 2009, Oracle. All rights reserved. Exploring the Oracle Database Architecture.
Oracle Database Administration Database files Logical database structures.
Module 8: Server Management. Overview Server-level and instance-level resources such as memory and processes Database-level resources such as logical.
Database Security and Auditing: Protecting Data Integrity and Accessibility Chapter 3 Administration of Users.
Oracle Database Architecture An Oracle server: –Is a database management system that provides an open, comprehensive, integrated approach to information.
Database Administration TableSpace & Data File Management
Chapter Oracle Server An Oracle Server consists of an Oracle database (stored data, control and log files.) The Server will support SQL to define.
Basic Oracle Architecture
CHAPTER 6 Users and Basic Security. Progression of Steps for Creating a Database Environment 1. Install Oracle database binaries (Chapter 1) 2. Create.
CSE 781 – DATABASE MANAGEMENT SYSTEMS Introduction To Oracle 10g Rajika Tandon.
7202ICT Database Administration Lecture 7 Managing Database Storage Part 2 Orale Concept Manuel Chapter 3 & 4.
Database Systems Slide 1 Database Systems Lecture 5 Overview of Oracle Database Architecture - Concept Manual : Chapters 1,8 Lecturer : Dr Bela Stantic.
The protection of the DB against intentional or unintentional threats using computer-based or non- computer-based controls. Database Security – Part 2.
1 Oracle Architectural Components. 1-2 Objectives Listing the structures involved in connecting a user to an Oracle server Listing the stages in processing.
Copyright  Oracle Corporation, All rights reserved. 1 Oracle Architectural Components.
Copyright © Oracle Corporation, All rights reserved. 1 Oracle Architectural Components.
An Oracle server:  Is a database management system that provides an open, comprehensive, integrated approach to information management.  Consists.
Anton TopurovIT-DB 23 April 2013 Introduction to Oracle2.
Database structure and space Management. Database Structure An ORACLE database has both a physical and logical structure. By separating physical and logical.
7 Copyright © 2005, Oracle. All rights reserved. Managing Undo Data.
Database structure and space Management. Segments The level of logical database storage above an extent is called a segment. A segment is a set of extents.
Week 3 Lecture 2 Basic Storage Concepts and Settings.
Database Storage Structures
D Copyright © Oracle Corporation, All rights reserved. Loading Data into a Database.
Process Architecture Process Architecture - A portion of a program that can run independently of and concurrently with other portions of the program. Some.
6 Copyright © 2007, Oracle. All rights reserved. Managing Database Storage Structures.
Oracle 10g Database Administrator: Implementation and Administration Chapter 5 Basic Storage Concepts and Settings.
Chapter 1Oracle9i DBA II: Backup/Recovery and Network Administration 1 Chapter 1 Backup and Recovery Overview MSCD642 Backup and Recovery.
Database Security. Multi-user database systems like Oracle include security to control how the database is accessed and used for example security Mechanisms:
Database structure and space Management. Database Structure An ORACLE database has both a physical and logical structure. By separating physical and logical.
Oracle Architecture - Structure. Oracle Architecture - Structure The Oracle Server architecture 1. Structures are well-defined objects that store the.
3 Copyright © 2004, Oracle. All rights reserved. Creating an Oracle Database.
7 Copyright © Oracle Corporation, All rights reserved. Instance and Media Recovery Structures.
Physical Database Structure .
3 Copyright © 2004, Oracle. All rights reserved. Database Architecture Comparison.
6 Copyright © 2005, Oracle. All rights reserved. Managing Database Storage Structures.
Oracle Database Architectural Components
15 Copyright © Oracle Corporation, All rights reserved. Managing Users.
9 Copyright © 2005, Oracle. All rights reserved. Managing Undo Data.
10 Copyright © 2007, Oracle. All rights reserved. Managing Undo Data.
Table spaces.
Database structure and space Management
Using Data Dictionary and Dynamic Performance Views
Physical Database Structure .
Introduction To Oracle 10g
Oracle Architectural Components
Index Index.
ISYS366, Oracle Disk Internals
Database administration
Presentation transcript:

Introduction to Oracle

Oracle History 1979 Oracle Release client/server relational database 1989 Oracle Oracle 8 (object relational) 1999 Oracle 8i (Java Virtual Machine) 2000 Oracle Application Server 2001 Oracle 9i database server 1979 Oracle Release client/server relational database 1989 Oracle Oracle 8 (object relational) 1999 Oracle 8i (Java Virtual Machine) 2000 Oracle Application Server 2001 Oracle 9i database server

Oracle Family Personal Oracle- for single users. Used to develop systems Oracle Standard Edition- (Entry level Workgroup server) Oracle Enterprise edition- Extended functionality Oracle Lite- (Oracle mobile) single users using wireless devices. Personal Oracle- for single users. Used to develop systems Oracle Standard Edition- (Entry level Workgroup server) Oracle Enterprise edition- Extended functionality Oracle Lite- (Oracle mobile) single users using wireless devices.

Some Developer Tools Oracle Forms Developer Oracle Reports Developer Oracle Jdeveloper Oracle Designer Oracle Forms Developer Oracle Reports Developer Oracle Jdeveloper Oracle Designer

File Processing

Database Processing

Database Structure Logical structure - maps the data to the Physical structure. Physical structure -part of the operating system’s file structure. Memory structure - where all the processing takes place. Logical structure - maps the data to the Physical structure. Physical structure -part of the operating system’s file structure. Memory structure - where all the processing takes place.

The Logical structures control how the data must be stored in the database. five Logical structures: –tablespaces –segments –extents –data blocks –schema objects control how the data must be stored in the database. five Logical structures: –tablespaces –segments –extents –data blocks –schema objects

Physical structures Parameter files Password files Datafiles Redo log files Control files Parameter files Password files Datafiles Redo log files Control files

Memory structures System Global Area (SGA) Program Global Area (PGA) The Oracle database uses these memory areas to store information before they are made permanent in the database. System Global Area (SGA) Program Global Area (PGA) The Oracle database uses these memory areas to store information before they are made permanent in the database.

TableSpaces A database is divided into logical storage units called Tablespaces. logical construct for arranging different types of data An Oracle database must have at least a system tablespace. It is recommended to have different tablespaces for user and system data. A database is divided into logical storage units called Tablespaces. logical construct for arranging different types of data An Oracle database must have at least a system tablespace. It is recommended to have different tablespaces for user and system data.

Tablespaces a logical structure Data1Data2 Data1_01.dbfData2_01.dbfData2_02.dbf The DATA1 Tablespace = One datafile The DATA2 Tablespace = Two datafiles

Create Tablespace CREATE TABLESPACE test DATAFILE '\oraserv\ORADATA\a.dbf' SIZE 10M AUTOEXTEND ON NEXT 10M MAXSIZE 100M; CREATE TABLE cust(id int,name varchar2(20)) TABLESPACE test; CREATE TABLESPACE test DATAFILE '\oraserv\ORADATA\a.dbf' SIZE 10M AUTOEXTEND ON NEXT 10M MAXSIZE 100M; CREATE TABLE cust(id int,name varchar2(20)) TABLESPACE test;

7 Logical Tablespaces SYSTEM DATA INDEX USERS ROLLBACK TEMP TOOLS SYSTEM DATA INDEX USERS ROLLBACK TEMP TOOLS

Schemas and Schema Objects Collection of database objects –Tables –Views –Sequences –Synonyms –Indexes –Procedures –Functions –Packages –Triggers Collection of database objects –Tables –Views –Sequences –Synonyms –Indexes –Procedures –Functions –Packages –Triggers

Data Blocks The smallest unit of Input/Output used by Oracle database. The size of data block for any database is fixed at the time of creation of the database; Some values of the data block size are 2KB, 8KB, 16KB, and 32KB. Oracle recommends a size of 8KB The smallest unit of Input/Output used by Oracle database. The size of data block for any database is fixed at the time of creation of the database; Some values of the data block size are 2KB, 8KB, 16KB, and 32KB. Oracle recommends a size of 8KB

Extents The next level of data storage. One extent consists of a specific number of data blocks One or more extents in turn make up a segment. When the existing space in a segment is completely used, Oracle allocates a new extent for the segment. The next level of data storage. One extent consists of a specific number of data blocks One or more extents in turn make up a segment. When the existing space in a segment is completely used, Oracle allocates a new extent for the segment.

Segment A segment consists of a set of extents Each table’s data is stored in its own single segment. Each index’s data is stored in a single segment. More extents are automatically allocated by Oracle to a segment if its existing extents become full. The different types of segments are the data segments, index segments,rollback segments, and temporary segments. A segment consists of a set of extents Each table’s data is stored in its own single segment. Each index’s data is stored in a single segment. More extents are automatically allocated by Oracle to a segment if its existing extents become full. The different types of segments are the data segments, index segments,rollback segments, and temporary segments.

Physical Database Structure Password file - which contain the password information for all users. Parameter file - which contains all the important information necessary to start a database. Datafiles - which contain the application data being stored, as well as any data necessary to store user-IDs, passwords, and privileges. Redo log files - which store all the transactions made to the database. These files are also called transaction log files. Control files - which store information specifying the structure of the database,such as the name and time of creation of the database and the name and location of the datafiles. Password file - which contain the password information for all users. Parameter file - which contains all the important information necessary to start a database. Datafiles - which contain the application data being stored, as well as any data necessary to store user-IDs, passwords, and privileges. Redo log files - which store all the transactions made to the database. These files are also called transaction log files. Control files - which store information specifying the structure of the database,such as the name and time of creation of the database and the name and location of the datafiles.

The Physical files that make up a database Control files Data files Redo Log Files Identify Record changes to

Control Files Contain a list of all other files in the database Key information such as –Name of the database –Date created –Current state –Backups performed –Time period covered by redo files Contain a list of all other files in the database Key information such as –Name of the database –Date created –Current state –Backups performed –Time period covered by redo files

Store a recording of changes made to the database as a result of transactions and internal Oracle Activities When Oracle fills one redo log, it automatically fills a second. Used for database recovery Store a recording of changes made to the database as a result of transactions and internal Oracle Activities When Oracle fills one redo log, it automatically fills a second. Used for database recovery Redo Log Files

Security Mechanisms Database users and schemas Privileges Roles Storage settings and quotas Resource limits Auditing Database users and schemas Privileges Roles Storage settings and quotas Resource limits Auditing

Data Access: SQL Data definition language (DDL) statements Data manipulation language (DML) statements Transaction control statements Session control statements System control statements Embedded SQL statements Data definition language (DDL) statements Data manipulation language (DML) statements Transaction control statements Session control statements System control statements Embedded SQL statements

Transactions A transaction is a logical unit of work that comprises one or more SQL statement executed by a single user. According to the ANSI/ISO SQL standard, with which Oracle is compatible, a transaction begins with the user’s first executable SQL statement. A transaction ends when it is explicitly committed or rolled back.

Transaction Example