Anton TopurovIT-DB 23 April 2013 Introduction to Oracle2.

Slides:



Advertisements
Similar presentations
The Architecture of Oracle
Advertisements

Module 2: Database Architecture
ArrayExpress Oracle DBA Ahmet Oezcimen. Agenda 1. Tasks 2. System Overview 3. Oracle DB System 4. Database Monitoring 5. Database Security 6. Performance.
Introduction to Oracle
Acknowledgments Byron Bush, Scott S. Hilpert and Lee, JeongKyu
Overview of Database Administrator (DBA) Tools
Oracle9i Database Administrator: Implementation and Administration 1 Chapter 2 Overview of Database Administrator (DBA) Tools.
Oracle Architecture. Instances and Databases (1/2)
DB server limits (process/sessions) Carlos Fernando Gamboa, BNL Andrew Wong, TRIUMF WLCG Collaboration Workshop, CERN Geneva, April 2008.
Page Footer Keed Education Oracle Database Administration Basic Copyright 2009 Keed Education BV Version Concept.
15 Copyright © 2004, Oracle. All rights reserved. Monitoring and Managing Memory.
Oracle Database Administration
1 - Oracle Server Architecture Overview
Harvard University Oracle Database Administration Session 2 System Level.
Oracle Architectural Components
Advanced Databases Basic Database Administration Guide to Oracle 10g 1.
A Guide to Oracle9i1 Introduction to Oracle9i Database Administration Chapter 11.
M ODULE 1 DBMS S TRATEGY AND ORACLE A RCHITECTURE Database Administration Techniques and Practices 1 ITEC 450 Fall 2012.
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.
1 Copyright © 2009, Oracle. All rights reserved. Exploring the Oracle Database Architecture.
Module 8: Server Management. Overview Server-level and instance-level resources such as memory and processes Database-level resources such as logical.
Oracle Database Workshop 1 Presented to IBRI CAS 27-Nov-2011 By Abdullah Alkalbani.
Chapter Oracle Server An Oracle Server consists of an Oracle database (stored data, control and log files.) The Server will support SQL to define.
Oracle on Windows Server Introduction to Oracle10g on Microsoft Windows Server.
Basic Oracle Architecture
1Introduction Objectives 1-2 Course Objectives 1-3 Oracle Products 1-4 Relational Database Systems 1-5 How the Data Is Organized 1-6 Integrity Constraints.
DBMS Transactions and Rollback Recovery Helia / Martti Laiho.
CSE 781 – DATABASE MANAGEMENT SYSTEMS Introduction To Oracle 10g Rajika Tandon.
Chapter 1 The Oracle Architecture Database Processing Oracle Architecture.
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.
Oracle Tuning Ashok Kapur Hawkeye Technology, Inc.
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.
A Guide to Oracle9i1 Database Instance startup and shutdown.
Backup and Recovery Overview Supinfo Oracle Lab. 6.
Introduction to Oracle. Oracle History 1979 Oracle Release client/server relational database 1989 Oracle Oracle 8 (object relational) 1999.
Outline Introduction to Oracle Memory Structures SGA, PGA, SCA The Specifics of the System Global Area (SGA) Structures Overview of Program Global Areas.
Process Architecture Process Architecture - A portion of a program that can run independently of and concurrently with other portions of the program. Some.
1 Copyright © 2005, Oracle. All rights reserved. Introduction.
Instance and Media Recovery Structures Supinfo Oracle Lab. 7.
Chapter 1Oracle9i DBA II: Backup/Recovery and Network Administration 1 Chapter 1 Backup and Recovery Overview MSCD642 Backup and Recovery.
Preface 1Performance Tuning Methodology: A Review Course Structure 1-2 Lesson Objective 1-3 Concepts 1-4 Determining the Worst Bottleneck 1-5 Understanding.
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.
Oracle9i Performance Tuning Chapter 4 Tuning the Shared Pool Memory.
6 Copyright © Oracle Corporation, All rights reserved. Backup and Recovery Overview.
3 Copyright © 2004, Oracle. All rights reserved. Database Architecture Comparison.
1 Copyright © 2006, Oracle. All rights reserved. Introduction.
I NTRODUCTION OF W EEK 2  Assignment Discussion  Due this week:  1-1 (Exam Proctor): everyone including in TLC  1-2 (SQL Review): review SQL  Review.
What is Oracle ? Oracle is a relational database management system. It is a management system which uses the relational data model. In the relational data.
5 Copyright © 2005, Oracle. All rights reserved. Managing the Oracle Instance.
Oracle Database Architectural Components
1 Copyright © 2005, Oracle. All rights reserved. Oracle Database Administration: Overview.
Chapter 21 SGA Architecture and Wait Event Summarized & Presented by Yeon JongHeum IDS Lab., Seoul National University.
Oracle structures on database applications development
Introduction To Oracle 10g
Oracle Memory Internals
Oracle Architectural Components
Index Index.
ISYS366, Oracle Disk Internals
CS347 Spring 2017 – Quiz 5 Preparation - Solutions UTEID _________
PL/SQL Dynamic SQL and Oracle Architecture.
Database administration
Presentation transcript:

Anton TopurovIT-DB 23 April 2013 Introduction to Oracle2

23 April 2013 Introduction to Oracle3

23 April 2013 Introduction to Oracle4

IT manager 23 April 2013 Introduction to Oracle5

App Developer 23 April 2013 Introduction to Oracle6

Database Administrator 23 April 2013 Introduction to Oracle7

System Administrator 23 April 2013 Introduction to Oracle8

IT manager 23 April 2013 Introduction to Oracle9

23 April 2013 Introduction to Oracle10

23 April 2013 Introduction to Oracle11

Introduction to Oracle12

23 April 2013 Introduction to Oracle13

Oracle Database Internals 23 April 2013 Introduction to Oracle14

23 April 2013 Introduction to Oracle15 Oracle Database Oracle Instance Real Application Clusters (RAC) SQL statements processing Working with Oracle Database

23 April 2013 Introduction to Oracle16 23 April 2013 Introduction to Oracle16

Oracle Database Server 23 April 2013 Introduction to Oracle17

Simplified view 23 April 2013 Introduction to Oracle18 System Global Area (SGA) Background Processes Data Files Control Files Online Redo Logs Server Processes PGA

Database Physical Layout 23 April 2013 Introduction to Oracle19 Data FilesControl FilesOnline Redo Logs

Physical to Logical 23 April 2013 Introduction to Oracle20 Data Files

Logical Layout 23 April 2013 Introduction to Oracle21 Block The smallest logical unit of data storage Extent Continios set of blocks Segment Type (table, index,..) Within a tablespace Tablespace Maps to one or more datafiles

23 April 2013 Introduction to Oracle22 Oracle Database Oracle Instance Real Application Clusters (RAC) SQL statements processing Working with Oracle Database

Oracle Instance 23 April 2013 Introduction to Oracle23 System Global Area (SGA) Background Processes Data Files Control Files Online Redo Logs

SGA contents 23 April 2013 Introduction to Oracle24 Buffer cache holds copies of data blocks server processes manipulate data from buffer cache (not directly from data files) managed using LRU algorithm (Least Recently Used) Shared pool shared memory constructs like shared SQL areas most recently executed SQL statements most recently used data definitions

Backup Background Processes 23 April 2013 Introduction to Oracle25 System Monitor Process Monitor Diagnosability Process Data FilesControl FilesOnline Redo Logs Database Writer Archived Redo Logs Redo Log ArchiverRedo Log WriterCheckpointer Buffer Cache System Global Area (SGA) Redo Log Buffer

23 April 2013 Introduction to Oracle26 Oracle Database Oracle Instance Real Application Clusters (RAC) SQL statements processing Working with Oracle Database

Real Application Clusters 23 April 2013 Introduction to Oracle27 Data Files Control Files Online Redo Logs SGA PGA SGA PGA Clusterware SGA PGA Clusterware

23 April 2013 Introduction to Oracle28 Oracle Database Oracle Instance Real Application Clusters (RAC) SQL statements processing Working with Oracle Database

Database Account Database user username/password to connect to database Privileges System and object privileges / roles CREATE SESSION, CREATE TABLE, CREATE PROCEDURE, CREATE JOB,… EXECUTE ON DBMS_LOCK, SELECT ON HR.EMPLOYEES, … Profiles CERN_DEV_PROFILE: 10 concurrent sessions CERN_APP_PROFILE: 400 concurrent sessions Space quota on tablespaces 23 April 2013 Introduction to Oracle29

Database vs Schema A Schema? Collection of objects Owned by a database user and has the same name as that user Each user owns a single schema. Good programming practice is to prefix objects by schema name 23 April 2013 Introduction to Oracle30 select name from hr.employees where id=7;

Connecting to Oracle Database 23 April 2013 Introduction to Oracle31 Listener port sqlplus ’(DESCRIPTION= (ADDRESS= (PROTOCOL=TCP) (HOST=node1.cern.ch) (PORT=10121)) (CONNECT_DATA= (SID=DEVDB11)))’ SGA Instance SID: DEVDB11 PGA node1 Data FilesControl FilesOnline Redo Logs

node2-v Connecting to RAC Database 23 April 2013 Introduction to Oracle32 Data FilesControl Files Online Redo Logs SGA PGA sqlplus ( DESCRIPTION= (ADDRESS= (PROTOCOL=TCP) (HOST=node2-v.cern.ch) (PORT=10121)) (ADDRESS= (PROTOCOL=TCP) (HOST=node1-v.cern.ch) (PORT=10121)) (LOAD_BALANCE=off) (CONNECT_DATA= (SERVER=DEDICATED) (SERVICE_NAME=CERN_SRV1.cern.ch) ))’ Listener SGA PGA Listener CERN_SRV1 CERN_SRV3 CERN_SRV2 node1.cern.ch node2.cern.ch node1-v Clusterware

Local naming method Based on tnsnames.ora /afs/cern.ch/project/oracle/admin \\cern.ch\dfs\Applications\Oracle\ADMIN 23 April 2013 Introduction to Oracle33 ( DESCRIPTION= (ADDRESS= (PROTOCOL=TCP) (HOST=node2-v.cern.ch) (PORT=10121)) (ADDRESS= (PROTOCOL=TCP) (HOST=node1-v.cern.ch) (PORT=10121)) (LOAD_BALANCE=off) (CONNECT_DATA= (SERVER=DEDICATED) (SERVICE_NAME=CERN_SRV1.cern.ch) ))’ cerndb1 = sqlplus

23 April 2013 Introduction to Oracle34 Oracle Database Oracle Instance Real Application Clusters (RAC) SQL statements processing Working with Oracle Database

SQL Statements Processing 23 April 2013 Introduction to Oracle35 SQL Statement Syntax Check Semantic Check Shared Pool Check Optimization Row Source Generation Execution Parsing Soft Parse Hard Parse select * from hr.employees; sql_id = 8k3hpjw6yjup5 select name from hr.employees where id=:id_val;

Summary 23 April 2013 Introduction to Oracle36

Documentation Oracle Database Concepts Oracle 11g documentation Architecture poster 23 April 2013 Introduction to Oracle37

23 April 2013 Introduction to Oracle38

Agenda 23 April 2013 Introduction to Oracle39 Oracle Database Oracle Instance Real Application Clusters (RAC) SQL statements processing Working with Oracle Database